Lines Matching refs:list

102  * __add_profile - add a profiles to list and label tree
103 * @list: list to add it to (NOT NULL)
108 * Requires: namespace lock be held, or list not be shared
110 static void __add_profile(struct list_head *list, struct aa_profile *profile)
114 AA_BUG(!list);
119 list_add_rcu(&profile->base.list, list);
120 /* get list reference */
128 * __list_remove_profile - remove a profile from the list it is on
131 * remove a profile from the list, warning generally removal should
135 * put @profile list refcount
137 * Requires: namespace lock be held, or list not have been live
145 list_del_rcu(&profile->base.list);
153 * Requires: namespace list lock be held, or list not be shared
170 * __aa_profile_list_release - remove all profiles on the list and put refs
171 * @head: list of profiles (NOT NULL)
178 list_for_each_entry_safe(profile, tmp, head, base.list)
227 INIT_LIST_HEAD(&rules->list);
266 list_for_each_entry_safe(rule, tmp, &profile->rules, list) {
267 list_del_init(&rule->list);
316 list_add(&rules->list, &profile->rules);
343 * __strn_find_child - find a profile on @head list using substring of @name
344 * @head: list to search (NOT NULL)
359 * __find_child - find a profile on @head list with a name matching @name
360 * @head: list to search (NOT NULL)
480 * @base: base list to start looking up profile name from (NOT NULL)
538 /* the unconfined profile is not in the regular profile list */
592 rules = list_first_entry(&profile->rules, typeof(*rules), list);
632 * null profiles are added to the profile list but the list does not
894 list_for_each_entry(ent, lh, list) {
906 * __replace_profile - replace @old with @new on a list
913 * refcount @new for list, put @old list refcount
915 * Requires: namespace list lock be held, or list not be shared
925 list_for_each_entry_safe(child, tmp, &lh, base.list) {
928 list_del_init(&child->base.list);
938 /* list refcount transferred to @new */
941 list_add_rcu(&child->base.list, &new->base.profiles);
954 if (list_empty(&new->base.list)) {
955 /* new is not on a list already */
956 list_replace_rcu(&old->base.list, &new->base.list);
1020 * aa_replace_profiles - replace profile(s) on the profile list
1026 * unpack and replace a profile on the profile list and uses of that profile
1029 * on the profile list it is added.
1054 * fail. Sort ent list and take ns locks in hierarchy order
1057 list_for_each_entry(ent, &lh, list) {
1092 list_for_each_entry(rawdata_ent, &ns->rawdata_list, list) {
1107 list_for_each_entry(ent, &lh, list) {
1177 list_for_each_entry(ent, &lh, list) {
1199 list_for_each_entry_safe(ent, tmp, &lh, list) {
1200 list_del_init(&ent->list);
1262 list_for_each_entry(tmp, &lh, list) {
1272 list_for_each_entry_safe(ent, tmp, &lh, list) {
1273 list_del_init(&ent->list);