On other Linux filesystems, if you chmod g+s a directory, any
directory created under that parent directory will also have
the sgid bit set. XFS behaved differently, and only set the
bit on subdirectories if the creating process was in the group
ID of the parent directory.
This changes the default behavior on Linux to be like that
of other Linux filesystems; the previous "Irix" behavior can be
set with a new "irixsgid" mount option.
Date: Fri Apr 19 11:22:52 PDT 2002
Workarea: stout.americas.sgi.com:/localhome/src/sandeen/2.4.x-xfs/workarea
The following file(s) were checked into:
bonnie.engr.sgi.com:/isms/slinx/2.4.x-xfs
Modid: 2.4.x-xfs:slinx:116903a
linux/fs/xfs/xfs_vfsops.c - 1.341
- set mount struct flag for irixsgid
linux/fs/xfs/xfs_clnt.h - 1.27
- add mount option flag for irixsgid
linux/fs/xfs/xfs_mount.h - 1.139
- add mount struct flag for irixsgid
linux/fs/xfs/xfs_inode.c - 1.335
- Do not clear the SGID bit on subdirs created by processes
not in the parent dir's group, unless the irixsgid mount
option is used
linux/fs/xfs/linux/xfs_super.c - 1.165
- add irixsgid mount opton to mimic irix sgid bit inheritance
linux/Documentation/filesystems/xfs.txt - 1.9
- Document irixsgid mount option
|