mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
d8fe99a265
Check if SGID is cleared upon chmod / setfacl when the owner is not in the owning group. As of today, the kernel fails to clear SGID in setxattr (which is what acl_set_file is implemented on top of) in that case; see this patch: https://patchwork.kernel.org/patch/9290507/ Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com> Cc: Jan Kara <jack@suse.cz> Reviewed-by: Eryu Guan <eguan@redhat.com> Signed-off-by: Eryu Guan <eguan@redhat.com>
10 lines
231 B
Plaintext
10 lines
231 B
Plaintext
QA output created by 375
|
|
*** SGID should remain set (twice)
|
|
-rwxrwsrwx
|
|
-rwxrwsrwx
|
|
*** SGID should be cleared (twice)
|
|
-rwxrwxrwx
|
|
-rwxrwxrwx
|
|
*** Expected failure
|
|
chmod: changing permissions of 'testfile.375': Operation not permitted
|