Skip to content

Commit a9a27d4

Browse files
committed
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 <[email protected]> Signed-off-by: Steve French <[email protected]>
1 parent 29668d7 commit a9a27d4

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

fs/ksmbd/smbacl.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -731,7 +731,6 @@ static void set_mode_dacl(struct user_namespace *user_ns,
731731
ace_size = fill_ace_for_sid(pace, sid, ACCESS_ALLOWED, 0,
732732
fattr->cf_mode, 0700);
733733
pace->sid.sub_auth[pace->sid.num_subauth++] = cpu_to_le32(uid);
734-
pace->access_req |= FILE_DELETE_LE | FILE_DELETE_CHILD_LE;
735734
pace->size = cpu_to_le16(ace_size + 4);
736735
size += le16_to_cpu(pace->size);
737736
pace = (struct smb_ace *)((char *)pndace + size);
@@ -752,7 +751,6 @@ static void set_mode_dacl(struct user_namespace *user_ns,
752751
/* creator owner */
753752
size += fill_ace_for_sid(pace, &creator_owner, ACCESS_ALLOWED,
754753
0x0b, fattr->cf_mode, 0700);
755-
pace->access_req |= FILE_DELETE_LE | FILE_DELETE_CHILD_LE;
756754
pace = (struct smb_ace *)((char *)pndace + size);
757755

758756
/* creator group */

0 commit comments

Comments
 (0)