mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 19:00:25 +00:00
ksmbd: don't set FILE DELETE and FILE_DELETE_CHILD in access mask by default
When there is no dacl in request, ksmbd send dacl that coverted by using file permission. This patch don't set FILE DELETE and FILE_DELETE_CHILD in access mask by default. Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com> Signed-off-by: Steve French <stfrench@microsoft.com>
This commit is contained in:
parent
29668d7e9d
commit
a9a27d4ab3
1 changed files with 0 additions and 2 deletions
|
@ -731,7 +731,6 @@ static void set_mode_dacl(struct user_namespace *user_ns,
|
||||||
ace_size = fill_ace_for_sid(pace, sid, ACCESS_ALLOWED, 0,
|
ace_size = fill_ace_for_sid(pace, sid, ACCESS_ALLOWED, 0,
|
||||||
fattr->cf_mode, 0700);
|
fattr->cf_mode, 0700);
|
||||||
pace->sid.sub_auth[pace->sid.num_subauth++] = cpu_to_le32(uid);
|
pace->sid.sub_auth[pace->sid.num_subauth++] = cpu_to_le32(uid);
|
||||||
pace->access_req |= FILE_DELETE_LE | FILE_DELETE_CHILD_LE;
|
|
||||||
pace->size = cpu_to_le16(ace_size + 4);
|
pace->size = cpu_to_le16(ace_size + 4);
|
||||||
size += le16_to_cpu(pace->size);
|
size += le16_to_cpu(pace->size);
|
||||||
pace = (struct smb_ace *)((char *)pndace + size);
|
pace = (struct smb_ace *)((char *)pndace + size);
|
||||||
|
@ -752,7 +751,6 @@ static void set_mode_dacl(struct user_namespace *user_ns,
|
||||||
/* creator owner */
|
/* creator owner */
|
||||||
size += fill_ace_for_sid(pace, &creator_owner, ACCESS_ALLOWED,
|
size += fill_ace_for_sid(pace, &creator_owner, ACCESS_ALLOWED,
|
||||||
0x0b, fattr->cf_mode, 0700);
|
0x0b, fattr->cf_mode, 0700);
|
||||||
pace->access_req |= FILE_DELETE_LE | FILE_DELETE_CHILD_LE;
|
|
||||||
pace = (struct smb_ace *)((char *)pndace + size);
|
pace = (struct smb_ace *)((char *)pndace + size);
|
||||||
|
|
||||||
/* creator group */
|
/* creator group */
|
||||||
|
|
Loading…
Reference in a new issue