Home
last modified time | relevance | path

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

12

/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/9p/
H A Dvfs_inode_dotl.c40 * new file system object. This checks the S_ISGID to determine the owning
48 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.c2727 if (dir && dir->i_mode & S_ISGID) {
2730 /* Directories are special, and always inherit S_ISGID */ in inode_dio_wait()
2732 mode |= S_ISGID; in inode_dio_wait()
3057 * If the @mode of the new file has both the S_ISGID and S_IXGRP bit in dump_inode()
3058 * raised and @dir has the S_ISGID bit raised ensure that the caller is in dump_inode()
3061 * In all other cases, strip the S_ISGID bit from @mode.
3068 if ((mode & (S_ISGID | S_IXGRP)) != (S_ISGID | S_IXGRP))
3070 if (S_ISDIR(mode) || !dir || !(dir->i_mode & S_ISGID))
3074 return mode & ~S_ISGID;
[all...]
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/xfs/
H A Dxfs_pnfs.c108 VFS_I(ip)->i_mode &= ~S_ISGID; in xfs_fs_map_blocks()
H A Dxfs_inode.h553 * For multiple groups support: if S_ISGID bit is set in the parent
555 * new subdirectory gets S_ISGID bit from parent.
558 (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/f2fs/
H A Dacl.c238 mode &= ~S_ISGID; in __f2fs_set_acl()
/linux/fs/smb/client/
H A Dinode.c714 #define SFBITS_MASK (S_ISVTX | S_ISGID | S_ISUID) /* SETFILEBITS valid bits */ in cifs_sfu_mode()
805 mode |= (wire & POSIX_SET_GID) ? S_ISGID : 0; in wire_filetype_to_posix()
2158 if (parent->i_mode & S_ISGID)
2159 mode |= S_ISGID;
2173 if (parent->i_mode & S_ISGID)
2198 if (inode->i_mode & S_ISGID)
H A Ddir.c410 if (dir->i_mode & S_ISGID)
449 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_clamp_timestamp()
/linux/fs/kernfs/
H A Ddir.c739 if (parent->mode & S_ISGID) { in kernfs_new_node()
748 mode |= S_ISGID; in kernfs_new_node()
/linux/security/tomoyo/
H A Dcondition.c895 value = S_ISGID; in tomoyo_condition()
/linux/fs/nfs/
H A Dinternal.h720 if (unlikely((mode & S_ISGID) && (mode & S_IXGRP))) in nfs_should_remove_suid()
/linux/tools/testing/selftests/bpf/progs/
H A Dprofiler.inc.h32 #define S_ISGID 0002000 macro
/linux/fs/ocfs2/
H A Dfile.c1412 if ((inode->i_mode & S_ISGID) && (inode->i_mode & S_IXGRP)) in __ocfs2_write_remove_suid()
1413 inode->i_mode &= ~S_ISGID; in __ocfs2_write_remove_suid()
/linux/fs/udf/
H A Dinode.c1685 ((flags & ICBTAG_FLAG_SETGID) ? S_ISGID : 0) | in udf_convert_permissions()
1915 ((inode->i_mode & S_ISGID) ? ICBTAG_FLAG_SETGID : 0) | in udf_update_inode()

12