Lines Matching defs:flags
540 const u_int flags, gid_t *const smallgroups, gid_t **const groups)
544 if (flags & SETCREDF_SUPP_GROUPS) {
578 user_setcred(struct thread *td, const u_int flags,
595 * that we redundantly check here that no unknown flags have been
598 if ((flags & ~SETCREDF_MASK) != 0)
636 error = kern_setcred_copyin_supp_groups(&wcred, flags, smallgroups,
642 if ((flags & SETCREDF_MAC_LABEL) != 0) {
655 error = kern_setcred(td, flags, &wcred, groups);
671 u_int flags; /* Flags. */
680 return (user_setcred(td, uap->flags, uap->wcred, uap->size, false));
691 kern_setcred(struct thread *const td, const u_int flags,
706 /* Bail out on unrecognized flags. */
707 if (flags & ~SETCREDF_MASK)
714 if (flags & SETCREDF_SUPP_GROUPS) {
731 if (flags & SETCREDF_MAC_LABEL) {
743 if (flags & SETCREDF_UID) {
747 if (flags & SETCREDF_RUID) {
751 if (flags & SETCREDF_SVUID)
754 if (flags & SETCREDF_GID)
756 if (flags & SETCREDF_RGID)
758 if (flags & SETCREDF_SVGID)
760 if (flags & SETCREDF_SUPP_GROUPS) {
776 if (flags & SETCREDF_SUPP_GROUPS)
795 if (flags & SETCREDF_UID)
797 if (flags & SETCREDF_RUID)
799 if (flags & SETCREDF_SVUID)
805 if (flags & SETCREDF_SUPP_GROUPS)
808 if (flags & SETCREDF_GID)
810 if (flags & SETCREDF_RGID)
812 if (flags & SETCREDF_SVGID)
819 if (flags & SETCREDF_MAC_LABEL) {
829 error = mac_cred_check_setcred(flags, old_cred, new_cred);