Home
last modified time | relevance | path

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

12

/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/tools/perf/trace/beauty/
H A Dmode_t.c11 #define S_IALLUGO (S_ISUID|S_ISGID|S_ISVTX|S_IRWXUGO)
/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/9p/
H A Dvfs_inode_dotl.c48 if (dir_inode->i_mode & S_ISGID) { in v9fs_get_fsgid_for_create()
366 if (dir->i_mode & S_ISGID) in v9fs_vfs_mkdir_dotl()
367 omode |= S_ISGID; in v9fs_vfs_mkdir_dotl()
H A Dvfs_inode.c66 if ((mode & S_ISGID) == S_ISGID) in unixmode2p9mode()
92 res |= S_ISGID; in p9mode2perm()
/linux/fs/configfs/
H A Dinode.c81 mode &= ~S_ISGID; in configfs_setattr()
/linux/fs/
H A Dinode.c2669 if (dir && dir->i_mode & S_ISGID) { in inode_init_owner()
2674 mode |= S_ISGID; in inode_init_owner()
3010 if ((mode & (S_ISGID | S_IXGRP)) != (S_ISGID | S_IXGRP)) in mode_strip_sgid()
3012 if (S_ISDIR(mode) || !dir || !(dir->i_mode & S_ISGID)) in mode_strip_sgid()
3016 return mode & ~S_ISGID; in mode_strip_sgid()
H A Dexec.c1545 if (!(mode & (S_ISUID|S_ISGID))) in bprm_fill_uid()
1574 if ((mode & (S_ISGID | S_IXGRP)) == (S_ISGID | S_IXGRP)) { in bprm_fill_uid()
H A Dposix_acl.c719 mode &= ~S_ISGID; in posix_acl_update_mode()
/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/jffs2/
H A Dfs.c449 if (dir_i->i_mode & S_ISGID) { in jffs2_new_inode()
452 mode |= S_ISGID; in jffs2_new_inode()
/linux/fs/smb/client/
H A Ddir.c382 if (inode->i_mode & S_ISGID)
421 if (inode->i_mode & S_ISGID)
H A Dinode.c697 #define SFBITS_MASK (S_ISVTX | S_ISGID | S_ISUID) /* SETFILEBITS valid bits */
788 mode |= (wire & POSIX_SET_GID) ? S_ISGID : 0; in wire_perms_to_posix()
2138 if (parent->i_mode & S_ISGID)
2139 mode |= S_ISGID;
2153 if (parent->i_mode & S_ISGID)
2178 if (inode->i_mode & S_ISGID)
/linux/fs/f2fs/
H A Dacl.c224 mode &= ~S_ISGID; in f2fs_acl_update_mode()
/linux/fs/xfs/
H A Dxfs_inode.h554 (xfs_has_grpid((pip)->i_mount) || (VFS_I(pip)->i_mode & S_ISGID))
H A Dxfs_ioctl.c795 if ((VFS_I(ip)->i_mode & (S_ISUID|S_ISGID)) && in xfs_fileattr_set()
797 VFS_I(ip)->i_mode &= ~(S_ISUID|S_ISGID); in xfs_fileattr_set()
/linux/fs/xfs/scrub/
H A Dorphanage.c76 inode->i_mode &= ~(S_ISUID | S_ISGID | S_ISVTX); in xrep_chown_orphanage()
/linux/fs/ext4/
H A Dmove_extent.c479 if (donor_inode->i_mode & (S_ISUID|S_ISGID)) { in mext_check_validity()
/linux/fs/kernfs/
H A Ddir.c706 if (parent->mode & S_ISGID) { in kernfs_new_node()
715 mode |= S_ISGID; in kernfs_new_node()
/linux/fs/fuse/
H A Ddir.c2349 if ((inode->i_mode & (S_ISGID | S_IXGRP)) == (S_ISGID | S_IXGRP)) { in fuse_setattr()
2351 attr->ia_mode &= ~S_ISGID; in fuse_setattr()
/linux/security/tomoyo/
H A Dcondition.c895 value = S_ISGID; in tomoyo_condition()
/linux/tools/testing/selftests/bpf/progs/
H A Dprofiler.inc.h32 #define S_ISGID 0002000 macro
/linux/fs/ocfs2/
H A Dfile.c1407 if ((inode->i_mode & S_ISGID) && (inode->i_mode & S_IXGRP)) in __ocfs2_write_remove_suid()
1408 inode->i_mode &= ~S_ISGID; in __ocfs2_write_remove_suid()

12