]> git.ipfire.org Git - thirdparty/linux.git/commit
ksmbd: preserve VFS inherited POSIX ACL mask
authorNamjae Jeon <linkinjeon@kernel.org>
Fri, 17 Jul 2026 02:06:45 +0000 (11:06 +0900)
committerSteve French <stfrench@microsoft.com>
Wed, 22 Jul 2026 14:54:01 +0000 (09:54 -0500)
commite148e567a9252643baa125cb65d7ae9c2c6cf68a
treefa0dcd70d3efdaf9e308d425557ba71bfe5a66aa
parent1590cf0329716306e948a8fc29f1d3ee87d3989f
ksmbd: preserve VFS inherited POSIX ACL mask

The VFS initializes a child's POSIX ACL from the parent's default ACL and
the requested creation mode. Do not mutate the parent ACL or overwrite the
child's VFS-computed access and default ACLs afterwards.

This preserves restrictive ACL_MASK entries and prevents SMB object creation
from widening effective permissions.

Reported-by: Charles Vosburgh <trilobyte777@gmail.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/server/vfs.c