]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfstests-dev.git/commit
generic: Check clearing of SGID in chmod and acl_set_file
authorAndreas Gruenbacher <agruenba@redhat.com>
Tue, 23 Aug 2016 21:51:39 +0000 (23:51 +0200)
committerEryu Guan <eguan@redhat.com>
Fri, 26 Aug 2016 07:42:24 +0000 (15:42 +0800)
commitd8fe99a265fae2453c09ac6dedc7daa4c10d31bd
treecdd42df275c01556d3d1322722dfbe0a62d11b18
parentd6a6cf579f59795f7b1a7b7d70a389b3d3a15535
generic: Check clearing of SGID in chmod and acl_set_file

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>
tests/generic/375 [new file with mode: 0755]
tests/generic/375.out [new file with mode: 0644]
tests/generic/group