[Linux-cifsd-devel] [PATCH] cifsd: make xattr format of ksmbd compatible with samba's one

Namjae Jeon namjae.jeon at samsung.com
Tue Feb 16 01:05:29 UTC 2021


Hi Metze,
> > There seems to be a problem, when a new file inherits acls from the
> > parent directory. There I see a strange owner sid:
> Hm... I'll try to reproduce it when I go to office.
> 
> Thanks!
> >
> >                         owner_sid                : *
> >                             owner_sid                : S-21-2276714256
> > and
> >
> > WARNING! 20 unread bytes
> > [0000] 00 00 00 00 00 00 00 00   00 00 00 00 00 00 00 00   ........
> > ........
> > [0010] 00 00 00 00
> >
> > I used this command to analyze this:
When you use the command you told, the following error occurs...
# getfattr -n security.NTACL acl_test_file.txt | grep security.NTACL| sed -e 's!security.NTACL=0s!!' | ndrdump --base64-input xattr
xattr_NTACL struct 2>&1 |less
getfattr: Removing leading '/' from absolute path names
Function 'xattr_NTACL' not found

So I have tried to use this command.
# samba-tool ntacl get acl_test_file.txt --use-ntvfs

   owner_sid                : *
            owner_sid                : S-1-5-21-1548411273-428405841-1880688874-1000

owner_sid seems to be displayed normally. Is there any way to reproduce it?

Thanks!
> >
> > getfattr -n security.NTACL WHATSNEW.txt | grep security.NTACL| sed -e
> > 's!security.NTACL=0s!!' | ndrdump --base64-input xattr xattr_NTACL
> > struct
> > 2>&1 |less
> >
> > metze
> >
> >
> 
> 
> _______________________________________________
> Linux-cifsd-devel mailing list
> Linux-cifsd-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/linux-cifsd-devel




More information about the samba-technical mailing list