Searched refs:old_cred (Results 1 – 7 of 7) sorted by relevance
| /freebsd-head/sys/security/mac_do/ |
| HD | mac_do.c | 1643 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/ |
| HD | mac_cred.c | 237 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()
|
| HD | mac_framework.h | 119 int mac_cred_check_setcred(u_int flags, const struct ucred *old_cred,
|
| HD | mac_policy.h | 149 const struct ucred *old_cred, struct ucred *new_cred);
|
| /freebsd-head/sys/kern/ |
| HD | kern_prot.c | 664 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/ |
| HD | mac_stub.c | 231 stub_cred_check_setcred(u_int flags, const struct ucred *old_cred, in stub_cred_check_setcred() argument
|
| /freebsd-head/sys/security/mac_test/ |
| HD | mac_test.c | 269 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()
|