Lines Matching refs:aa_profile
154 static void __add_profile(struct list_head *list, struct aa_profile *profile) in __add_profile()
183 static void __list_remove_profile(struct aa_profile *profile) in __list_remove_profile()
199 static void __remove_profile(struct aa_profile *profile) in __remove_profile()
201 struct aa_profile *curr, *to_remove; in __remove_profile()
209 curr = list_first_entry(&profile->base.profiles, struct aa_profile, base.list); in __remove_profile()
215 struct aa_profile, base.list); in __remove_profile()
245 struct aa_profile *profile, *tmp; in __aa_profile_list_release()
317 void aa_free_profile(struct aa_profile *profile) in aa_free_profile()
367 struct aa_profile *aa_alloc_profile(const char *hname, struct aa_proxy *proxy, in aa_alloc_profile()
370 struct aa_profile *profile; in aa_alloc_profile()
414 static inline bool ANY_RULE_MEDIATES(struct aa_profile *profile, in ANY_RULE_MEDIATES()
430 void aa_compute_profile_mediates(struct aa_profile *profile) in aa_compute_profile_mediates()
461 static struct aa_profile *__strn_find_child(struct list_head *head, in __strn_find_child()
464 return (struct aa_profile *)__policy_strn_find(head, name, len); in __strn_find_child()
476 static struct aa_profile *__find_child(struct list_head *head, const char *name) in __find_child()
488 struct aa_profile *aa_find_child(struct aa_profile *parent, const char *name) in aa_find_child()
490 struct aa_profile *profile; in aa_find_child()
519 struct aa_profile *profile = NULL; in __lookup_parent()
554 struct aa_profile *parent, *profile = NULL; in __create_missing_ancestors()
599 static struct aa_profile *__lookupn_profile(struct aa_policy *base, in __lookupn_profile()
602 struct aa_profile *profile = NULL; in __lookupn_profile()
622 static struct aa_profile *__lookup_profile(struct aa_policy *base, in __lookup_profile()
636 struct aa_profile *aa_lookupn_profile(struct aa_ns *ns, const char *hname, in aa_lookupn_profile()
639 struct aa_profile *profile; in aa_lookupn_profile()
655 struct aa_profile *aa_fqlookupn_profile(struct aa_label *base, in aa_fqlookupn_profile()
658 struct aa_profile *profile; in aa_fqlookupn_profile()
684 struct aa_profile *aa_alloc_null(struct aa_profile *parent, const char *name, in aa_alloc_null()
687 struct aa_profile *profile; in aa_alloc_null()
732 struct aa_profile *aa_new_learning_profile(struct aa_profile *parent, bool hat, in aa_new_learning_profile()
735 struct aa_profile *p, *profile; in aa_new_learning_profile()
804 static int replacement_allowed(struct aa_profile *profile, int noreplace, in replacement_allowed()
1011 static struct aa_profile *__list_lookup_parent(struct list_head *lh, in __list_lookup_parent()
1012 struct aa_profile *profile) in __list_lookup_parent()
1046 static void __replace_profile(struct aa_profile *old, struct aa_profile *new) in __replace_profile()
1048 struct aa_profile *child, *tmp; in __replace_profile()
1055 struct aa_profile *p; in __replace_profile()
1076 struct aa_profile *parent = aa_deref_parent(old); in __replace_profile()
1103 bool noreplace, struct aa_profile **p, in __lookup_replace()
1118 static void share_name(struct aa_profile *old, struct aa_profile *new) in share_name()
1130 static struct aa_profile *update_to_newest_parent(struct aa_profile *new) in update_to_newest_parent()
1132 struct aa_profile *parent, *newest; in update_to_newest_parent()
1239 struct aa_profile *p; in aa_replace_profiles()
1294 p = (struct aa_profile *) policy; in aa_replace_profiles()
1311 struct aa_profile *p; in aa_replace_profiles()
1359 struct aa_profile *parent; in aa_replace_profiles()
1428 struct aa_profile *profile = NULL; in aa_remove_profiles()