Home
last modified time | relevance | path

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

12

/linux-6.3-rc2/fs/
A Dattr.c42 if (!(mode & S_ISGID)) in setattr_should_drop_sgid()
208 attr->ia_mode &= ~S_ISGID; in setattr_prepare()
319 mode &= ~S_ISGID; in setattr_copy()
440 if (mode & S_ISGID) { in notify_change()
445 attr->ia_mode &= ~S_ISGID; in notify_change()
A Dinode.c2298 if (dir && dir->i_mode & S_ISGID) { in inode_init_owner()
2303 mode |= S_ISGID; in inode_init_owner()
2499 if ((mode & (S_ISGID | S_IXGRP)) != (S_ISGID | S_IXGRP)) in mode_strip_sgid()
2501 if (S_ISDIR(mode) || !dir || !(dir->i_mode & S_ISGID)) in mode_strip_sgid()
2505 return mode & ~S_ISGID; in mode_strip_sgid()
A Dexec.c1613 if (!(mode & (S_ISUID|S_ISGID))) in bprm_fill_uid()
1637 if ((mode & (S_ISGID | S_IXGRP)) == (S_ISGID | S_IXGRP)) { in bprm_fill_uid()
/linux-6.3-rc2/include/linux/
A Dstat.h10 #define S_IALLUGO (S_ISUID|S_ISGID|S_ISVTX|S_IRWXUGO)
/linux-6.3-rc2/tools/perf/trace/beauty/
A Dmode_t.c11 #define S_IALLUGO (S_ISUID|S_ISGID|S_ISVTX|S_IRWXUGO)
/linux-6.3-rc2/include/uapi/linux/
A Dstat.h18 #define S_ISGID 0002000 macro
/linux-6.3-rc2/tools/include/uapi/linux/
A Dstat.h18 #define S_ISGID 0002000 macro
/linux-6.3-rc2/tools/testing/selftests/capabilities/
A Dtest_execve.c254 if (chmod("validate_cap_sgidroot", S_ISGID | 0710) != 0) in do_tests()
261 if (chmod("validate_cap_sgidnonroot", S_ISGID | 0710) != 0) in do_tests()
/linux-6.3-rc2/fs/configfs/
A Dinode.c81 mode &= ~S_ISGID; in configfs_setattr()
/linux-6.3-rc2/fs/9p/
A Dvfs_inode_dotl.c49 if (dir_inode->i_mode & S_ISGID) { in v9fs_get_fsgid_for_create()
386 if (dir->i_mode & S_ISGID) in v9fs_vfs_mkdir_dotl()
387 omode |= S_ISGID; in v9fs_vfs_mkdir_dotl()
A Dvfs_inode.c67 if ((mode & S_ISGID) == S_ISGID) in unixmode2p9mode()
93 res |= S_ISGID; in p9mode2perm()
/linux-6.3-rc2/fs/orangefs/
A Dorangefs-utils.c128 perm_mode |= S_ISGID; in orangefs_inode_perms()
545 S_ISGID, S_ISUID in ORANGEFS_util_translate_mode()
/linux-6.3-rc2/fs/xfs/
A Dxfs_pnfs.c99 VFS_I(ip)->i_mode &= ~S_ISGID; in xfs_fs_map_update_inode()
A Dxfs_inode.h470 (xfs_has_grpid((pip)->i_mount) || (VFS_I(pip)->i_mode & S_ISGID))
A Dxfs_inode.c825 if (dir && !(dir->i_mode & S_ISGID) && xfs_has_grpid(mp)) { in xfs_init_new_inode()
838 if (irix_sgid_inherit && (inode->i_mode & S_ISGID) && in xfs_init_new_inode()
840 inode->i_mode &= ~S_ISGID; in xfs_init_new_inode()
A Dxfs_ioctl.c1373 if ((VFS_I(ip)->i_mode & (S_ISUID|S_ISGID)) && in xfs_fileattr_set()
1375 VFS_I(ip)->i_mode &= ~(S_ISUID|S_ISGID); in xfs_fileattr_set()
/linux-6.3-rc2/fs/cifs/
A Ddir.c339 if (inode->i_mode & S_ISGID)
378 if (inode->i_mode & S_ISGID)
A Dinode.c586 #define SFBITS_MASK (S_ISVTX | S_ISGID | S_ISUID) /* SETFILEBITS valid bits */
1801 if (parent->i_mode & S_ISGID)
1802 mode |= S_ISGID;
1815 if (parent->i_mode & S_ISGID)
1840 if (inode->i_mode & S_ISGID)
/linux-6.3-rc2/fs/jffs2/
A Dfs.c449 if (dir_i->i_mode & S_ISGID) { in jffs2_new_inode()
452 mode |= S_ISGID; in jffs2_new_inode()
/linux-6.3-rc2/fs/f2fs/
A Dacl.c224 mode &= ~S_ISGID; in f2fs_acl_update_mode()
/linux-6.3-rc2/fs/ext4/
A Dmove_extent.c472 if (donor_inode->i_mode & (S_ISUID|S_ISGID)) { in mext_check_arguments()
/linux-6.3-rc2/fs/nfs/
A Dinode.c721 (inode->i_mode & (S_ISGID | S_IXGRP)) == in nfs_setattr_update_inode()
722 (S_ISGID | S_IXGRP)) in nfs_setattr_update_inode()
723 inode->i_mode &= ~S_ISGID; in nfs_setattr_update_inode()
A Dinternal.h623 if (unlikely((mode & S_ISGID) && (mode & S_IXGRP))) in nfs_should_remove_suid()
/linux-6.3-rc2/fs/fuse/
A Ddir.c1946 if ((inode->i_mode & (S_ISGID | S_IXGRP)) == (S_ISGID | S_IXGRP)) { in fuse_setattr()
1948 attr->ia_mode &= ~S_ISGID; in fuse_setattr()
/linux-6.3-rc2/security/tomoyo/
A Dcondition.c895 value = S_ISGID; in tomoyo_condition()

Completed in 55 milliseconds

12