/linux-6.12.1/security/apparmor/include/ |
D | label.h | 59 struct aa_label *aa_vec_find_or_create_label(struct aa_profile **vec, int len, 102 struct aa_label; 105 struct aa_label __rcu *label; 123 struct aa_label { struct 153 int aa_label_next_confined(struct aa_label *l, int i); argument 277 void aa_label_destroy(struct aa_label *label); 278 void aa_label_free(struct aa_label *label); 280 bool aa_label_init(struct aa_label *label, int size, gfp_t gfp); 281 struct aa_label *aa_label_alloc(int size, struct aa_proxy *proxy, gfp_t gfp); 283 bool aa_label_is_subset(struct aa_label *set, struct aa_label *sub); [all …]
|
D | cred.h | 22 static inline struct aa_label *cred_label(const struct cred *cred) in cred_label() 24 struct aa_label **blob = cred->security + apparmor_blob_sizes.lbs_cred; in cred_label() 31 struct aa_label *label) in set_cred_label() 33 struct aa_label **blob = cred->security + apparmor_blob_sizes.lbs_cred; in set_cred_label() 47 static inline struct aa_label *aa_cred_raw_label(const struct cred *cred) in aa_cred_raw_label() 49 struct aa_label *label = cred_label(cred); in aa_cred_raw_label() 61 static inline struct aa_label *aa_get_newest_cred_label(const struct cred *cred) in aa_get_newest_cred_label() 66 static inline struct aa_label *aa_get_newest_cred_label_condref(const struct cred *cred, in aa_get_newest_cred_label_condref() 69 struct aa_label *l = aa_cred_raw_label(cred); in aa_get_newest_cred_label_condref() 80 static inline void aa_put_label_condref(struct aa_label *l, bool needput) in aa_put_label_condref() [all …]
|
D | mount.h | 29 struct aa_label *label, const struct path *path, 33 struct aa_label *label, const struct path *path, 38 struct aa_label *label, const struct path *path, 42 struct aa_label *label, const struct path *path, 45 struct aa_label *label, const struct path *from_path, 49 struct aa_label *label, const char *dev_name, 54 struct aa_label *label, struct vfsmount *mnt, int flags); 57 struct aa_label *label, const struct path *old_path,
|
D | task.h | 26 struct aa_label *nnp; 27 struct aa_label *onexec; 28 struct aa_label *previous; 32 int aa_replace_current_label(struct aa_label *label); 33 void aa_set_current_onexec(struct aa_label *label, bool stack); 34 int aa_set_current_hat(struct aa_label *label, u64 token); 36 struct aa_label *aa_get_task_label(struct task_struct *task); 94 int aa_may_ptrace(const struct cred *tracer_cred, struct aa_label *tracer, 95 const struct cred *tracee_cred, struct aa_label *tracee,
|
D | secid.h | 16 struct aa_label; 27 struct aa_label *aa_secid_to_label(u32 secid); 33 int aa_alloc_secid(struct aa_label *label, gfp_t gfp); 35 void aa_secid_update(u32 secid, struct aa_label *label);
|
D | file.h | 44 struct aa_label __rcu *label; 77 const char *target, struct aa_label *tlabel, kuid_t ouid, 87 struct aa_label *label, const struct path *path, 90 int aa_path_link(const struct cred *subj_cred, struct aa_label *label, 95 struct aa_label *label, struct file *file,
|
D | net.h | 50 struct aa_label *label; 51 struct aa_label *peer; 99 int aa_af_perm(const struct cred *subj_cred, struct aa_label *label, 112 int aa_sock_file_perm(const struct cred *subj_cred, struct aa_label *label, 116 int apparmor_secmark_check(struct aa_label *label, char *op, u32 request,
|
D | resource.h | 36 int aa_task_setrlimit(const struct cred *subj_cred, struct aa_label *label, 40 void __aa_transition_rlimits(struct aa_label *old, struct aa_label *new);
|
D | policy.h | 244 struct aa_label label; 268 struct aa_profile *aa_fqlookupn_profile(struct aa_label *base, 271 ssize_t aa_replace_profiles(struct aa_ns *view, struct aa_label *label, 273 ssize_t aa_remove_profiles(struct aa_ns *view, struct aa_label *label, 391 struct aa_label *label, struct aa_ns *ns); 393 struct aa_label *label, struct aa_ns *ns); 395 struct aa_label *label, struct aa_ns *ns,
|
D | ipc.h | 16 int aa_may_signal(const struct cred *subj_cred, struct aa_label *sender, 17 const struct cred *target_cred, struct aa_label *target,
|
D | capability.h | 18 struct aa_label; 39 int aa_capable(const struct cred *subj_cred, struct aa_label *label,
|
D | audit.h | 117 struct aa_label *subj_label; 125 struct aa_label *peer; 160 struct aa_label *target;
|
D | procattr.h | 14 int aa_getprocattr(struct aa_label *label, char **string, bool newline);
|
/linux-6.12.1/security/apparmor/ |
D | label.c | 48 RCU_INIT_POINTER(proxy->label, (struct aa_label *)PROXY_POISON); in free_proxy() 60 struct aa_proxy *aa_alloc_proxy(struct aa_label *label, gfp_t gfp) in aa_alloc_proxy() 73 void __aa_proxy_redirect(struct aa_label *orig, struct aa_label *new) in __aa_proxy_redirect() 75 struct aa_label *tmp; in __aa_proxy_redirect() 88 static void __proxy_share(struct aa_label *old, struct aa_label *new) in __proxy_share() 317 void aa_label_destroy(struct aa_label *label) in aa_label_destroy() 344 void aa_label_free(struct aa_label *label) in aa_label_free() 353 static void label_free_switch(struct aa_label *label) in label_free_switch() 365 struct aa_label *label = container_of(head, struct aa_label, rcu); in label_free_rcu() 374 struct aa_label *label = container_of(kref, struct aa_label, count); in aa_label_kref() [all …]
|
D | task.c | 29 struct aa_label *aa_get_task_label(struct task_struct *task) in aa_get_task_label() 31 struct aa_label *p; in aa_get_task_label() 46 int aa_replace_current_label(struct aa_label *label) in aa_replace_current_label() 48 struct aa_label *old = aa_current_raw_label(); in aa_replace_current_label() 65 struct aa_label *tmp = ctx->nnp; in aa_replace_current_label() 97 void aa_set_current_onexec(struct aa_label *label, bool stack) in aa_set_current_onexec() 117 int aa_set_current_hat(struct aa_label *label, u64 token) in aa_set_current_hat() 228 struct aa_label *peer, u32 request, in profile_ptrace_perm() 245 struct aa_label *tracer, u32 request, in profile_tracee_perm() 257 struct aa_label *tracee, u32 request, in profile_tracer_perm() [all …]
|
D | secid.c | 47 void aa_secid_update(u32 secid, struct aa_label *label) in aa_secid_update() 59 struct aa_label *aa_secid_to_label(u32 secid) in aa_secid_to_label() 67 struct aa_label *label = aa_secid_to_label(secid); in apparmor_secid_to_secctx() 95 struct aa_label *label; in apparmor_secctx_to_secid() 119 int aa_alloc_secid(struct aa_label *label, gfp_t gfp) in aa_alloc_secid()
|
D | domain.c | 44 struct aa_label *to_label, in may_change_ptraced_domain() 48 struct aa_label *tracerl = NULL; in may_change_ptraced_domain() 125 struct aa_label *label, bool stack, in label_compound_match() 187 struct aa_label *label, bool stack, in label_components_match() 249 static int label_match(struct aa_profile *profile, struct aa_label *label, in label_match() 284 struct aa_label *target, bool stack, in change_profile_perms() 385 static struct aa_label *find_attach(const struct linux_binprm *bprm, in find_attach() 513 struct aa_label *x_table_lookup(struct aa_profile *profile, u32 xindex, in x_table_lookup() 518 struct aa_label *label = NULL; in x_table_lookup() 562 static struct aa_label *x_to_label(struct aa_profile *profile, in x_to_label() [all …]
|
D | file.c | 97 const char *target, struct aa_label *tlabel, in aa_audit_file() 148 struct aa_label *label, in path_name() 270 struct aa_label *label, in aa_path_perm() 421 struct aa_label *label, struct dentry *old_dentry, in aa_path_link() 450 static void update_file_ctx(struct aa_file_ctx *fctx, struct aa_label *label, in update_file_ctx() 453 struct aa_label *l, *old; in update_file_ctx() 472 struct aa_label *label, in __file_path_perm() 473 struct aa_label *flabel, struct file *file, in __file_path_perm() 533 struct aa_label *label, in __file_sock_perm() 534 struct aa_label *flabel, struct file *file, in __file_sock_perm() [all …]
|
D | resource.c | 58 unsigned long value, struct aa_label *peer, in audit_resource() 115 int aa_task_setrlimit(const struct cred *subj_cred, struct aa_label *label, in aa_task_setrlimit() 120 struct aa_label *peer; in aa_task_setrlimit() 154 void __aa_transition_rlimits(struct aa_label *old_l, struct aa_label *new_l) in __aa_transition_rlimits()
|
D | lsm.c | 126 struct aa_label *tracer, *tracee; in apparmor_ptrace_access_check() 144 struct aa_label *tracer, *tracee; in apparmor_ptrace_traceme() 163 struct aa_label *label; in apparmor_capget() 199 struct aa_label *label; in apparmor_capable() 222 struct aa_label *label; in common_perm() 366 struct aa_label *label; in apparmor_path_link() 385 struct aa_label *label; in apparmor_path_rename() 462 struct aa_label *label; in apparmor_file_open() 506 struct aa_label *label = begin_current_label_crit_section(); in apparmor_file_alloc_security() 525 struct aa_label *label; in common_file_perm() [all …]
|
D | net.c | 138 int aa_af_perm(const struct cred *subj_cred, struct aa_label *label, in aa_af_perm() 150 struct aa_label *label, in aa_label_sk_perm() 174 struct aa_label *label; in aa_sk_perm() 189 int aa_sock_file_perm(const struct cred *subj_cred, struct aa_label *label, in aa_sock_file_perm() 202 struct aa_label *label; in apparmor_secmark_init() 256 int apparmor_secmark_check(struct aa_label *label, char *op, u32 request, in apparmor_secmark_check()
|
D | ipc.c | 80 struct aa_label *peer, u32 request, in profile_signal_perm() 103 int aa_may_signal(const struct cred *subj_cred, struct aa_label *sender, in aa_may_signal() 104 const struct cred *target_cred, struct aa_label *target, in aa_may_signal()
|
D | mount.c | 397 struct aa_label *label, const struct path *path, in aa_remount() 423 struct aa_label *label, const struct path *path, in aa_bind_mount() 461 struct aa_label *label, const struct path *path, in aa_mount_change_type() 488 struct aa_label *label, const struct path *from_path, in aa_move_mount() 519 int aa_move_mount_old(const struct cred *subj_cred, struct aa_label *label, in aa_move_mount_old() 537 int aa_new_mount(const struct cred *subj_cred, struct aa_label *label, in aa_new_mount() 638 int aa_umount(const struct cred *subj_cred, struct aa_label *label, in aa_umount() 664 static struct aa_label *build_pivotroot(const struct cred *subj_cred, in build_pivotroot() 720 int aa_pivotroot(const struct cred *subj_cred, struct aa_label *label, in aa_pivotroot() 725 struct aa_label *target = NULL; in aa_pivotroot()
|
D | audit.c | 117 struct aa_label *label = ad->subj_label; in audit_pre() 206 struct aa_label *label; 270 struct aa_label *label; in aa_audit_rule_match()
|
D | policy.c | 149 struct aa_label *l; in __add_profile() 588 struct aa_profile *aa_fqlookupn_profile(struct aa_label *base, in aa_fqlookupn_profile() 769 static int audit_policy(struct aa_label *subj_label, const char *op, in audit_policy() 790 struct aa_label *label, in policy_ns_capable() 815 struct aa_label *label, struct aa_ns *ns) in aa_policy_view_capable() 835 struct aa_label *label, struct aa_ns *ns) in aa_policy_admin_capable() 850 struct aa_label *label; in aa_current_policy_view_capable() 862 struct aa_label *label; in aa_current_policy_admin_capable() 881 int aa_may_manage_policy(const struct cred *subj_cred, struct aa_label *label, in aa_may_manage_policy() 1057 ssize_t aa_replace_profiles(struct aa_ns *policy_ns, struct aa_label *label, in aa_replace_profiles() [all …]
|