Home
last modified time | relevance | path

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

12

/linux-6.6.21/security/apparmor/include/
Dpolicy.h198 struct aa_profile { struct
200 struct aa_profile __rcu *parent; argument
230 void aa_add_profile(struct aa_policy *common, struct aa_profile *profile); argument
235 struct aa_profile *aa_alloc_profile(const char *name, struct aa_proxy *proxy,
237 struct aa_profile *aa_alloc_null(struct aa_profile *parent, const char *name,
239 struct aa_profile *aa_new_learning_profile(struct aa_profile *parent, bool hat,
241 void aa_free_profile(struct aa_profile *profile);
243 struct aa_profile *aa_find_child(struct aa_profile *parent, const char *name);
244 struct aa_profile *aa_lookupn_profile(struct aa_ns *ns, const char *hname,
246 struct aa_profile *aa_lookup_profile(struct aa_ns *ns, const char *name);
[all …]
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);
Dperms.h178 struct aa_profile *__p2; \
185 struct aa_profile *__p1; \
206 void aa_apply_modes_to_perms(struct aa_profile *profile,
210 void aa_profile_match_label(struct aa_profile *profile,
213 int aa_profile_label_perm(struct aa_profile *profile, struct aa_profile *target,
216 int aa_check_perms(struct aa_profile *profile, struct aa_perms *perms,
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[];
260 struct aa_profile *profile; \
285 struct aa_profile *__aa_label_next_not_in_set(struct label_it *I,
296 struct aa_profile *aa_label_next_in_merge(struct label_it *I,
361 int aa_label_match(struct aa_profile *profile, struct aa_ruleset *rules,
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()
Dpolicy_unpack.h22 struct aa_profile *new;
23 struct aa_profile *old;
24 struct aa_profile *rename;
Dpolicy_ns.h63 struct aa_profile *unconfined;
100 static inline struct aa_profile *aa_deref_parent(struct aa_profile *p) in aa_deref_parent()
Dnet.h93 int aa_profile_af_perm(struct aa_profile *profile,
99 static inline int aa_profile_af_sk_perm(struct aa_profile *profile, in aa_profile_af_sk_perm()
Daudit.h144 struct aa_profile *profile;
176 int aa_audit(int type, struct aa_profile *profile,
Dfile.h21 struct aa_profile;
112 struct aa_profile *profile, struct aa_perms *perms,
Ddomain.h25 struct aa_label *x_table_lookup(struct aa_profile *profile, u32 xindex,
/linux-6.6.21/security/apparmor/
Dpolicy.c110 static void __add_profile(struct list_head *list, struct aa_profile *profile) in __add_profile()
139 static void __list_remove_profile(struct aa_profile *profile) in __list_remove_profile()
155 static void __remove_profile(struct aa_profile *profile) in __remove_profile()
177 struct aa_profile *profile, *tmp; in __aa_profile_list_release()
242 void aa_free_profile(struct aa_profile *profile) in aa_free_profile()
294 struct aa_profile *aa_alloc_profile(const char *hname, struct aa_proxy *proxy, in aa_alloc_profile()
297 struct aa_profile *profile; in aa_alloc_profile()
352 static struct aa_profile *__strn_find_child(struct list_head *head, in __strn_find_child()
355 return (struct aa_profile *)__policy_strn_find(head, name, len); in __strn_find_child()
367 static struct aa_profile *__find_child(struct list_head *head, const char *name) in __find_child()
[all …]
Dlabel.c135 static int profile_cmp(struct aa_profile *a, struct aa_profile *b) in profile_cmp()
165 static int vec_cmp(struct aa_profile **a, int an, struct aa_profile **b, int bn) in vec_cmp()
186 static bool vec_is_stale(struct aa_profile **vec, int n) in vec_is_stale()
200 static long accum_vec_flags(struct aa_profile **vec, int n) in accum_vec_flags()
219 return profile_cmp(*(struct aa_profile **)a, *(struct aa_profile **)b); in sort_cmp()
227 static inline int unique(struct aa_profile **vec, int n) in unique()
265 int aa_vec_unique(struct aa_profile **vec, int n, int flags) in aa_vec_unique()
274 sort(vec, n, sizeof(struct aa_profile *), sort_cmp, NULL); in aa_vec_unique()
281 struct aa_profile *tmp = vec[i]; in aa_vec_unique()
320 struct aa_profile *profile; in aa_label_destroy()
[all …]
Ddomain.c87 static inline aa_state_t match_component(struct aa_profile *profile, in match_component()
88 struct aa_profile *tp, in match_component()
124 static int label_compound_match(struct aa_profile *profile, in label_compound_match()
131 struct aa_profile *tp; in label_compound_match()
186 static int label_components_match(struct aa_profile *profile, in label_components_match()
193 struct aa_profile *tp; in label_components_match()
249 static int label_match(struct aa_profile *profile, struct aa_label *label, in label_match()
282 static int change_profile_perms(struct aa_profile *profile, in change_profile_perms()
306 struct aa_profile *profile, aa_state_t state) in aa_xattrs_match()
390 struct aa_profile *profile, *candidate = NULL; in find_attach()
[all …]
Dcapability.c33 struct aa_profile *profile;
64 static int audit_caps(struct apparmor_audit_data *ad, struct aa_profile *profile, in audit_caps()
116 static int profile_capable(struct aa_profile *profile, int cap, in profile_capable()
155 struct aa_profile *profile; in aa_capable()
Dmount.c133 struct aa_profile *profile, const char *op, in audit_mount()
279 static int path_flags(struct aa_profile *profile, const struct path *path) in path_flags()
304 struct aa_profile *profile, in match_mnt_path_str()
366 struct aa_profile *profile, const struct path *path, in match_mnt()
398 struct aa_profile *profile; in aa_remount()
424 struct aa_profile *profile; in aa_bind_mount()
462 struct aa_profile *profile; in aa_mount_change_type()
489 struct aa_profile *profile; in aa_move_mount()
539 struct aa_profile *profile; in aa_new_mount()
602 struct aa_profile *profile, const struct path *path, in profile_umount()
[all …]
Dapparmorfs.c612 static void profile_query_cb(struct aa_profile *profile, struct aa_perms *perms, in profile_query_cb()
670 struct aa_profile *profile; in query_data()
759 struct aa_profile *profile; in query_label()
1074 struct aa_profile *profile = labels_profile(label); in seq_profile_name_show()
1085 struct aa_profile *profile = labels_profile(label); in seq_profile_mode_show()
1096 struct aa_profile *profile = labels_profile(label); in seq_profile_attach_show()
1112 struct aa_profile *profile = labels_profile(label); in seq_profile_hash_show()
1164 struct aa_profile *profile; in seq_ns_nsstacked_show()
1520 void __aafs_profile_rmdir(struct aa_profile *profile) in __aafs_profile_rmdir()
1522 struct aa_profile *child; in __aafs_profile_rmdir()
[all …]
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()
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()
Dtask.c230 struct aa_profile *profile, in profile_ptrace_perm()
247 struct aa_profile *tracee, in profile_tracee_perm()
259 struct aa_profile *tracer, in profile_tracer_perm()
294 struct aa_profile *profile; in aa_may_ptrace()
Dlib.c312 void aa_apply_modes_to_perms(struct aa_profile *profile, struct aa_perms *perms) in aa_apply_modes_to_perms()
337 void aa_profile_match_label(struct aa_profile *profile, in aa_profile_match_label()
353 int aa_profile_label_perm(struct aa_profile *profile, struct aa_profile *target, in aa_profile_label_perm()
388 int aa_check_perms(struct aa_profile *profile, struct aa_perms *perms, in aa_check_perms()
Dfile.c95 struct aa_profile *profile, struct aa_perms *perms, in aa_audit_file()
165 struct aa_profile *profile; in path_name()
229 struct aa_profile *profile, const char *name, in __aa_path_perm()
250 struct aa_profile *profile, in profile_path_perm()
288 struct aa_profile *profile; in aa_path_perm()
327 struct aa_profile *profile, in profile_path_link()
444 struct aa_profile *profile; in aa_path_link()
489 struct aa_profile *profile; in __file_path_perm()
Dipc.c79 struct aa_profile *profile, in profile_signal_perm()
107 struct aa_profile *profile; in aa_may_signal()
Dpolicy_ns.c83 static struct aa_profile *alloc_unconfined(const char *name) in alloc_unconfined()
85 struct aa_profile *profile; in alloc_unconfined()
402 struct aa_profile *kernel_p; in aa_alloc_root_ns()
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