projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7c7ee62
)
cifs: do not allow changing posix_paths during remount
author
Ronnie Sahlberg
<lsahlber@redhat.com>
Mon, 14 Dec 2020 06:40:23 +0000
(16:40 +1000)
committer
Steve French
<stfrench@microsoft.com>
Mon, 14 Dec 2020 15:26:30 +0000
(09:26 -0600)
Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/fs_context.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/cifs/fs_context.c
b/fs/cifs/fs_context.c
index c3c6d0cd291ba8dc9a38e278310bf08507794ce7..58da674c0365077acc7d174a6d678fb5193d20b5 100644
(file)
--- a/
fs/cifs/fs_context.c
+++ b/
fs/cifs/fs_context.c
@@
-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,
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) {
cifs_dbg(VFS, "can not change sec during remount\n");
return -EINVAL;