| /linux-6.15/fs/ |
| H A D | attr.c | 38 if (!(mode & S_ISGID)) in setattr_should_drop_sgid() 205 attr->ia_mode &= ~S_ISGID; in setattr_prepare() 351 mode &= ~S_ISGID; in setattr_copy() 502 if (mode & S_ISGID) { in notify_change() 507 attr->ia_mode &= ~S_ISGID; in notify_change()
|
| H A D | inode.c | 2558 if (dir && dir->i_mode & S_ISGID) { in inode_init_owner() 2563 mode |= S_ISGID; in inode_init_owner() 2899 if ((mode & (S_ISGID | S_IXGRP)) != (S_ISGID | S_IXGRP)) in mode_strip_sgid() 2901 if (S_ISDIR(mode) || !dir || !(dir->i_mode & S_ISGID)) in mode_strip_sgid() 2905 return mode & ~S_ISGID; in mode_strip_sgid()
|
| H A D | exec.c | 1659 if (!(mode & (S_ISUID|S_ISGID))) in bprm_fill_uid() 1688 if ((mode & (S_ISGID | S_IXGRP)) == (S_ISGID | S_IXGRP)) { in bprm_fill_uid()
|
| /linux-6.15/include/linux/ |
| H A D | stat.h | 10 #define S_IALLUGO (S_ISUID|S_ISGID|S_ISVTX|S_IRWXUGO)
|
| /linux-6.15/tools/perf/trace/beauty/ |
| H A D | mode_t.c | 11 #define S_IALLUGO (S_ISUID|S_ISGID|S_ISVTX|S_IRWXUGO)
|
| /linux-6.15/tools/perf/trace/beauty/include/uapi/linux/ |
| H A D | stat.h | 18 #define S_ISGID 0002000 macro
|
| /linux-6.15/tools/include/uapi/linux/ |
| H A D | stat.h | 18 #define S_ISGID 0002000 macro
|
| /linux-6.15/include/uapi/linux/ |
| H A D | stat.h | 18 #define S_ISGID 0002000 macro
|
| /linux-6.15/tools/testing/selftests/capabilities/ |
| H A D | test_execve.c | 246 if (chmod("validate_cap_sgidroot", S_ISGID | 0710) != 0) in do_tests() 253 if (chmod("validate_cap_sgidnonroot", S_ISGID | 0710) != 0) in do_tests()
|
| /linux-6.15/fs/xfs/libxfs/ |
| H A D | xfs_inode_util.c | 295 if (dir && !(dir->i_mode & S_ISGID) && xfs_has_grpid(mp)) { in xfs_inode_init() 309 if (irix_sgid_inherit && (inode->i_mode & S_ISGID) && in xfs_inode_init() 311 inode->i_mode &= ~S_ISGID; in xfs_inode_init()
|
| /linux-6.15/fs/configfs/ |
| H A D | inode.c | 81 mode &= ~S_ISGID; in configfs_setattr()
|
| /linux-6.15/fs/9p/ |
| H A D | vfs_inode_dotl.c | 48 if (dir_inode->i_mode & S_ISGID) { in v9fs_get_fsgid_for_create() 371 if (dir->i_mode & S_ISGID) in v9fs_vfs_mkdir_dotl() 372 omode |= S_ISGID; in v9fs_vfs_mkdir_dotl()
|
| H A D | vfs_inode.c | 66 if ((mode & S_ISGID) == S_ISGID) in unixmode2p9mode() 92 res |= S_ISGID; in p9mode2perm()
|
| /linux-6.15/fs/orangefs/ |
| H A D | orangefs-utils.c | 128 perm_mode |= S_ISGID; in orangefs_inode_perms() 545 S_ISGID, S_ISUID in ORANGEFS_util_translate_mode()
|
| /linux-6.15/fs/xfs/ |
| H A D | xfs_pnfs.c | 98 VFS_I(ip)->i_mode &= ~S_ISGID; in xfs_fs_map_update_inode()
|
| H A D | xfs_inode.h | 553 (xfs_has_grpid((pip)->i_mount) || (VFS_I(pip)->i_mode & S_ISGID))
|
| H A D | xfs_ioctl.c | 799 if ((VFS_I(ip)->i_mode & (S_ISUID|S_ISGID)) && in xfs_fileattr_set() 801 VFS_I(ip)->i_mode &= ~(S_ISUID|S_ISGID); in xfs_fileattr_set()
|
| /linux-6.15/fs/jffs2/ |
| H A D | fs.c | 449 if (dir_i->i_mode & S_ISGID) { in jffs2_new_inode() 452 mode |= S_ISGID; in jffs2_new_inode()
|
| /linux-6.15/fs/smb/client/ |
| H A D | dir.c | 354 if (inode->i_mode & S_ISGID) 393 if (inode->i_mode & S_ISGID)
|
| H A D | inode.c | 701 #define SFBITS_MASK (S_ISVTX | S_ISGID | S_ISUID) /* SETFILEBITS valid bits */ 792 mode |= (wire & POSIX_SET_GID) ? S_ISGID : 0; in wire_perms_to_posix() 2105 if (parent->i_mode & S_ISGID) 2106 mode |= S_ISGID; 2119 if (parent->i_mode & S_ISGID) 2144 if (inode->i_mode & S_ISGID)
|
| /linux-6.15/fs/f2fs/ |
| H A D | acl.c | 223 mode &= ~S_ISGID; in f2fs_acl_update_mode()
|
| /linux-6.15/fs/xfs/scrub/ |
| H A D | orphanage.c | 76 inode->i_mode &= ~(S_ISUID | S_ISGID | S_ISVTX); in xrep_chown_orphanage()
|
| /linux-6.15/fs/ext4/ |
| H A D | move_extent.c | 473 if (donor_inode->i_mode & (S_ISUID|S_ISGID)) { in mext_check_arguments()
|
| /linux-6.15/fs/kernfs/ |
| H A D | dir.c | 701 if (parent->mode & S_ISGID) { in kernfs_new_node() 710 mode |= S_ISGID; in kernfs_new_node()
|
| /linux-6.15/fs/bcachefs/ |
| H A D | inode.c | 849 if (parent && parent->bi_mode & S_ISGID) { in bch2_inode_init_late() 852 inode_u->bi_mode |= S_ISGID; in bch2_inode_init_late()
|