Re: [PATCH] setcifsacl - fix adding ACE when owner sid in unexpected location

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



пт, 1 мар. 2019 г. в 21:14, Steve French <smfrench@xxxxxxxxx>:
>
> Patch to fix setcifsacl when owner/group owner are at end instead of
> beginning. Seems to work (see below).
>
> $ setcifsacl -a "ACL:Administrator:ALLOWED/0x0/FULL" /mnt/file1
> main: setxattr error: Invalid argument
> $ getcifsacl /mnt/file1
> REVISION:0x1
> CONTROL:0x8404
> OWNER:NT Authority\SYSTEM
> GROUP:NT Authority\SYSTEM
> ACL:NT Authority\SYSTEM:ALLOWED/I/FULL
> ACL:BUILTIN\Administrators:ALLOWED/I/FULL
> ACL:S-1-5-21-859164523-2028333235-149708467-500:ALLOWED/I/FULL
> $ ./setcifsacl -a "ACL:Administrator:ALLOWED/0x0/FULL" /mnt/file1
> $ getcifsacl /mnt/file1
> REVISION:0x1
> CONTROL:0x8004
> OWNER:NT Authority\SYSTEM
> GROUP:NT Authority\SYSTEM
> ACL:NT Authority\SYSTEM:ALLOWED/I/FULL
> ACL:BUILTIN\Administrators:ALLOWED/I/FULL
> ACL:S-1-5-21-859164523-2028333235-149708467-500:ALLOWED/I/FULL
> ACL:\administrator:ALLOWED/0x0/FULL


merged, thanks.
--
Best regards,
Pavel Shilovsky




[Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux