| /linux/fs/ |
| H A D | attr.c | 38 if (!(mode & S_ISGID)) in setattr_should_drop_sgid() 215 attr->ia_mode &= ~S_ISGID; in setattr_prepare() 353 mode &= ~S_ISGID; in setattr_copy() 506 if (mode & S_ISGID) { in notify_change() 511 attr->ia_mode &= ~S_ISGID; in notify_change()
|
| H A D | inode.c | 2722 if (dir && dir->i_mode & S_ISGID) { in inode_init_owner() 2727 mode |= S_ISGID; in inode_init_owner() 3063 if ((mode & (S_ISGID | S_IXGRP)) != (S_ISGID | S_IXGRP)) in mode_strip_sgid() 3065 if (S_ISDIR(mode) || !dir || !(dir->i_mode & S_ISGID)) in mode_strip_sgid() 3069 return mode & ~S_ISGID; in mode_strip_sgid()
|
| H A D | exec.c | 1660 if (!(mode & (S_ISUID|S_ISGID))) in bprm_fill_uid() 1689 if ((mode & (S_ISGID | S_IXGRP)) == (S_ISGID | S_IXGRP)) { in bprm_fill_uid()
|
| H A D | posix_acl.c | 726 mode &= ~S_ISGID; in posix_acl_update_mode()
|
| /linux/tools/perf/trace/beauty/ |
| H A D | mode_t.c | 13 #define S_IALLUGO (S_ISUID|S_ISGID|S_ISVTX|S_IRWXUGO)
|
| /linux/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/include/uapi/linux/ |
| H A D | stat.h | 18 #define S_ISGID 0002000 macro
|
| /linux/tools/include/uapi/linux/ |
| H A D | stat.h | 18 #define S_ISGID 0002000 macro
|
| /linux/tools/perf/trace/beauty/include/uapi/linux/ |
| H A D | stat.h | 18 #define S_ISGID 0002000 macro
|
| /linux/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/fs/xfs/ |
| H A D | xfs_inode.h | 558 (xfs_has_grpid((pip)->i_mount) || (VFS_I(pip)->i_mode & S_ISGID))
|
| H A D | xfs_ioctl.c | 835 if ((VFS_I(ip)->i_mode & (S_ISUID|S_ISGID)) && in xfs_fileattr_set() 837 VFS_I(ip)->i_mode &= ~(S_ISUID|S_ISGID); in xfs_fileattr_set()
|
| /linux/fs/smb/client/ |
| H A D | inode.c | 718 #define SFBITS_MASK (S_ISVTX | S_ISGID | S_ISUID) /* SETFILEBITS valid bits */ 809 mode |= (wire & POSIX_SET_GID) ? S_ISGID : 0; in wire_perms_to_posix() 2171 if (parent->i_mode & S_ISGID) 2172 mode |= S_ISGID; 2186 if (parent->i_mode & S_ISGID) 2211 if (inode->i_mode & S_ISGID)
|
| H A D | dir.c | 407 if (dir->i_mode & S_ISGID) 446 if (dir->i_mode & S_ISGID)
|
| /linux/fs/xfs/scrub/ |
| H A D | orphanage.c | 76 inode->i_mode &= ~(S_ISUID | S_ISGID | S_ISVTX); in xrep_chown_orphanage()
|
| H A D | inode_repair.c | 1752 VFS_I(sc->ip)->i_mode &= ~(S_ISUID | S_ISGID); in xrep_inode_ids()
|
| /linux/security/tomoyo/ |
| H A D | condition.c | 895 value = S_ISGID; in tomoyo_condition()
|
| /linux/fs/nfs/ |
| H A D | internal.h | 722 if (unlikely((mode & S_ISGID) && (mode & S_IXGRP))) in nfs_should_remove_suid()
|
| H A D | inode.c | 844 inode->i_mode &= ~S_ISGID; in nfs_setattr_update_inode()
|
| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | profiler.inc.h | 32 #define S_ISGID 0002000 macro
|
| /linux/fs/overlayfs/ |
| H A D | inode.c | 560 if (unlikely(inode->i_mode & S_ISGID) && type == ACL_TYPE_ACCESS && in ovl_set_acl()
|
| /linux/fs/udf/ |
| H A D | inode.c | 1693 ((flags & ICBTAG_FLAG_SETGID) ? S_ISGID : 0) | in udf_convert_permissions() 1936 ((inode->i_mode & S_ISGID) ? ICBTAG_FLAG_SETGID : 0) | in udf_write_inode()
|
| /linux/fs/ceph/ |
| H A D | file.c | 722 if (dir->i_mode & S_ISGID) { in ceph_finish_async_create() 727 mode |= S_ISGID; in ceph_finish_async_create()
|
| /linux/fs/nfsd/ |
| H A D | vfs.c | 412 iap->ia_mode &= ~S_ISGID; in nfsd_sanitize_attrs()
|
| /linux/fs/btrfs/ |
| H A D | tree-checker.c | 1214 u32 valid_mask = (S_IFMT | S_ISUID | S_ISGID | S_ISVTX | 0777); in check_inode_item()
|