Lines Matching refs:aa_profile

146 static void __add_profile(struct list_head *list, struct aa_profile *profile)  in __add_profile()
175 static void __list_remove_profile(struct aa_profile *profile) in __list_remove_profile()
191 static void __remove_profile(struct aa_profile *profile) in __remove_profile()
213 struct aa_profile *profile, *tmp; in __aa_profile_list_release()
279 void aa_free_profile(struct aa_profile *profile) in aa_free_profile()
329 struct aa_profile *aa_alloc_profile(const char *hname, struct aa_proxy *proxy, in aa_alloc_profile()
332 struct aa_profile *profile; in aa_alloc_profile()
376 static inline bool ANY_RULE_MEDIATES(struct aa_profile *profile, in ANY_RULE_MEDIATES()
392 void aa_compute_profile_mediates(struct aa_profile *profile) in aa_compute_profile_mediates()
423 static struct aa_profile *__strn_find_child(struct list_head *head, in __strn_find_child()
426 return (struct aa_profile *)__policy_strn_find(head, name, len); in __strn_find_child()
438 static struct aa_profile *__find_child(struct list_head *head, const char *name) in __find_child()
450 struct aa_profile *aa_find_child(struct aa_profile *parent, const char *name) in aa_find_child()
452 struct aa_profile *profile; in aa_find_child()
481 struct aa_profile *profile = NULL; in __lookup_parent()
516 struct aa_profile *parent, *profile = NULL; in __create_missing_ancestors()
561 static struct aa_profile *__lookupn_profile(struct aa_policy *base, in __lookupn_profile()
564 struct aa_profile *profile = NULL; in __lookupn_profile()
584 static struct aa_profile *__lookup_profile(struct aa_policy *base, in __lookup_profile()
598 struct aa_profile *aa_lookupn_profile(struct aa_ns *ns, const char *hname, in aa_lookupn_profile()
601 struct aa_profile *profile; in aa_lookupn_profile()
617 struct aa_profile *aa_fqlookupn_profile(struct aa_label *base, in aa_fqlookupn_profile()
620 struct aa_profile *profile; in aa_fqlookupn_profile()
646 struct aa_profile *aa_alloc_null(struct aa_profile *parent, const char *name, in aa_alloc_null()
649 struct aa_profile *profile; in aa_alloc_null()
694 struct aa_profile *aa_new_learning_profile(struct aa_profile *parent, bool hat, in aa_new_learning_profile()
697 struct aa_profile *p, *profile; in aa_new_learning_profile()
763 static int replacement_allowed(struct aa_profile *profile, int noreplace, in replacement_allowed()
938 static struct aa_profile *__list_lookup_parent(struct list_head *lh, in __list_lookup_parent()
939 struct aa_profile *profile) in __list_lookup_parent()
973 static void __replace_profile(struct aa_profile *old, struct aa_profile *new) in __replace_profile()
975 struct aa_profile *child, *tmp; in __replace_profile()
982 struct aa_profile *p; in __replace_profile()
1003 struct aa_profile *parent = aa_deref_parent(old); in __replace_profile()
1030 bool noreplace, struct aa_profile **p, in __lookup_replace()
1045 static void share_name(struct aa_profile *old, struct aa_profile *new) in share_name()
1057 static struct aa_profile *update_to_newest_parent(struct aa_profile *new) in update_to_newest_parent()
1059 struct aa_profile *parent, *newest; in update_to_newest_parent()
1165 struct aa_profile *p; in aa_replace_profiles()
1220 p = (struct aa_profile *) policy; in aa_replace_profiles()
1237 struct aa_profile *p; in aa_replace_profiles()
1285 struct aa_profile *parent; in aa_replace_profiles()
1354 struct aa_profile *profile = NULL; in aa_remove_profiles()