• Home
  • Raw
  • Download

Lines Matching refs:ent

710 	struct aa_load_ent *ent;  in __list_lookup_parent()  local
717 list_for_each_entry(ent, lh, list) { in __list_lookup_parent()
718 if (ent->new == profile) in __list_lookup_parent()
720 if (strncmp(ent->new->base.hname, profile->base.hname, len) == in __list_lookup_parent()
721 0 && ent->new->base.hname[len] == 0) in __list_lookup_parent()
722 return ent->new; in __list_lookup_parent()
862 struct aa_load_ent *ent, *tmp; in aa_replace_profiles() local
881 list_for_each_entry(ent, &lh, list) { in aa_replace_profiles()
883 if (ent->ns_name && in aa_replace_profiles()
884 strcmp(ent->ns_name, ns_name) != 0) { in aa_replace_profiles()
889 } else if (ent->ns_name) { in aa_replace_profiles()
895 ns_name = ent->ns_name; in aa_replace_profiles()
907 ent = NULL; in aa_replace_profiles()
929 list_for_each_entry(ent, &lh, list) { in aa_replace_profiles()
932 ent->new->rawdata = aa_get_loaddata(udata); in aa_replace_profiles()
933 error = __lookup_replace(ns, ent->new->base.hname, in aa_replace_profiles()
935 &ent->old, &info); in aa_replace_profiles()
939 if (ent->new->rename) { in aa_replace_profiles()
940 error = __lookup_replace(ns, ent->new->rename, in aa_replace_profiles()
942 &ent->rename, &info); in aa_replace_profiles()
948 ent->new->ns = aa_get_ns(ns); in aa_replace_profiles()
950 if (ent->old || ent->rename) in aa_replace_profiles()
954 policy = __lookup_parent(ns, ent->new->base.hname); in aa_replace_profiles()
957 p = __list_lookup_parent(&lh, ent->new); in aa_replace_profiles()
963 rcu_assign_pointer(ent->new->parent, aa_get_profile(p)); in aa_replace_profiles()
967 rcu_assign_pointer(ent->new->parent, aa_get_profile(p)); in aa_replace_profiles()
976 ent = NULL; in aa_replace_profiles()
980 list_for_each_entry(ent, &lh, list) { in aa_replace_profiles()
981 if (!ent->old) { in aa_replace_profiles()
983 if (rcu_access_pointer(ent->new->parent)) { in aa_replace_profiles()
985 p = aa_deref_parent(ent->new); in aa_replace_profiles()
988 parent = ns_subprofs_dir(ent->new->ns); in aa_replace_profiles()
989 error = __aafs_profile_mkdir(ent->new, parent); in aa_replace_profiles()
1001 list_for_each_entry_safe(ent, tmp, &lh, list) { in aa_replace_profiles()
1002 list_del_init(&ent->list); in aa_replace_profiles()
1003 op = (!ent->old && !ent->rename) ? OP_PROF_LOAD : OP_PROF_REPL; in aa_replace_profiles()
1005 if (ent->old && ent->old->rawdata == ent->new->rawdata) { in aa_replace_profiles()
1007 audit_policy(label, op, ns_name, ent->new->base.hname, in aa_replace_profiles()
1011 aa_put_proxy(ent->new->label.proxy); in aa_replace_profiles()
1012 ent->new->label.proxy = NULL; in aa_replace_profiles()
1020 audit_policy(label, op, ns_name, ent->new->base.hname, NULL, in aa_replace_profiles()
1023 if (ent->old) { in aa_replace_profiles()
1024 share_name(ent->old, ent->new); in aa_replace_profiles()
1025 __replace_profile(ent->old, ent->new); in aa_replace_profiles()
1029 if (rcu_access_pointer(ent->new->parent)) { in aa_replace_profiles()
1032 parent = update_to_newest_parent(ent->new); in aa_replace_profiles()
1036 __add_profile(lh, ent->new); in aa_replace_profiles()
1039 aa_load_ent_free(ent); in aa_replace_profiles()
1057 op = (ent && !ent->old) ? OP_PROF_LOAD : OP_PROF_REPL; in aa_replace_profiles()
1059 audit_policy(label, op, ns_name, ent ? ent->new->base.hname : NULL, in aa_replace_profiles()
1064 if (tmp == ent) { in aa_replace_profiles()
1073 list_for_each_entry_safe(ent, tmp, &lh, list) { in aa_replace_profiles()
1074 list_del_init(&ent->list); in aa_replace_profiles()
1075 aa_load_ent_free(ent); in aa_replace_profiles()