S_ISGID 240 arch/powerpc/platforms/cell/spufs/inode.c if (dir->i_mode & S_ISGID) { S_ISGID 242 arch/powerpc/platforms/cell/spufs/inode.c inode->i_mode &= S_ISGID; S_ISGID 474 arch/powerpc/platforms/cell/spufs/inode.c if (dir->i_mode & S_ISGID) { S_ISGID 476 arch/powerpc/platforms/cell/spufs/inode.c inode->i_mode &= S_ISGID; S_ISGID 69 fs/9p/vfs_inode.c if ((mode & S_ISGID) == S_ISGID) S_ISGID 95 fs/9p/vfs_inode.c res |= S_ISGID; S_ISGID 49 fs/9p/vfs_inode_dotl.c if (dir_inode->i_mode & S_ISGID) { S_ISGID 386 fs/9p/vfs_inode_dotl.c if (dir->i_mode & S_ISGID) S_ISGID 387 fs/9p/vfs_inode_dotl.c omode |= S_ISGID; S_ISGID 96 fs/attr.c attr->ia_mode &= ~S_ISGID; S_ISGID 197 fs/attr.c mode &= ~S_ISGID; S_ISGID 298 fs/attr.c if ((mode & (S_ISGID | S_IXGRP)) == (S_ISGID | S_IXGRP)) { S_ISGID 303 fs/attr.c attr->ia_mode &= ~S_ISGID; S_ISGID 749 fs/btrfs/tree-checker.c u32 valid_mask = (S_IFMT | S_ISUID | S_ISGID | S_ISVTX | 0777); S_ISGID 393 fs/cifs/dir.c if (inode->i_mode & S_ISGID) S_ISGID 429 fs/cifs/dir.c if (inode->i_mode & S_ISGID) S_ISGID 548 fs/cifs/inode.c #define SFBITS_MASK (S_ISVTX | S_ISGID | S_ISUID) /* SETFILEBITS valid bits */ S_ISGID 1471 fs/cifs/inode.c if (parent->i_mode & S_ISGID) S_ISGID 1472 fs/cifs/inode.c mode |= S_ISGID; S_ISGID 1484 fs/cifs/inode.c if (parent->i_mode & S_ISGID) S_ISGID 1506 fs/cifs/inode.c if (inode->i_mode & S_ISGID) S_ISGID 88 fs/configfs/inode.c mode &= ~S_ISGID; S_ISGID 1540 fs/exec.c if (!(mode & (S_ISUID|S_ISGID))) S_ISGID 1562 fs/exec.c if ((mode & (S_ISGID | S_IXGRP)) == (S_ISGID | S_IXGRP)) { S_ISGID 460 fs/ext4/move_extent.c if (donor_inode->i_mode & (S_ISUID|S_ISGID)) { S_ISGID 765 fs/f2fs/file.c mode &= ~S_ISGID; S_ISGID 1661 fs/fuse/dir.c if ((inode->i_mode & (S_ISGID | S_IXGRP)) == (S_ISGID | S_IXGRP)) { S_ISGID 1663 fs/fuse/dir.c attr->ia_mode &= ~S_ISGID; S_ISGID 364 fs/gfs2/inode.c if (dip->i_inode.i_mode & S_ISGID) { S_ISGID 366 fs/gfs2/inode.c inode->i_mode |= S_ISGID; S_ISGID 1788 fs/inode.c if (unlikely((mode & S_ISGID) && (mode & S_IXGRP))) S_ISGID 2056 fs/inode.c if (dir && dir->i_mode & S_ISGID) { S_ISGID 2061 fs/inode.c mode |= S_ISGID; S_ISGID 2062 fs/inode.c else if ((mode & (S_ISGID | S_IXGRP)) == (S_ISGID | S_IXGRP) && S_ISGID 2065 fs/inode.c mode &= ~S_ISGID; S_ISGID 448 fs/jffs2/fs.c if (dir_i->i_mode & S_ISGID) { S_ISGID 451 fs/jffs2/fs.c mode |= S_ISGID; S_ISGID 957 fs/namei.c if ((mode & (S_ISGID | S_IXGRP)) == (S_ISGID | S_IXGRP)) S_ISGID 1517 fs/nfs/write.c if (unlikely((mode & S_ISGID) && (mode & S_IXGRP))) S_ISGID 323 fs/nfsd/vfs.c iap->ia_mode &= ~S_ISGID; S_ISGID 1392 fs/ocfs2/file.c if ((inode->i_mode & S_ISGID) && (inode->i_mode & S_IXGRP)) S_ISGID 1393 fs/ocfs2/file.c inode->i_mode &= ~S_ISGID; S_ISGID 128 fs/orangefs/orangefs-utils.c perm_mode |= S_ISGID; S_ISGID 545 fs/orangefs/orangefs-utils.c S_ISGID, S_ISUID S_ISGID 899 fs/overlayfs/super.c if (unlikely(inode->i_mode & S_ISGID) && S_ISGID 657 fs/posix_acl.c mode &= ~S_ISGID; S_ISGID 1820 fs/proc/base.c inode->i_mode &= ~(S_ISUID | S_ISGID); S_ISGID 1093 fs/ubifs/file.c mode &= ~S_ISGID; S_ISGID 1637 fs/udf/inode.c ((flags & ICBTAG_FLAG_SETGID) ? S_ISGID : 0) | S_ISGID 1861 fs/udf/inode.c ((inode->i_mode & S_ISGID) ? ICBTAG_FLAG_SETGID : 0) | S_ISGID 54 fs/xfs/xfs_file.c VFS_I(ip)->i_mode &= ~S_ISGID; S_ISGID 816 fs/xfs/xfs_inode.c if ((VFS_I(pip)->i_mode & S_ISGID) && S_ISDIR(mode)) S_ISGID 817 fs/xfs/xfs_inode.c inode->i_mode |= S_ISGID; S_ISGID 826 fs/xfs/xfs_inode.c (inode->i_mode & S_ISGID) && S_ISGID 828 fs/xfs/xfs_inode.c inode->i_mode &= ~S_ISGID; S_ISGID 411 fs/xfs/xfs_inode.h (VFS_I(pip)->i_mode & S_ISGID)) S_ISGID 1606 fs/xfs/xfs_ioctl.c if ((VFS_I(ip)->i_mode & (S_ISUID|S_ISGID)) && S_ISGID 1608 fs/xfs/xfs_ioctl.c VFS_I(ip)->i_mode &= ~(S_ISUID|S_ISGID); S_ISGID 721 fs/xfs/xfs_iops.c if ((inode->i_mode & (S_ISUID|S_ISGID)) && S_ISGID 723 fs/xfs/xfs_iops.c inode->i_mode &= ~(S_ISUID|S_ISGID); S_ISGID 2353 include/linux/fs.h return (ino->i_mode & (S_ISGID | S_IXGRP)) == S_ISGID; S_ISGID 3524 include/linux/fs.h return (mode & S_ISUID) || ((mode & S_ISGID) && (mode & S_IXGRP)); S_ISGID 10 include/linux/stat.h #define S_IALLUGO (S_ISUID|S_ISGID|S_ISVTX|S_IRWXUGO) S_ISGID 895 security/tomoyo/condition.c value = S_ISGID; S_ISGID 11 tools/perf/trace/beauty/mode_t.c #define S_IALLUGO (S_ISUID|S_ISGID|S_ISVTX|S_IRWXUGO) S_ISGID 254 tools/testing/selftests/capabilities/test_execve.c if (chmod("validate_cap_sgidroot", S_ISGID | 0710) != 0) S_ISGID 261 tools/testing/selftests/capabilities/test_execve.c if (chmod("validate_cap_sgidnonroot", S_ISGID | 0710) != 0)