Home
last modified time | relevance | path

Searched refs:old_cred (Results 1 – 7 of 7) sorted by relevance

/freebsd-head/sys/security/mac_do/
HDmac_do.c1643 const struct ucred *const old_cred, const struct ucred *const new_cred) in rule_grant_supplementary_groups() argument
1645 const gid_t *const old_groups = old_cred->cr_groups; in rule_grant_supplementary_groups()
1647 const int old_ngroups = old_cred->cr_ngroups; in rule_grant_supplementary_groups()
1784 const struct ucred *const old_cred, const gid_t gid) in rule_grant_primary_group() argument
1795 group_is_primary(gid, old_cred)) { in rule_grant_primary_group()
1817 const struct ucred *const old_cred, const struct ucred *const new_cred) in rule_grant_primary_groups() argument
1825 error = rule_grant_primary_group(rule, old_cred, new_cred->cr_gid); in rule_grant_primary_groups()
1828 error = rule_grant_primary_group(rule, old_cred, new_cred->cr_rgid); in rule_grant_primary_groups()
1831 error = rule_grant_primary_group(rule, old_cred, new_cred->cr_svgid); in rule_grant_primary_groups()
1838 user_is_current(const uid_t uid, const struct ucred *const old_cred) in user_is_current() argument
[all …]
/freebsd-head/sys/security/mac/
HDmac_cred.c237 mac_cred_check_setcred(u_int flags, const struct ucred *old_cred, in mac_cred_check_setcred() argument
242 MAC_POLICY_CHECK_NOSLEEP(cred_check_setcred, flags, old_cred, new_cred); in mac_cred_check_setcred()
243 MAC_CHECK_PROBE3(cred_check_setcred, error, flags, old_cred, new_cred); in mac_cred_check_setcred()
HDmac_framework.h119 int mac_cred_check_setcred(u_int flags, const struct ucred *old_cred,
HDmac_policy.h149 const struct ucred *old_cred, struct ucred *new_cred);
/freebsd-head/sys/kern/
HDkern_prot.c664 struct ucred *new_cred, *old_cred, *to_free_cred; in kern_setcred() local
762 old_cred = crcopysafe(p, new_cred); in kern_setcred()
806 error = mac_cred_check_setcred(flags, old_cred, new_cred); in kern_setcred()
813 error = priv_check_cred(old_cred, PRIV_CRED_SETCRED); in kern_setcred()
823 to_free_cred = old_cred; in kern_setcred()
/freebsd-head/sys/security/mac_stub/
HDmac_stub.c231 stub_cred_check_setcred(u_int flags, const struct ucred *old_cred, in stub_cred_check_setcred() argument
/freebsd-head/sys/security/mac_test/
HDmac_test.c269 test_cred_check_setcred(u_int flags, const struct ucred *old_cred, in test_cred_check_setcred() argument
272 LABEL_CHECK(old_cred->cr_label, MAGIC_CRED); in test_cred_check_setcred()