Home
last modified time | relevance | path

Searched refs:aa_profile (Results 1 – 25 of 30) sorted by relevance

12

/linux-6.15/security/apparmor/include/
H A Dpolicy.h224 struct aa_profile { struct
226 struct aa_profile __rcu *parent; argument
259 struct aa_profile *aa_alloc_null(struct aa_profile *parent, const char *name,
261 struct aa_profile *aa_new_learning_profile(struct aa_profile *parent, bool hat,
263 void aa_free_profile(struct aa_profile *profile);
264 struct aa_profile *aa_find_child(struct aa_profile *parent, const char *name);
286 static inline struct aa_profile *aa_get_newest_profile(struct aa_profile *p) in aa_get_newest_profile()
328 static inline struct aa_profile *aa_get_profile(struct aa_profile *p) in aa_get_profile()
343 static inline struct aa_profile *aa_get_profile_not0(struct aa_profile *p) in aa_get_profile_not0()
358 static inline struct aa_profile *aa_get_profile_rcu(struct aa_profile __rcu **p) in aa_get_profile_rcu()
[all …]
H A Dapparmorfs.h62 struct aa_profile;
108 void __aafs_profile_rmdir(struct aa_profile *profile);
109 void __aafs_profile_migrate_dents(struct aa_profile *old,
110 struct aa_profile *new);
111 int __aafs_profile_mkdir(struct aa_profile *profile, struct dentry *parent);
H A Dlabel.h56 struct aa_profile;
58 int aa_vec_unique(struct aa_profile **vec, int n, int flags);
59 struct aa_label *aa_vec_find_or_create_label(struct aa_profile **vec, int len,
62 aa_sort_and_merge_profiles((N), (struct aa_profile **)(V))
132 struct aa_profile *vec[];
236 struct aa_profile *profile; \
261 struct aa_profile *__aa_label_next_not_in_set(struct label_it *I,
270 struct aa_profile *aa_label_next_in_merge(struct label_it *I,
333 int aa_label_match(struct aa_profile *profile, struct aa_ruleset *rules,
H A Dpolicy_ns.h63 struct aa_profile *unconfined;
97 static inline struct aa_profile *aa_deref_parent(struct aa_profile *p) in aa_deref_parent()
H A Dperms.h181 struct aa_profile *__p2; \
188 struct aa_profile *__p1; \
209 void aa_apply_modes_to_perms(struct aa_profile *profile,
213 void aa_profile_match_label(struct aa_profile *profile,
216 int aa_check_perms(struct aa_profile *profile, struct aa_perms *perms,
H A Dcrypto.h18 int aa_calc_profile_hash(struct aa_profile *profile, u32 version, void *start,
25 static inline int aa_calc_profile_hash(struct aa_profile *profile, u32 version, in aa_calc_profile_hash()
H A Dpolicy_unpack.h22 struct aa_profile *new;
23 struct aa_profile *old;
24 struct aa_profile *rename;
H A Dfile.h21 struct aa_profile;
75 struct aa_profile *profile, struct aa_perms *perms,
H A Dnet.h96 int aa_profile_af_perm(struct aa_profile *profile,
102 static inline int aa_profile_af_sk_perm(struct aa_profile *profile, in aa_profile_af_sk_perm()
H A Daudit.h148 struct aa_profile *profile;
183 int aa_audit(int type, struct aa_profile *profile,
H A Ddomain.h25 struct aa_label *x_table_lookup(struct aa_profile *profile, u32 xindex,
/linux-6.15/security/apparmor/
H A Dpolicy.c333 struct aa_profile *profile; in aa_alloc_profile()
415 struct aa_profile *aa_find_child(struct aa_profile *parent, const char *name) in aa_find_child()
417 struct aa_profile *profile; in aa_find_child()
611 struct aa_profile *aa_alloc_null(struct aa_profile *parent, const char *name, in aa_alloc_null()
657 struct aa_profile *aa_new_learning_profile(struct aa_profile *parent, bool hat, in aa_new_learning_profile()
936 static void __replace_profile(struct aa_profile *old, struct aa_profile *new) in __replace_profile()
945 struct aa_profile *p; in __replace_profile()
1008 static void share_name(struct aa_profile *old, struct aa_profile *new) in share_name()
1020 static struct aa_profile *update_to_newest_parent(struct aa_profile *new) in update_to_newest_parent()
1128 struct aa_profile *p; in aa_replace_profiles()
[all …]
H A Dlabel.c135 static int profile_cmp(struct aa_profile *a, struct aa_profile *b) in profile_cmp()
166 static int vec_cmp(struct aa_profile **a, int an, struct aa_profile **b, int bn) in vec_cmp()
220 return profile_cmp(*(struct aa_profile **)a, *(struct aa_profile **)b); in sort_cmp()
322 struct aa_profile *profile; in aa_label_destroy()
569 struct aa_profile *p; in aa_label_is_unconfined_subset()
1040 struct aa_profile *next; in label_merge_insert()
1250 struct aa_profile *tp, in match_component()
1288 struct aa_profile *tp; in label_compound_match()
1348 struct aa_profile *tp; in label_components_match()
1541 struct aa_profile *profile; in label_modename()
[all …]
H A Ddomain.c87 struct aa_profile *tp, in match_component()
130 struct aa_profile *tp; in label_compound_match()
192 struct aa_profile *tp; in label_components_match()
530 struct aa_profile *new_profile; in x_table_lookup()
819 struct aa_profile *profile; in handle_onexec()
867 struct aa_profile *profile; in apparmor_bprm_creds_for_exec()
1001 struct aa_profile *profile, in build_change_hat()
1171 struct aa_profile *profile; in aa_change_hat()
1281 struct aa_profile *profile, in change_profile_perms_wrapper()
1321 struct aa_profile *profile; in aa_change_profile()
[all …]
H A Dmount.c135 struct aa_profile *profile, const char *op, in audit_mount()
306 struct aa_profile *profile, in match_mnt_path_str()
400 struct aa_profile *profile; in aa_remount()
426 struct aa_profile *profile; in aa_bind_mount()
464 struct aa_profile *profile; in aa_mount_change_type()
491 struct aa_profile *profile; in aa_move_mount()
541 struct aa_profile *profile; in aa_new_mount()
604 struct aa_profile *profile, const struct path *path, in profile_umount()
641 struct aa_profile *profile; in aa_umount()
665 struct aa_profile *profile, in build_pivotroot()
[all …]
H A Dapparmorfs.c670 struct aa_profile *profile; in query_data()
759 struct aa_profile *profile; in query_label()
1164 struct aa_profile *profile; in seq_ns_nsstacked_show()
1520 struct aa_profile *child; in __aafs_profile_rmdir()
1684 struct aa_profile *child; in __aafs_profile_mkdir()
1692 struct aa_profile *p; in __aafs_profile_mkdir()
1915 struct aa_profile *child; in __aafs_ns_rmdir()
2024 struct aa_profile *child; in __aafs_ns_mkdir()
2148 static struct aa_profile *__next_profile(struct aa_profile *p) in __next_profile()
2150 struct aa_profile *parent; in __next_profile()
[all …]
H A Dresource.c57 struct aa_profile *profile, unsigned int resource, in audit_resource()
89 struct aa_profile *profile, unsigned int resource, in profile_setrlimit()
119 struct aa_profile *profile; in aa_task_setrlimit()
158 struct aa_profile *old, *new; in __aa_transition_rlimits()
H A Dtask.c227 struct aa_profile *profile, in profile_ptrace_perm()
244 struct aa_profile *tracee, in profile_tracee_perm()
256 struct aa_profile *tracer, in profile_tracer_perm()
293 struct aa_profile *profile; in aa_may_ptrace()
316 int aa_profile_ns_perm(struct aa_profile *profile, in aa_profile_ns_perm()
H A Dnet.c109 int aa_profile_af_perm(struct aa_profile *profile, in aa_profile_af_perm()
141 struct aa_profile *profile; in aa_af_perm()
161 struct aa_profile *profile; in aa_label_sk_perm()
221 static int aa_secmark_perm(struct aa_profile *profile, u32 request, u32 secid, in aa_secmark_perm()
259 struct aa_profile *profile; in apparmor_secmark_check()
H A Dcapability.c66 static int audit_caps(struct apparmor_audit_data *ad, struct aa_profile *profile, in audit_caps()
121 static int profile_capable(struct aa_profile *profile, int cap, in profile_capable()
160 struct aa_profile *profile; in aa_capable()
H A Dfile.c95 struct aa_profile *profile, struct aa_perms *perms, in aa_audit_file()
152 struct aa_profile *profile; in path_name()
216 struct aa_profile *profile, const char *name, in __aa_path_perm()
237 struct aa_profile *profile, in profile_path_perm()
275 struct aa_profile *profile; in aa_path_perm()
314 struct aa_profile *profile, in profile_path_link()
431 struct aa_profile *profile; in aa_path_link()
476 struct aa_profile *profile; in __file_path_perm()
H A Dipc.c79 struct aa_profile *profile, in profile_signal_perm()
107 struct aa_profile *profile; in aa_may_signal()
H A Dpolicy_ns.c83 static struct aa_profile *alloc_unconfined(const char *name) in alloc_unconfined()
85 struct aa_profile *profile; in alloc_unconfined()
365 struct aa_profile *kernel_p; in aa_alloc_root_ns()
H A Dlib.c247 void aa_apply_modes_to_perms(struct aa_profile *profile, struct aa_perms *perms) in aa_apply_modes_to_perms()
272 void aa_profile_match_label(struct aa_profile *profile, in aa_profile_match_label()
304 int aa_check_perms(struct aa_profile *profile, struct aa_perms *perms, in aa_check_perms()
H A Daudit.c120 struct aa_profile *profile = labels_profile(label); in audit_pre()
166 int aa_audit(int type, struct aa_profile *profile, in aa_audit()

12