Home
last modified time | relevance | path

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

12

/linux-4.19.296/fs/
Dattr.c96 attr->ia_mode &= ~S_ISGID; in setattr_prepare()
202 mode &= ~S_ISGID; in setattr_copy()
314 if ((mode & (S_ISGID | S_IXGRP)) == (S_ISGID | S_IXGRP)) { in notify_change()
319 attr->ia_mode &= ~S_ISGID; in notify_change()
Dinode.c1771 if (unlikely((mode & S_ISGID) && (mode & S_IXGRP))) in should_remove_suid()
2019 if (dir && dir->i_mode & S_ISGID) { in inode_init_owner()
2024 mode |= S_ISGID; in inode_init_owner()
2025 else if ((mode & (S_ISGID | S_IXGRP)) == (S_ISGID | S_IXGRP) && in inode_init_owner()
2028 mode &= ~S_ISGID; in inode_init_owner()
Dexec.c1548 if (!(mode & (S_ISUID|S_ISGID))) in bprm_fill_uid()
1570 if ((mode & (S_ISGID | S_IXGRP)) == (S_ISGID | S_IXGRP)) { in bprm_fill_uid()
Dposix_acl.c656 mode &= ~S_ISGID; in posix_acl_update_mode()
/linux-4.19.296/include/linux/
Dstat.h10 #define S_IALLUGO (S_ISUID|S_ISGID|S_ISVTX|S_IRWXUGO)
Dfs.h2281 return (ino->i_mode & (S_ISGID | S_IXGRP)) == S_ISGID; in __mandatory_lock()
3412 return (mode & S_ISUID) || ((mode & S_ISGID) && (mode & S_IXGRP)); in is_sxid()
/linux-4.19.296/include/uapi/linux/
Dstat.h18 #define S_ISGID 0002000 macro
/linux-4.19.296/fs/orangefs/
Dorangefs-utils.c127 perm_mode |= S_ISGID; in orangefs_inode_perms()
560 S_ISGID, S_ISUID in ORANGEFS_util_translate_mode()
/linux-4.19.296/fs/configfs/
Dinode.c105 mode &= ~S_ISGID; in configfs_setattr()
/linux-4.19.296/fs/9p/
Dvfs_inode_dotl.c64 if (dir_inode->i_mode & S_ISGID) { in v9fs_get_fsgid_for_create()
401 if (dir->i_mode & S_ISGID) in v9fs_vfs_mkdir_dotl()
402 omode |= S_ISGID; in v9fs_vfs_mkdir_dotl()
Dvfs_inode.c84 if ((mode & S_ISGID) == S_ISGID) in unixmode2p9mode()
110 res |= S_ISGID; in p9mode2perm()
/linux-4.19.296/fs/xfs/
Dxfs_inode.h398 (VFS_I(pip)->i_mode & S_ISGID))
Dxfs_iops.c731 if ((inode->i_mode & (S_ISUID|S_ISGID)) && in xfs_setattr_nonsize()
733 inode->i_mode &= ~(S_ISUID|S_ISGID); in xfs_setattr_nonsize()
Dxfs_inode.c822 if ((VFS_I(pip)->i_mode & S_ISGID) && S_ISDIR(mode)) in xfs_ialloc()
823 inode->i_mode |= S_ISGID; in xfs_ialloc()
832 (inode->i_mode & S_ISGID) && in xfs_ialloc()
834 inode->i_mode &= ~S_ISGID; in xfs_ialloc()
Dxfs_ioctl.c1403 if ((VFS_I(ip)->i_mode & (S_ISUID|S_ISGID)) && in xfs_ioctl_setattr()
1405 VFS_I(ip)->i_mode &= ~(S_ISUID|S_ISGID); in xfs_ioctl_setattr()
Dxfs_file.c58 VFS_I(ip)->i_mode &= ~S_ISGID; in xfs_update_prealloc_flags()
/linux-4.19.296/fs/jffs2/
Dfs.c446 if (dir_i->i_mode & S_ISGID) { in jffs2_new_inode()
449 mode |= S_ISGID; in jffs2_new_inode()
/linux-4.19.296/fs/cifs/
Ddir.c394 if (inode->i_mode & S_ISGID) in cifs_do_create()
430 if (inode->i_mode & S_ISGID) in cifs_do_create()
Dinode.c544 #define SFBITS_MASK (S_ISVTX | S_ISGID | S_ISUID) /* SETFILEBITS valid bits */
1464 if (parent->i_mode & S_ISGID)
1465 mode |= S_ISGID;
1477 if (parent->i_mode & S_ISGID)
1499 if (inode->i_mode & S_ISGID)
/linux-4.19.296/fs/ext4/
Dmove_extent.c460 if (donor_inode->i_mode & (S_ISUID|S_ISGID)) { in mext_check_arguments()
/linux-4.19.296/fs/fuse/
Ddir.c1831 if ((inode->i_mode & (S_ISGID | S_IXGRP)) == (S_ISGID | S_IXGRP)) { in fuse_setattr()
1833 attr->ia_mode &= ~S_ISGID; in fuse_setattr()
/linux-4.19.296/fs/gfs2/
Dinode.c367 if (dip->i_inode.i_mode & S_ISGID) { in munge_mode_uid_gid()
369 inode->i_mode |= S_ISGID; in munge_mode_uid_gid()
/linux-4.19.296/fs/btrfs/
Dtree-checker.c684 u32 valid_mask = (S_IFMT | S_ISUID | S_ISGID | S_ISVTX | 0777); in check_inode_item()
/linux-4.19.296/fs/ocfs2/
Dfile.c1408 if ((inode->i_mode & S_ISGID) && (inode->i_mode & S_IXGRP)) in __ocfs2_write_remove_suid()
1409 inode->i_mode &= ~S_ISGID; in __ocfs2_write_remove_suid()
/linux-4.19.296/fs/ubifs/
Dfile.c1114 mode &= ~S_ISGID; in do_attr_changes()

12