Home
last modified time | relevance | path

Searched refs:S_ISGID (Results 1 – 25 of 30) sorted by relevance

12

/linux/fs/
H A Dattr.c38 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 Dinode.c2722 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 Dexec.c1660 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 Dposix_acl.c726 mode &= ~S_ISGID; in posix_acl_update_mode()
/linux/tools/perf/trace/beauty/
H A Dmode_t.c13 #define S_IALLUGO (S_ISUID|S_ISGID|S_ISVTX|S_IRWXUGO)
/linux/tools/testing/selftests/capabilities/
H A Dtest_execve.c246 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 Dstat.h18 #define S_ISGID 0002000 macro
/linux/tools/include/uapi/linux/
H A Dstat.h18 #define S_ISGID 0002000 macro
/linux/tools/perf/trace/beauty/include/uapi/linux/
H A Dstat.h18 #define S_ISGID 0002000 macro
/linux/fs/orangefs/
H A Dorangefs-utils.c128 perm_mode |= S_ISGID; in orangefs_inode_perms()
545 S_ISGID, S_ISUID in ORANGEFS_util_translate_mode()
/linux/fs/xfs/
H A Dxfs_inode.h558 (xfs_has_grpid((pip)->i_mount) || (VFS_I(pip)->i_mode & S_ISGID))
H A Dxfs_ioctl.c835 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 Dinode.c718 #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 Ddir.c407 if (dir->i_mode & S_ISGID)
446 if (dir->i_mode & S_ISGID)
/linux/fs/xfs/scrub/
H A Dorphanage.c76 inode->i_mode &= ~(S_ISUID | S_ISGID | S_ISVTX); in xrep_chown_orphanage()
H A Dinode_repair.c1752 VFS_I(sc->ip)->i_mode &= ~(S_ISUID | S_ISGID); in xrep_inode_ids()
/linux/security/tomoyo/
H A Dcondition.c895 value = S_ISGID; in tomoyo_condition()
/linux/fs/nfs/
H A Dinternal.h722 if (unlikely((mode & S_ISGID) && (mode & S_IXGRP))) in nfs_should_remove_suid()
H A Dinode.c844 inode->i_mode &= ~S_ISGID; in nfs_setattr_update_inode()
/linux/tools/testing/selftests/bpf/progs/
H A Dprofiler.inc.h32 #define S_ISGID 0002000 macro
/linux/fs/overlayfs/
H A Dinode.c560 if (unlikely(inode->i_mode & S_ISGID) && type == ACL_TYPE_ACCESS && in ovl_set_acl()
/linux/fs/udf/
H A Dinode.c1693 ((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 Dfile.c722 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 Dvfs.c412 iap->ia_mode &= ~S_ISGID; in nfsd_sanitize_attrs()
/linux/fs/btrfs/
H A Dtree-checker.c1214 u32 valid_mask = (S_IFMT | S_ISUID | S_ISGID | S_ISVTX | 0777); in check_inode_item()

12