Home
last modified time | relevance | path

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

12

/Linux-v6.1/security/apparmor/include/
Dpolicy.h133 struct aa_profile { struct
135 struct aa_profile __rcu *parent; argument
178 void aa_add_profile(struct aa_policy *common, struct aa_profile *profile); argument
182 struct aa_profile *aa_alloc_profile(const char *name, struct aa_proxy *proxy,
184 struct aa_profile *aa_new_null_profile(struct aa_profile *parent, bool hat,
186 void aa_free_profile(struct aa_profile *profile);
188 struct aa_profile *aa_find_child(struct aa_profile *parent, const char *name);
189 struct aa_profile *aa_lookupn_profile(struct aa_ns *ns, const char *hname,
191 struct aa_profile *aa_lookup_profile(struct aa_ns *ns, const char *name);
192 struct aa_profile *aa_fqlookupn_profile(struct aa_label *base,
[all …]
Dperms.h117 struct aa_profile *__p2; \
124 struct aa_profile *__p1; \
142 void aa_apply_modes_to_perms(struct aa_profile *profile,
148 void aa_profile_match_label(struct aa_profile *profile, struct aa_label *label,
150 int aa_profile_label_perm(struct aa_profile *profile, struct aa_profile *target,
153 int aa_check_perms(struct aa_profile *profile, struct aa_perms *perms,
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);
Dpolicy_unpack.h21 struct aa_profile *new;
22 struct aa_profile *old;
23 struct aa_profile *rename;
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,
360 int aa_label_match(struct aa_profile *profile, struct aa_label *label,
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_ns.h63 struct aa_profile *unconfined;
100 static inline struct aa_profile *aa_deref_parent(struct aa_profile *p) in aa_deref_parent()
Dfile.h20 struct aa_profile;
162 int aa_audit_file(struct aa_profile *profile, struct aa_perms *perms,
192 int __aa_path_perm(const char *op, struct aa_profile *profile,
Daudit.h142 struct aa_profile *profile;
170 int aa_audit(int type, struct aa_profile *profile, struct common_audit_data *sa,
Dnet.h92 int aa_profile_af_perm(struct aa_profile *profile, struct common_audit_data *sa,
96 static inline int aa_profile_af_sk_perm(struct aa_profile *profile, in aa_profile_af_sk_perm()
/Linux-v6.1/security/apparmor/
Dpolicy.c109 static void __add_profile(struct list_head *list, struct aa_profile *profile) in __add_profile()
138 static void __list_remove_profile(struct aa_profile *profile) in __list_remove_profile()
154 static void __remove_profile(struct aa_profile *profile) in __remove_profile()
176 struct aa_profile *profile, *tmp; in __aa_profile_list_release()
205 void aa_free_profile(struct aa_profile *profile) in aa_free_profile()
257 struct aa_profile *aa_alloc_profile(const char *hname, struct aa_proxy *proxy, in aa_alloc_profile()
260 struct aa_profile *profile; in aa_alloc_profile()
306 static struct aa_profile *__strn_find_child(struct list_head *head, in __strn_find_child()
309 return (struct aa_profile *)__policy_strn_find(head, name, len); in __strn_find_child()
321 static struct aa_profile *__find_child(struct list_head *head, const char *name) in __find_child()
[all …]
Ddomain.c98 static inline unsigned int match_component(struct aa_profile *profile, in match_component()
99 struct aa_profile *tp, in match_component()
133 static int label_compound_match(struct aa_profile *profile, in label_compound_match()
138 struct aa_profile *tp; in label_compound_match()
193 static int label_components_match(struct aa_profile *profile, in label_components_match()
198 struct aa_profile *tp; in label_components_match()
254 static int label_match(struct aa_profile *profile, struct aa_label *label, in label_match()
287 static int change_profile_perms(struct aa_profile *profile, in change_profile_perms()
311 struct aa_profile *profile, unsigned int state) in aa_xattrs_match()
393 struct aa_profile *profile, *candidate = NULL; in find_attach()
[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 union_vec_flags(struct aa_profile **vec, int n, long mask) in union_vec_flags()
216 return profile_cmp(*(struct aa_profile **)a, *(struct aa_profile **)b); in sort_cmp()
224 static inline int unique(struct aa_profile **vec, int n) in unique()
262 int aa_vec_unique(struct aa_profile **vec, int n, int flags) in aa_vec_unique()
271 sort(vec, n, sizeof(struct aa_profile *), sort_cmp, NULL); in aa_vec_unique()
278 struct aa_profile *tmp = vec[i]; in aa_vec_unique()
317 struct aa_profile *profile; in aa_label_destroy()
[all …]
Dcapability.c33 struct aa_profile *profile;
64 static int audit_caps(struct common_audit_data *sa, struct aa_profile *profile, in audit_caps()
114 static int profile_capable(struct aa_profile *profile, int cap, in profile_capable()
149 struct aa_profile *profile; in aa_capable()
Dmount.c130 static int audit_mount(struct aa_profile *profile, const char *op, in audit_mount()
292 static int path_flags(struct aa_profile *profile, const struct path *path) in path_flags()
315 static int match_mnt_path_str(struct aa_profile *profile, in match_mnt_path_str()
372 static int match_mnt(struct aa_profile *profile, const struct path *path, in match_mnt()
401 struct aa_profile *profile; in aa_remount()
425 struct aa_profile *profile; in aa_bind_mount()
462 struct aa_profile *profile; in aa_mount_change_type()
487 struct aa_profile *profile; in aa_move_mount()
522 struct aa_profile *profile; in aa_new_mount()
582 static int profile_umount(struct aa_profile *profile, const struct path *path, in profile_umount()
[all …]
Dresource.c52 static int audit_resource(struct aa_profile *profile, unsigned int resource, in audit_resource()
81 static int profile_setrlimit(struct aa_profile *profile, unsigned int resource, in profile_setrlimit()
107 struct aa_profile *profile; in aa_task_setrlimit()
145 struct aa_profile *old, *new; in __aa_transition_rlimits()
Dnet.c108 int aa_profile_af_perm(struct aa_profile *profile, struct common_audit_data *sa, in aa_profile_af_perm()
137 struct aa_profile *profile; in aa_af_perm()
155 struct aa_profile *profile; in aa_label_sk_perm()
214 static int aa_secmark_perm(struct aa_profile *profile, u32 request, u32 secid, in aa_secmark_perm()
250 struct aa_profile *profile; in apparmor_secmark_check()
Dapparmorfs.c611 static void profile_query_cb(struct aa_profile *profile, struct aa_perms *perms, in profile_query_cb()
668 struct aa_profile *profile; in query_data()
757 struct aa_profile *profile; in query_label()
1070 struct aa_profile *profile = labels_profile(label); in seq_profile_name_show()
1081 struct aa_profile *profile = labels_profile(label); in seq_profile_mode_show()
1092 struct aa_profile *profile = labels_profile(label); in seq_profile_attach_show()
1108 struct aa_profile *profile = labels_profile(label); in seq_profile_hash_show()
1160 struct aa_profile *profile; in seq_ns_nsstacked_show()
1510 void __aafs_profile_rmdir(struct aa_profile *profile) in __aafs_profile_rmdir()
1512 struct aa_profile *child; in __aafs_profile_rmdir()
[all …]
Dtask.c228 static int profile_ptrace_perm(struct aa_profile *profile, in profile_ptrace_perm()
241 static int profile_tracee_perm(struct aa_profile *tracee, in profile_tracee_perm()
252 static int profile_tracer_perm(struct aa_profile *tracer, in profile_tracer_perm()
286 struct aa_profile *profile; in aa_may_ptrace()
Dfile.c92 int aa_audit_file(struct aa_profile *profile, struct aa_perms *perms, in aa_audit_file()
161 struct aa_profile *profile; in path_name()
268 int __aa_path_perm(const char *op, struct aa_profile *profile, const char *name, in __aa_path_perm()
284 static int profile_path_perm(const char *op, struct aa_profile *profile, in profile_path_perm()
320 struct aa_profile *profile; in aa_path_perm()
358 static int profile_path_link(struct aa_profile *profile, in profile_path_link()
467 struct aa_profile *profile; in aa_path_link()
511 struct aa_profile *profile; in __file_path_perm()
Dlib.c290 void aa_apply_modes_to_perms(struct aa_profile *profile, struct aa_perms *perms) in aa_apply_modes_to_perms()
398 void aa_profile_match_label(struct aa_profile *profile, struct aa_label *label, in aa_profile_match_label()
412 int aa_profile_label_perm(struct aa_profile *profile, struct aa_profile *target, in aa_profile_label_perm()
446 int aa_check_perms(struct aa_profile *profile, struct aa_perms *perms, in aa_check_perms()
Dipc.c77 static int profile_signal_perm(struct aa_profile *profile, in profile_signal_perm()
100 struct aa_profile *profile; in aa_may_signal()
Dpolicy_unpack.c105 static int audit_iface(struct aa_profile *new, const char *ns_name, in audit_iface()
109 struct aa_profile *profile = labels_profile(aa_current_raw_label()); in audit_iface()
480 static bool unpack_trans_table(struct aa_ext *e, struct aa_profile *profile) in unpack_trans_table()
549 static bool unpack_xattrs(struct aa_ext *e, struct aa_profile *profile) in unpack_xattrs()
578 static bool unpack_secmark(struct aa_ext *e, struct aa_profile *profile) in unpack_secmark()
622 static bool unpack_rlimits(struct aa_ext *e, struct aa_profile *profile) in unpack_rlimits()
678 static struct aa_profile *unpack_profile(struct aa_ext *e, char **ns_name) in unpack_profile()
680 struct aa_profile *profile = NULL; in unpack_profile()
1030 static int verify_profile(struct aa_profile *profile) in verify_profile()
1183 struct aa_profile *profile = NULL; in aa_unpack()
Dpolicy_ns.c83 static struct aa_profile *alloc_unconfined(const char *name) in alloc_unconfined()
85 struct aa_profile *profile; in alloc_unconfined()
404 struct aa_profile *kernel_p; in aa_alloc_root_ns()
Daudit.c78 struct aa_profile *profile = labels_profile(label); in audit_pre()
123 int aa_audit(int type, struct aa_profile *profile, struct common_audit_data *sa, in aa_audit()

12