Searched refs:S_ISGID (Results 1 – 25 of 26) sorted by relevance
12
68 attr->ia_mode &= ~S_ISGID; in inode_change_ok()160 mode &= ~S_ISGID; in setattr_copy()226 if ((mode & (S_ISGID | S_IXGRP)) == (S_ISGID | S_IXGRP)) { in notify_change()231 attr->ia_mode &= ~S_ISGID; in notify_change()
1716 if (dir && dir->i_mode & S_ISGID) { in inode_init_owner()1719 mode |= S_ISGID; in inode_init_owner()
1325 if ((mode & (S_ISGID | S_IXGRP)) == (S_ISGID | S_IXGRP)) { in prepare_binprm()
21 #define S_ISGID 0002000 macro51 #define S_IALLUGO (S_ISUID|S_ISGID|S_ISVTX|S_IRWXUGO)
1934 return (ino->i_mode & (S_ISGID | S_IXGRP)) == S_ISGID; in __mandatory_lock()2668 return (mode & S_ISUID) || ((mode & S_ISGID) && (mode & S_IXGRP)); in is_sxid()
278 if (dir->i_mode & S_ISGID) { in spufs_mkdir()280 inode->i_mode &= S_ISGID; in spufs_mkdir()536 if (dir->i_mode & S_ISGID) { in spufs_mkgang()538 inode->i_mode &= S_ISGID; in spufs_mkgang()
64 if (dir_inode->i_mode & S_ISGID) { in v9fs_get_fsgid_for_create()415 if (dir->i_mode & S_ISGID) in v9fs_vfs_mkdir_dotl()416 omode |= S_ISGID; in v9fs_vfs_mkdir_dotl()
84 if ((mode & S_ISGID) == S_ISGID) in unixmode2p9mode()110 res |= S_ISGID; in p9mode2perm()
110 mode &= ~S_ISGID; in configfs_setattr()
283 if (inode->i_mode & S_ISGID) in cifs_create()315 if (inode->i_mode & S_ISGID) in cifs_create()
462 #define SFBITS_MASK (S_ISVTX | S_ISGID | S_ISUID) /* SETFILEBITS valid bits */1383 if (inode->i_mode & S_ISGID)1384 mode |= S_ISGID;1396 if (inode->i_mode & S_ISGID)1437 if (inode->i_mode & S_ISGID)
473 mode &= ~S_ISGID; in xfs_setattr_mode()599 if ((ip->i_d.di_mode & (S_ISUID|S_ISGID)) && in xfs_setattr_nonsize()601 ip->i_d.di_mode &= ~(S_ISUID|S_ISGID); in xfs_setattr_nonsize()
499 ((pip)->i_d.di_mode & S_ISGID))
1087 if ((ip->i_d.di_mode & (S_ISUID|S_ISGID)) && in xfs_ioctl_setattr()1089 ip->i_d.di_mode &= ~(S_ISUID|S_ISGID); in xfs_ioctl_setattr()
1027 if ((pip->i_d.di_mode & S_ISGID) && S_ISDIR(mode)) { in xfs_ialloc()1028 ip->i_d.di_mode |= S_ISGID; in xfs_ialloc()1038 (ip->i_d.di_mode & S_ISGID) && in xfs_ialloc()1040 ip->i_d.di_mode &= ~S_ISGID; in xfs_ialloc()
2367 ip->i_d.di_mode &= ~S_ISGID; in xfs_change_file_space()
445 if (dir_i->i_mode & S_ISGID) { in jffs2_new_inode()448 mode |= S_ISGID; in jffs2_new_inode()
870 value = S_ISGID; in tomoyo_condition()
380 if (dip->i_inode.i_mode & S_ISGID) { in munge_mode_uid_gid()382 *mode |= S_ISGID; in munge_mode_uid_gid()
357 iap->ia_mode &= ~S_ISGID; in nfsd_sanitize_attrs()1084 if (inode->i_mode & (S_ISUID | S_ISGID)) in nfsd_vfs_write()
920 if (donor_inode->i_mode & (S_ISUID|S_ISGID)) { in mext_check_arguments()
1344 if ((inode->i_mode & S_ISGID) && (inode->i_mode & S_IXGRP)) in __ocfs2_write_remove_suid()1345 inode->i_mode &= ~S_ISGID; in __ocfs2_write_remove_suid()
1486 ((flags & ICBTAG_FLAG_SETGID) ? S_ISGID : 0) | in udf_convert_permissions()1693 ((inode->i_mode & S_ISGID) ? ICBTAG_FLAG_SETGID : 0) | in udf_update_inode()
1087 mode &= ~S_ISGID; in do_attr_changes()
1960 if (unlikely((mode & S_ISGID) && (mode & S_IXGRP))) in should_remove_suid()