Home
last modified time | relevance | path

Searched refs:S_ISUID (Results 1 – 10 of 10) sorted by relevance

/f-stack/freebsd/contrib/openzfs/tests/zfs-tests/tests/functional/suid/
H A Dsuid_write_to_file.c98 res = st.st_mode & (0777 | S_ISUID | S_ISGID); in test_stat_mode()
118 extra = S_ISUID; in main()
122 extra = S_ISUID | S_ISGID; in main()
/f-stack/freebsd/contrib/openzfs/module/os/linux/zfs/
H A Dpolicy.c274 if ((vap->va_mode & (S_ISUID | S_ISGID)) != 0 && in secpolicy_setid_clear()
276 (vap->va_mode & S_ISUID) != 0 && in secpolicy_setid_clear()
279 vap->va_mode &= ~(S_ISUID|S_ISGID); in secpolicy_setid_clear()
317 if ((vap->va_mode & S_ISUID) != 0 && in secpolicy_setid_setsticky_clear()
H A Dzfs_acl.c896 mode = (fmode & (S_IFMT | S_ISUID | S_ISGID | S_ISVTX)); in zfs_mode_compute()
/f-stack/freebsd/contrib/openzfs/module/os/freebsd/spl/
H A Dspl_policy.c332 if ((vap->va_mode & (S_ISUID | S_ISGID)) != 0) { in secpolicy_setid_clear()
335 vap->va_mode &= ~(S_ISUID|S_ISGID); in secpolicy_setid_clear()
370 if ((vap->va_mode & S_ISUID) && ovap->va_uid != cr->cr_uid) { in secpolicy_setid_setsticky_clear()
/f-stack/freebsd/sys/
H A Dstat.h242 #define S_ISUID 0004000 /* set user id on execution */ macro
300 #define ALLPERMS (S_ISUID|S_ISGID|S_ISTXT|S_IRWXU|S_IRWXG|S_IRWXO)
/f-stack/freebsd/contrib/openzfs/module/zfs/
H A Dzfs_vnops.c618 (zp->z_mode & (S_ISUID | S_ISGID)) != 0 && in zfs_write()
620 ((zp->z_mode & S_ISUID) != 0 && uid == 0)) != 0) { in zfs_write()
622 zp->z_mode &= ~(S_ISUID | S_ISGID); in zfs_write()
/f-stack/freebsd/security/mac_veriexec/
H A Dmac_veriexec.c601 if (error == 0 && (mode & (S_ISUID|S_ISGID)) != 0) in mac_veriexec_vnode_check_setmode()
/f-stack/freebsd/security/mac_bsdextended/
H A Dmac_bsdextended.c314 match = (vap->va_mode & S_ISUID); in ugidfw_rulecheck()
/f-stack/freebsd/kern/
H A Dkern_exec.c510 credential_changing |= (attr.va_mode & S_ISUID) && in do_execve()
533 if (attr.va_mode & S_ISUID) { in do_execve()
/f-stack/freebsd/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()