Commit 531f03bc authored by Ronnie Sahlberg's avatar Ronnie Sahlberg Committed by Steve French

cifs: do not allow changing posix_paths during remount

Signed-off-by: default avatarRonnie Sahlberg <lsahlber@redhat.com>
Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
parent 7c7ee628
...@@ -627,6 +627,10 @@ static void smb3_fs_context_free(struct fs_context *fc) ...@@ -627,6 +627,10 @@ static void smb3_fs_context_free(struct fs_context *fc)
static int smb3_verify_reconfigure_ctx(struct smb3_fs_context *new_ctx, static int smb3_verify_reconfigure_ctx(struct smb3_fs_context *new_ctx,
struct smb3_fs_context *old_ctx) struct smb3_fs_context *old_ctx)
{ {
if (new_ctx->posix_paths != old_ctx->posix_paths) {
cifs_dbg(VFS, "can not change posixpaths during remount\n");
return -EINVAL;
}
if (new_ctx->sectype != old_ctx->sectype) { if (new_ctx->sectype != old_ctx->sectype) {
cifs_dbg(VFS, "can not change sec during remount\n"); cifs_dbg(VFS, "can not change sec during remount\n");
return -EINVAL; return -EINVAL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment