diff options
author | Shyam Prasad N <sprasad@microsoft.com> | 2020-11-09 17:12:49 +0300 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2020-12-14 04:12:07 +0300 |
commit | f2156d35c9584a4afdb71de4bc24b3fef674a63d (patch) | |
tree | 2da2c02449befafa7bdb2045bd74da6c5c93d84f /fs/cifs/cifspdu.h | |
parent | 0f22053e811ca5dd5d51b919741e02396ea600f3 (diff) | |
download | linux-f2156d35c9584a4afdb71de4bc24b3fef674a63d.tar.xz |
cifs: Enable sticky bit with cifsacl mount option.
For the cifsacl mount option, we did not support sticky bits.
With this patch, we do support it, by setting the DELETE_CHILD perm
on the directory only for the owner user. When sticky bit is not
enabled, allow DELETE_CHILD perm for everyone.
Signed-off-by: Shyam Prasad N <sprasad@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/cifs/cifspdu.h')
-rw-r--r-- | fs/cifs/cifspdu.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/cifspdu.h b/fs/cifs/cifspdu.h index 593d826820c3..ce51183ecaf4 100644 --- a/fs/cifs/cifspdu.h +++ b/fs/cifs/cifspdu.h @@ -262,7 +262,7 @@ | WRITE_OWNER | SYNCHRONIZE) #define SET_FILE_WRITE_RIGHTS (FILE_WRITE_DATA | FILE_APPEND_DATA \ | FILE_READ_EA | FILE_WRITE_EA \ - | FILE_DELETE_CHILD | FILE_READ_ATTRIBUTES \ + | FILE_READ_ATTRIBUTES \ | FILE_WRITE_ATTRIBUTES \ | DELETE | READ_CONTROL | WRITE_DAC \ | WRITE_OWNER | SYNCHRONIZE) |