Re: [PATCH v2 00/10] cifsd: introduce new SMB3 kernel server
From: J. Bruce Fields
Date: Wed Apr 28 2021 - 15:13:40 EST
On Thu, Apr 22, 2021 at 09:28:14AM +0900, Namjae Jeon wrote:
> ACLs Partially Supported. only DACLs available, SACLs
> (auditing) is planned for the future. For
> ownership (SIDs) ksmbd generates random subauth
> values(then store it to disk) and use uid/gid
> get from inode as RID for local domain SID.
> The current acl implementation is limited to
> standalone server, not a domain member.
> Integration with Samba tools is being worked on to
> allow future support for running as a domain member.
How exactly is this implementing ACLs? I grepped through the code a bit
and couldn't quite figure it out--it looked like maybe it's both
converting to a POSIX ACL and storing the full SBM ACL in an xattr, is
that correct? When you read an ACL, and both are present, which do you
use?
Also it looked like there's some code from fs/nfsd/nfs4acl.c, could we
share that somehow instead of copying?
--b.