Home
last modified time | relevance | path

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

12

/linux-3.4.99/fs/
Dattr.c68 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()
Dinode.c1716 if (dir && dir->i_mode & S_ISGID) { in inode_init_owner()
1719 mode |= S_ISGID; in inode_init_owner()
Dexec.c1325 if ((mode & (S_ISGID | S_IXGRP)) == (S_ISGID | S_IXGRP)) { in prepare_binprm()
/linux-3.4.99/include/linux/
Dstat.h21 #define S_ISGID 0002000 macro
51 #define S_IALLUGO (S_ISUID|S_ISGID|S_ISVTX|S_IRWXUGO)
Dfs.h1934 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()
/linux-3.4.99/arch/powerpc/platforms/cell/spufs/
Dinode.c278 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()
/linux-3.4.99/fs/9p/
Dvfs_inode_dotl.c64 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()
Dvfs_inode.c84 if ((mode & S_ISGID) == S_ISGID) in unixmode2p9mode()
110 res |= S_ISGID; in p9mode2perm()
/linux-3.4.99/fs/configfs/
Dinode.c110 mode &= ~S_ISGID; in configfs_setattr()
/linux-3.4.99/fs/cifs/
Ddir.c283 if (inode->i_mode & S_ISGID) in cifs_create()
315 if (inode->i_mode & S_ISGID) in cifs_create()
Dinode.c462 #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)
/linux-3.4.99/fs/xfs/
Dxfs_iops.c473 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()
Dxfs_inode.h499 ((pip)->i_d.di_mode & S_ISGID))
Dxfs_ioctl.c1087 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()
Dxfs_inode.c1027 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()
Dxfs_vnodeops.c2367 ip->i_d.di_mode &= ~S_ISGID; in xfs_change_file_space()
/linux-3.4.99/fs/jffs2/
Dfs.c445 if (dir_i->i_mode & S_ISGID) { in jffs2_new_inode()
448 mode |= S_ISGID; in jffs2_new_inode()
/linux-3.4.99/security/tomoyo/
Dcondition.c870 value = S_ISGID; in tomoyo_condition()
/linux-3.4.99/fs/gfs2/
Dinode.c380 if (dip->i_inode.i_mode & S_ISGID) { in munge_mode_uid_gid()
382 *mode |= S_ISGID; in munge_mode_uid_gid()
/linux-3.4.99/fs/nfsd/
Dvfs.c357 iap->ia_mode &= ~S_ISGID; in nfsd_sanitize_attrs()
1084 if (inode->i_mode & (S_ISUID | S_ISGID)) in nfsd_vfs_write()
/linux-3.4.99/fs/ext4/
Dmove_extent.c920 if (donor_inode->i_mode & (S_ISUID|S_ISGID)) { in mext_check_arguments()
/linux-3.4.99/fs/ocfs2/
Dfile.c1344 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()
/linux-3.4.99/fs/udf/
Dinode.c1486 ((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()
/linux-3.4.99/fs/ubifs/
Dfile.c1087 mode &= ~S_ISGID; in do_attr_changes()
/linux-3.4.99/mm/
Dfilemap.c1960 if (unlikely((mode & S_ISGID) && (mode & S_IXGRP))) in should_remove_suid()

12