Home
last modified time | relevance | path

Searched refs:cred_label (Results 1 – 5 of 5) sorted by relevance

/linux/security/apparmor/
H A Dtask.c84 aa_put_label(cred_label(new)); in aa_replace_current_label()
129 ctx->previous = cred_label(new); in aa_set_current_hat()
132 aa_put_label(cred_label(new)); in aa_set_current_hat()
172 aa_put_label(cred_label(new)); in aa_restore_previous_label()
174 AA_BUG(!cred_label(new)); in aa_restore_previous_label()
H A Dfile.c649 struct cred_label { struct
656 struct cred_label *cl = (struct cred_label *)p; in match_file() argument
669 struct cred_label cl = { in aa_inherit_files()
H A Dlsm.c76 aa_put_label(cred_label(cred)); in apparmor_cred_free()
95 set_cred_label(new, aa_get_newest_label(cred_label(old))); in apparmor_cred_prepare()
104 set_cred_label(new, aa_get_newest_label(cred_label(old))); in apparmor_cred_transfer()
131 tracee = cred_label(cred); /* ref count on cred */ in apparmor_ptrace_access_check()
150 tracer = cred_label(cred); /* ref count on cred */ in apparmor_ptrace_traceme()
670 ad.uring.target = cred_label(new); in apparmor_uring_override_creds()
674 cred_label(new), CAP_SYS_ADMIN, &ad)); in apparmor_uring_override_creds()
792 label = aa_get_newest_label(cred_label(current_cred())); in apparmor_getselfattr()
832 label = aa_get_newest_label(cred_label(cred)); in apparmor_getprocattr()
958 struct aa_label *new_label = cred_label(bprm->cred); in apparmor_bprm_committing_creds()
H A Ddomain.c892 AA_BUG(!cred_label(bprm->cred)); in apparmor_bprm_creds_for_exec()
895 label = aa_get_newest_label(cred_label(bprm->cred)); in apparmor_bprm_creds_for_exec()
982 aa_put_label(cred_label(bprm->cred)); in apparmor_bprm_creds_for_exec()
/linux/security/apparmor/include/
H A Dcred.h22 static inline struct aa_label *cred_label(const struct cred *cred) in cred_label() function
49 struct aa_label *label = cred_label(cred); in aa_cred_raw_label()