Home
last modified time | relevance | path

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

12

/freebsd/crypto/openssh/openbsd-compat/
H A Dstrmode.c108 switch (mode & (S_IXGRP | S_ISGID)) { in strmode()
115 case S_ISGID: in strmode()
118 case S_IXGRP | S_ISGID: in strmode()
/freebsd/lib/libc/string/
H A Dstrmode.c105 switch (mode & (S_IXGRP | S_ISGID)) { in strmode()
112 case S_ISGID: in strmode()
115 case S_IXGRP | S_ISGID: in strmode()
/freebsd/sys/contrib/openzfs/tests/zfs-tests/cmd/
H A Dsuid_write_to_file.c50 extra = S_ISGID; in main()
52 extra = S_ISUID | S_ISGID; in main()
126 mode_t res = st.st_mode & (0777 | S_ISUID | S_ISGID); in main()
/freebsd/contrib/libarchive/libarchive/test/
H A Dtest_write_disk_perms.c297 archive_entry_set_mode(ae, S_IFREG | S_ISGID | 0742); in DEFINE_TEST()
334 archive_entry_set_mode(ae, S_IFREG | S_ISGID | 0742); in DEFINE_TEST()
348 archive_entry_set_mode(ae, S_IFREG | S_ISGID | 0742); in DEFINE_TEST()
369 archive_entry_set_mode(ae, S_IFREG | S_ISGID | 0742); in DEFINE_TEST()
378 archive_entry_set_mode(ae, S_IFREG | S_ISGID | 0742); in DEFINE_TEST()
449 assertEqualInt(st.st_mode & 07777, S_ISGID | 0742); in DEFINE_TEST()
460 assertEqualInt(st.st_mode & 07777, S_ISGID | 0742); in DEFINE_TEST()
H A Dtest_write_disk.c54 /* When verifying a dir, ignore the S_ISGID bit, as some systems set in create()
57 st.st_mode &= ~S_ISGID; in create()
/freebsd/sys/contrib/openzfs/module/os/linux/zfs/
H A Dpolicy.c267 if ((vap->va_mode & (S_ISUID | S_ISGID)) != 0 && in secpolicy_setid_clear()
272 vap->va_mode &= ~(S_ISUID|S_ISGID); in secpolicy_setid_clear()
333 if ((vap->va_mode & S_ISGID) != 0 && in secpolicy_setid_setsticky_clear()
336 vap->va_mode &= ~S_ISGID; in secpolicy_setid_setsticky_clear()
H A Dzfs_acl.c914 mode = (fmode & (S_IFMT | S_ISUID | S_ISGID | S_ISVTX)); in zfs_mode_compute()
1849 if (dzp->z_mode & S_ISGID) { in zfs_acl_ids_create()
1885 if (!(flag & IS_ROOT_NODE) && (dzp->z_mode & S_ISGID) && in zfs_acl_ids_create()
1887 acl_ids->z_mode |= S_ISGID; in zfs_acl_ids_create()
1889 if ((acl_ids->z_mode & S_ISGID) && in zfs_acl_ids_create()
1892 acl_ids->z_mode &= ~S_ISGID; in zfs_acl_ids_create()
H A Dzpl_inode.c144 if (dir->i_mode & S_ISGID) { in zpl_vap_init()
147 vap->va_mode |= S_ISGID; in zpl_vap_init()
/freebsd/contrib/sendmail/libsm/
H A Dmpeix.c457 sendmail_mpe_gidflag = ((mode & S_ISGID) == S_ISGID); in sendmail_mpe_emulgid()
488 sendmail_mpe_gidflag = ((mode & S_ISGID) == S_ISGID); in sendmail_mpe_emuluid()
/freebsd/tools/regression/priv/
H A Dpriv_vfs_setgid.c76 error = chmod(fpath, 0600 | S_ISGID); in priv_vfs_setgid_fowner()
96 error = chmod(fpath, 0600 | S_ISGID); in priv_vfs_setgid_fother()
/freebsd/contrib/tcsh/
H A Dtc.os.h314 #ifndef S_ISGID
315 # define S_ISGID 0002000 /* setgid */ macro
321 # define S_ENFMT S_ISGID /* record locking enforcement flag */
H A Dsh.exp.c818 i = (S_ISGID & st->st_mode) != 0; in filetest()
897 ((S_IRWXU|S_IRWXG|S_IRWXO|S_ISUID|S_ISGID) & st->st_mode)); in filetest()
/freebsd/sys/contrib/openzfs/module/os/freebsd/spl/
H A Dspl_policy.c329 if ((vap->va_mode & (S_ISUID | S_ISGID)) != 0) { in secpolicy_setid_clear()
332 vap->va_mode &= ~(S_ISUID|S_ISGID); in secpolicy_setid_clear()
359 if ((vap->va_mode & S_ISGID) != 0) { in secpolicy_setid_setsticky_clear()
/freebsd/lib/libc/gen/
H A Dsetmode.c163 #define STANDARD_BITS (S_ISUID|S_ISGID|S_IRWXU|S_IRWXG|S_IRWXO)
233 who |= S_ISGID|S_IRWXG; in setmode()
259 perm |= S_ISUID|S_ISGID; in setmode()
/freebsd/contrib/libarchive/libarchive/
H A Darchive_entry_strmode.c74 if (mode & S_ISGID) { in archive_entry_strmode()
/freebsd/sys/sys/
H A Dstat.h241 #define S_ISGID 0002000 /* set group id on execution */
298 #define ALLPERMS (S_ISUID|S_ISGID|S_ISTXT|S_IRWXU|S_IRWXG|S_IRWXO)
240 #define S_ISGID global() macro
/freebsd/contrib/file/src/
H A Dfsmagic.c179 #ifdef S_ISGID in file_fsmagic()
180 if (sb->st_mode & S_ISGID) in file_fsmagic()
/freebsd/usr.bin/compress/
H A Dcompress.c355 fs->st_mode &= S_ISUID|S_ISGID|S_IRWXU|S_IRWXG|S_IRWXO; in setfile()
371 fs->st_mode &= ~(S_ISUID|S_ISGID); in setfile()
/freebsd/bin/mv/
H A Dmv.c301 if (oldmode & (S_ISUID | S_ISGID)) { in fastcopy()
305 sbp->st_mode &= ~(S_ISUID | S_ISGID); in fastcopy()
/freebsd/contrib/mtree/
H A Dmtree.h50 #define MBITS (S_ISUID|S_ISGID|S_ISTXT|S_IRWXU|S_IRWXG|S_IRWXO)
/freebsd/contrib/elftoolchain/ar/
H A Dutil.c144 if (m & S_ISGID) in bsdar_strmode()
/freebsd/contrib/sendmail/libsmutil/
H A Dsafefile.c111 if (bitset(S_ISGID, st->st_mode))
113 if (bitset(S_ISGID, st->st_mode) && st->st_gid != 0)
/freebsd/usr.bin/posixmqcontrol/
H A Dposixmqcontrol.c102 S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISTXT;
603 quad(mode & S_IXGRP, mode & S_ISGID), in info()
/freebsd/sys/contrib/openzfs/module/os/freebsd/zfs/
H A Dzfs_acl.c896 mode = (fmode & (S_IFMT | S_ISUID | S_ISGID | S_ISVTX)); in zfs_mode_compute()
1698 if (!(flag & IS_ROOT_NODE) && (dzp->z_mode & S_ISGID) && in zfs_acl_ids_create()
1700 acl_ids->z_mode |= S_ISGID; in zfs_acl_ids_create()
1702 if ((acl_ids->z_mode & S_ISGID) && in zfs_acl_ids_create()
1704 acl_ids->z_mode &= ~S_ISGID; in zfs_acl_ids_create()
/freebsd/bin/cp/
H A Dcp.c426 if ((mode & (S_ISUID | S_ISGID | S_ISTXT)) || in copy()

12