Searched refs:old_cred (Results 1 – 7 of 7) sorted by relevance
| /freebsd/sys/security/mac_do/ |
| H A D | mac_do.c | 1644 const struct ucred *const old_cred, const struct ucred *const new_cred) in rule_grant_supplementary_groups() argument 1646 const gid_t *const old_groups = old_cred->cr_groups; in rule_grant_supplementary_groups() 1648 const int old_ngroups = old_cred->cr_ngroups; in rule_grant_supplementary_groups() 1785 const struct ucred *const old_cred, const gid_t gid) in rule_grant_primary_group() argument 1796 group_is_primary(gid, old_cred)) { in rule_grant_primary_group() 1818 const struct ucred *const old_cred, const struct ucred *const new_cred) in rule_grant_primary_groups() argument 1826 error = rule_grant_primary_group(rule, old_cred, new_cred->cr_gid); in rule_grant_primary_groups() 1829 error = rule_grant_primary_group(rule, old_cred, new_cred->cr_rgid); in rule_grant_primary_groups() 1832 error = rule_grant_primary_group(rule, old_cred, new_cred->cr_svgid); in rule_grant_primary_groups() 1839 user_is_current(const uid_t uid, const struct ucred *const old_cred) in user_is_current() argument [all …]
|
| /freebsd/sys/security/mac/ |
| H A D | 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()
|
| H A D | mac_framework.h | 122 int mac_cred_check_setcred(u_int flags, const struct ucred *old_cred,
|
| H A D | mac_policy.h | 152 const struct ucred *old_cred, struct ucred *new_cred);
|
| /freebsd/sys/kern/ |
| H A D | kern_prot.c | 671 struct ucred *new_cred, *old_cred, *to_free_cred = NULL; in kern_setcred() local 752 old_cred = crcopysafe(p, new_cred); in kern_setcred() 791 error = mac_cred_check_setcred(flags, old_cred, new_cred); in kern_setcred() 798 error = priv_check_cred(old_cred, PRIV_CRED_SETCRED); in kern_setcred() 816 racct_proc_ucred_changed(p, old_cred, new_cred); in kern_setcred() 818 to_free_cred = old_cred; in kern_setcred()
|
| /freebsd/sys/security/mac_stub/ |
| H A D | mac_stub.c | 232 stub_cred_check_setcred(u_int flags, const struct ucred *old_cred, in stub_cred_check_setcred() argument
|
| /freebsd/sys/security/mac_test/ |
| H A D | mac_test.c | 271 test_cred_check_setcred(u_int flags, const struct ucred *old_cred, in test_cred_check_setcred() argument 274 LABEL_CHECK(old_cred->cr_label, MAGIC_CRED); in test_cred_check_setcred()
|