Searched refs:S_ISGID (Results 1 - 25 of 52) sorted by relevance

123

/freebsd-9.3-release/crypto/openssh/openbsd-compat/
H A Dstrmode.c108 switch (mode & (S_IXGRP | S_ISGID)) {
115 case S_ISGID:
118 case S_IXGRP | S_ISGID:
/freebsd-9.3-release/lib/libc/string/
H A Dstrmode.c109 switch (mode & (S_IXGRP | S_ISGID)) {
116 case S_ISGID:
119 case S_IXGRP | S_ISGID:
/freebsd-9.3-release/tools/regression/priv/
H A Dpriv_vfs_setgid.c78 error = chmod(fpath, 0600 | S_ISGID);
98 error = chmod(fpath, 0600 | S_ISGID);
/freebsd-9.3-release/contrib/libarchive/libarchive/
H A Darchive_entry_strmode.c75 if (mode & S_ISGID) {
/freebsd-9.3-release/contrib/binutils/binutils/
H A Dfilemode.c230 #ifdef S_ISGID
231 if (bits & S_ISGID)
/freebsd-9.3-release/contrib/libarchive/libarchive/test/
H A Dtest_write_disk_perms.c265 archive_entry_set_mode(ae, S_IFREG | S_ISGID | 0742);
302 archive_entry_set_mode(ae, S_IFREG | S_ISGID | 0742);
316 archive_entry_set_mode(ae, S_IFREG | S_ISGID | 0742);
337 archive_entry_set_mode(ae, S_IFREG | S_ISGID | 0742);
346 archive_entry_set_mode(ae, S_IFREG | S_ISGID | 0742);
421 assert((st.st_mode & 07777) == (S_ISGID | 0742));
432 assert((st.st_mode & 07777) == (S_ISGID | 0742));
H A Dtest_write_disk.c60 /* When verifying a dir, ignore the S_ISGID bit, as some systems set
63 st.st_mode &= ~S_ISGID;
/freebsd-9.3-release/contrib/gnu-sort/lib/
H A Dstat-macros.h184 # if !S_ISGID
185 # define S_ISGID 02000 macro
253 (S_ISUID | S_ISGID | S_ISVTX | S_IRWXU | S_IRWXG | S_IRWXO)
/freebsd-9.3-release/contrib/sendmail/libsm/
H A Dmpeix.c457 sendmail_mpe_gidflag = ((mode & S_ISGID) == S_ISGID);
488 sendmail_mpe_gidflag = ((mode & S_ISGID) == S_ISGID);
/freebsd-9.3-release/usr.sbin/mtree/
H A Dmtree.h54 #define MBITS (S_ISUID|S_ISGID|S_ISTXT|S_IRWXU|S_IRWXG|S_IRWXO)
/freebsd-9.3-release/bin/cp/
H A Dutils.c127 fs->st_mode & ~(S_ISUID | S_ISGID));
136 fs->st_mode & ~(S_ISUID | S_ISGID));
323 fs->st_mode &= S_ISUID | S_ISGID | S_ISVTX |
337 ts.st_mode &= S_ISUID | S_ISGID | S_ISVTX |
354 fs->st_mode &= ~(S_ISUID | S_ISGID);
H A Dcp.c376 if ((mode & (S_ISUID | S_ISGID | S_ISTXT)) ||
/freebsd-9.3-release/contrib/tcsh/
H A Dtc.os.h315 #ifndef S_ISGID
316 # define S_ISGID 0002000 /* setgid */ macro
317 #endif /* S_ISGID */
322 # define S_ENFMT S_ISGID /* record locking enforcement flag */
/freebsd-9.3-release/lib/libc/gen/
H A Dsetmode.c166 #define STANDARD_BITS (S_ISUID|S_ISGID|S_IRWXU|S_IRWXG|S_IRWXO)
232 who |= S_ISGID|S_IRWXG;
258 perm |= S_ISUID|S_ISGID;
/freebsd-9.3-release/sys/cddl/compat/opensolaris/kern/
H A Dopensolaris_policy.c323 if ((vap->va_mode & (S_ISUID | S_ISGID)) != 0) {
326 vap->va_mode &= ~(S_ISUID|S_ISGID);
353 if ((vap->va_mode & S_ISGID) != 0) {
/freebsd-9.3-release/contrib/mtree/
H A Dmtree.h50 #define MBITS (S_ISUID|S_ISGID|S_ISTXT|S_IRWXU|S_IRWXG|S_IRWXO)
/freebsd-9.3-release/sys/sys/
H A Dstat.h196 #define S_ISGID 0002000 /* set group id on execution */ macro
253 #define ALLPERMS (S_ISUID|S_ISGID|S_ISTXT|S_IRWXU|S_IRWXG|S_IRWXO)
/freebsd-9.3-release/contrib/file/src/
H A Dfsmagic.c177 #ifdef S_ISGID
178 if (sb->st_mode & S_ISGID)
/freebsd-9.3-release/sys/gnu/fs/xfs/
H A Dxfs_rw.c80 * clear the S_ISGID bit if the Group execute bit is
85 ip->i_d.di_mode &= ~S_ISGID;
/freebsd-9.3-release/bin/mv/
H A Dmv.c322 if (oldmode & (S_ISUID | S_ISGID)) {
326 sbp->st_mode &= ~(S_ISUID | S_ISGID);
/freebsd-9.3-release/usr.bin/compress/
H A Dcompress.c365 fs->st_mode &= S_ISUID|S_ISGID|S_IRWXU|S_IRWXG|S_IRWXO;
381 fs->st_mode &= ~(S_ISUID|S_ISGID);
/freebsd-9.3-release/contrib/amd/amd/
H A Dinfo_exec.c374 if (sb.st_mode & (S_ISUID|S_ISGID)) {
/freebsd-9.3-release/contrib/sendmail/libsmutil/
H A Dsafefile.c112 if (bitset(S_ISGID, st->st_mode))
114 if (bitset(S_ISGID, st->st_mode) && st->st_gid != 0)
/freebsd-9.3-release/sys/gnu/fs/xfs/FreeBSD/
H A Dxfs_frw.c601 ((xip->i_d.di_mode & (S_ISGID | S_IXGRP)) ==
602 (S_ISGID | S_IXGRP))) &&
/freebsd-9.3-release/sys/fs/tmpfs/
H A Dtmpfs_subr.c1190 if (!groupmember(node->tn_gid, cred) && (mode & S_ISGID)) {
1270 if ((node->tn_mode & (S_ISUID | S_ISGID)) && (ouid != uid || ogid != gid)) {
1272 node->tn_mode &= ~(S_ISUID | S_ISGID);

Completed in 189 milliseconds

123