Home
last modified time | relevance | path

Searched refs:subj_cred (Results 1 – 17 of 17) sorted by relevance

/openbmc/linux/security/apparmor/include/
H A Dmount.h28 int aa_remount(const struct cred *subj_cred,
32 int aa_bind_mount(const struct cred *subj_cred,
37 int aa_mount_change_type(const struct cred *subj_cred,
41 int aa_move_mount_old(const struct cred *subj_cred,
44 int aa_move_mount(const struct cred *subj_cred,
48 int aa_new_mount(const struct cred *subj_cred,
53 int aa_umount(const struct cred *subj_cred,
56 int aa_pivotroot(const struct cred *subj_cred,
H A Dfile.h123 int aa_path_perm(const char *op, const struct cred *subj_cred,
127 int aa_path_link(const struct cred *subj_cred, struct aa_label *label,
131 int aa_file_perm(const char *op, const struct cred *subj_cred,
H A Dnet.h96 int aa_af_perm(const struct cred *subj_cred, struct aa_label *label,
109 int aa_sock_file_perm(const struct cred *subj_cred, struct aa_label *label,
H A Dpolicy.h373 bool aa_policy_view_capable(const struct cred *subj_cred,
375 bool aa_policy_admin_capable(const struct cred *subj_cred,
377 int aa_may_manage_policy(const struct cred *subj_cred,
H A Dipc.h16 int aa_may_signal(const struct cred *subj_cred, struct aa_label *sender,
H A Dcapability.h39 int aa_capable(const struct cred *subj_cred, struct aa_label *label,
H A Dresource.h36 int aa_task_setrlimit(const struct cred *subj_cred, struct aa_label *label,
H A Daudit.h112 const struct cred *subj_cred; member
/openbmc/linux/security/apparmor/
H A Dfile.c48 kuid_t fsuid = ad->subj_cred ? ad->subj_cred->fsuid : current_fsuid(); in file_audit_cb()
94 int aa_audit_file(const struct cred *subj_cred, in aa_audit_file() argument
103 ad.subj_cred = subj_cred; in aa_audit_file()
173 aa_audit_file(subj_cred, in path_name()
243 return aa_audit_file(subj_cred, in __aa_path_perm()
409 return aa_audit_file(subj_cred, in profile_path_link()
433 int aa_path_link(const struct cred *subj_cred, in aa_path_link() argument
512 profile_path_perm(op, subj_cred, profile, in __file_path_perm()
526 profile_path_perm(op, subj_cred, in __file_path_perm()
532 profile_path_perm(op, subj_cred, in __file_path_perm()
[all …]
H A Dmount.c132 static int audit_mount(const struct cred *subj_cred, in audit_mount() argument
171 ad.subj_cred = subj_cred; in audit_mount()
365 static int match_mnt(const struct cred *subj_cred, in match_mnt() argument
394 int aa_remount(const struct cred *subj_cred, in aa_remount() argument
412 match_mnt(subj_cred, profile, path, buffer, NULL, in aa_remount()
420 int aa_bind_mount(const struct cred *subj_cred, in aa_bind_mount() argument
485 int aa_move_mount(const struct cred *subj_cred, in aa_move_mount() argument
582 match_mnt(subj_cred, profile, path, buffer, in aa_new_mount()
587 match_mnt_path_str(subj_cred, profile, path, in aa_new_mount()
737 build_pivotroot(subj_cred, profile, new_path, in aa_pivotroot()
[all …]
H A Dresource.c56 static int audit_resource(const struct cred *subj_cred, in audit_resource() argument
64 ad.subj_cred = subj_cred; in audit_resource()
88 static int profile_setrlimit(const struct cred *subj_cred, in profile_setrlimit() argument
99 return audit_resource(subj_cred, profile, resource, new_rlim->rlim_max, in profile_setrlimit()
115 int aa_task_setrlimit(const struct cred *subj_cred, struct aa_label *label, in aa_task_setrlimit() argument
135 aa_capable(subj_cred, label, CAP_SYS_RESOURCE, CAP_OPT_NOAUDIT) != 0) in aa_task_setrlimit()
137 audit_resource(subj_cred, profile, resource, in aa_task_setrlimit()
142 profile_setrlimit(subj_cred, profile, resource, in aa_task_setrlimit()
H A Ddomain.c831 profile_transition(subj_cred, profile, bprm, in handle_onexec()
875 const struct cred *subj_cred; in apparmor_bprm_creds_for_exec() local
888 subj_cred = current_cred(); in apparmor_bprm_creds_for_exec()
1177 const struct cred *subj_cred; in aa_change_hat() local
1186 subj_cred = get_current_cred(); in aa_change_hat()
1187 label = aa_get_newest_cred_label(subj_cred); in aa_change_hat()
1270 put_cred(subj_cred); in aa_change_hat()
1289 const struct cred *subj_cred, in change_profile_perms_wrapper() argument
1412 subj_cred, in aa_change_profile()
1483 aa_audit_file(subj_cred, in aa_change_profile()
[all …]
H A Dnet.c138 int aa_af_perm(const struct cred *subj_cred, struct aa_label *label, in aa_af_perm() argument
149 static int aa_label_sk_perm(const struct cred *subj_cred, in aa_label_sk_perm() argument
164 ad.subj_cred = subj_cred; in aa_label_sk_perm()
189 int aa_sock_file_perm(const struct cred *subj_cred, struct aa_label *label, in aa_sock_file_perm() argument
196 return aa_label_sk_perm(subj_cred, label, op, request, sock->sk); in aa_sock_file_perm()
H A Dipc.c92 ad->subj_cred = cred; in profile_signal_perm()
103 int aa_may_signal(const struct cred *subj_cred, struct aa_label *sender, in aa_may_signal() argument
113 profile_signal_perm(subj_cred, profile, target, in aa_may_signal()
H A Dcapability.c152 int aa_capable(const struct cred *subj_cred, struct aa_label *label, in aa_capable() argument
159 ad.subj_cred = subj_cred; in aa_capable()
H A Dpolicy.c765 static int policy_ns_capable(const struct cred *subj_cred, in policy_ns_capable() argument
772 err = cap_capable(subj_cred, userns, cap, CAP_OPT_NONE); in policy_ns_capable()
774 err = aa_capable(subj_cred, label, cap, CAP_OPT_NONE); in policy_ns_capable()
790 bool aa_policy_view_capable(const struct cred *subj_cred, in aa_policy_view_capable() argument
793 struct user_namespace *user_ns = subj_cred->user_ns; in aa_policy_view_capable()
810 bool aa_policy_admin_capable(const struct cred *subj_cred, in aa_policy_admin_capable() argument
813 struct user_namespace *user_ns = subj_cred->user_ns; in aa_policy_admin_capable()
814 bool capable = policy_ns_capable(subj_cred, label, user_ns, in aa_policy_admin_capable()
820 return aa_policy_view_capable(subj_cred, label, ns) && capable && in aa_policy_admin_capable()
857 int aa_may_manage_policy(const struct cred *subj_cred, struct aa_label *label, in aa_may_manage_policy() argument
[all …]
H A Dtask.c238 ad->subj_cred = cred; in profile_ptrace_perm()