Home
last modified time | relevance | path

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

12

/security/apparmor/include/
Dpolicy.h129 struct aa_profile { struct
131 struct aa_profile __rcu *parent; argument
174 void aa_add_profile(struct aa_policy *common, struct aa_profile *profile); argument
178 struct aa_profile *aa_alloc_profile(const char *name, struct aa_proxy *proxy,
180 struct aa_profile *aa_new_null_profile(struct aa_profile *parent, bool hat,
182 void aa_free_profile(struct aa_profile *profile);
184 struct aa_profile *aa_find_child(struct aa_profile *parent, const char *name);
185 struct aa_profile *aa_lookupn_profile(struct aa_ns *ns, const char *hname,
187 struct aa_profile *aa_lookup_profile(struct aa_ns *ns, const char *name);
188 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;
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()
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))
134 struct aa_profile *vec[];
261 struct aa_profile *profile; \
286 struct aa_profile *__aa_label_next_not_in_set(struct label_it *I,
297 struct aa_profile *aa_label_next_in_merge(struct label_it *I,
361 int aa_label_match(struct aa_profile *profile, struct aa_label *label,
Dpolicy_ns.h63 struct aa_profile *unconfined;
99 static inline struct aa_profile *aa_deref_parent(struct aa_profile *p) in aa_deref_parent()
Dfile.h20 struct aa_profile;
159 int aa_audit_file(struct aa_profile *profile, struct aa_perms *perms,
189 int __aa_path_perm(const char *op, struct aa_profile *profile,
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()
Daudit.h142 struct aa_profile *profile;
170 int aa_audit(int type, struct aa_profile *profile, struct common_audit_data *sa,
Dresource.h19 struct aa_profile;
Ddomain.h30 struct aa_label *x_table_lookup(struct aa_profile *profile, u32 xindex,
Dipc.h16 struct aa_profile;
/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()
263 profile = kzalloc(sizeof(*profile) + sizeof(struct aa_profile *) * 2, in aa_alloc_profile()
307 static struct aa_profile *__strn_find_child(struct list_head *head, in __strn_find_child()
310 return (struct aa_profile *)__policy_strn_find(head, name, len); in __strn_find_child()
[all …]
Ddomain.c99 static inline unsigned int match_component(struct aa_profile *profile, in match_component()
100 struct aa_profile *tp, in match_component()
134 static int label_compound_match(struct aa_profile *profile, in label_compound_match()
139 struct aa_profile *tp; in label_compound_match()
194 static int label_components_match(struct aa_profile *profile, in label_components_match()
199 struct aa_profile *tp; in label_components_match()
255 static int label_match(struct aa_profile *profile, struct aa_label *label, in label_match()
288 static int change_profile_perms(struct aa_profile *profile, in change_profile_perms()
312 struct aa_profile *profile, unsigned int state) in aa_xattrs_match()
394 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 bool vec_unconfined(struct aa_profile **vec, int n) in vec_unconfined()
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 …]
Dipc.c63 static int profile_ptrace_perm(struct aa_profile *profile, in profile_ptrace_perm()
76 static int profile_tracee_perm(struct aa_profile *tracee, in profile_tracee_perm()
87 static int profile_tracer_perm(struct aa_profile *tracer, in profile_tracer_perm()
121 struct aa_profile *profile; in aa_may_ptrace()
187 static int profile_signal_perm(struct aa_profile *profile, in profile_signal_perm()
210 struct aa_profile *profile; in aa_may_signal()
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()
293 static int path_flags(struct aa_profile *profile, const struct path *path) in path_flags()
316 static int match_mnt_path_str(struct aa_profile *profile, in match_mnt_path_str()
373 static int match_mnt(struct aa_profile *profile, const struct path *path, in match_mnt()
402 struct aa_profile *profile; in aa_remount()
426 struct aa_profile *profile; in aa_bind_mount()
463 struct aa_profile *profile; in aa_mount_change_type()
488 struct aa_profile *profile; in aa_move_mount()
523 struct aa_profile *profile; in aa_new_mount()
583 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()
154 struct aa_profile *profile; in aa_label_sk_perm()
213 static int aa_secmark_perm(struct aa_profile *profile, u32 request, u32 secid, in aa_secmark_perm()
249 struct aa_profile *profile; in apparmor_secmark_check()
Dapparmorfs.c608 static void profile_query_cb(struct aa_profile *profile, struct aa_perms *perms, in profile_query_cb()
665 struct aa_profile *profile; in query_data()
754 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()
1505 void __aafs_profile_rmdir(struct aa_profile *profile) in __aafs_profile_rmdir()
1507 struct aa_profile *child; in __aafs_profile_rmdir()
[all …]
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()
381 void aa_profile_match_label(struct aa_profile *profile, struct aa_label *label, in aa_profile_match_label()
395 int aa_profile_label_perm(struct aa_profile *profile, struct aa_profile *target, in aa_profile_label_perm()
429 int aa_check_perms(struct aa_profile *profile, struct aa_perms *perms, in aa_check_perms()
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()
477 static bool unpack_trans_table(struct aa_ext *e, struct aa_profile *profile) in unpack_trans_table()
546 static bool unpack_xattrs(struct aa_ext *e, struct aa_profile *profile) in unpack_xattrs()
575 static bool unpack_secmark(struct aa_ext *e, struct aa_profile *profile) in unpack_secmark()
619 static bool unpack_rlimits(struct aa_ext *e, struct aa_profile *profile) in unpack_rlimits()
674 static struct aa_profile *unpack_profile(struct aa_ext *e, char **ns_name) in unpack_profile()
676 struct aa_profile *profile = NULL; in unpack_profile()
1031 static int verify_profile(struct aa_profile *profile) in verify_profile()
1178 struct aa_profile *profile = NULL; in aa_unpack()

12