• Home
  • Raw
  • Download

Lines Matching refs:parent

217 	aa_put_profile(rcu_access_pointer(profile->parent));  in aa_free_profile()
334 struct aa_profile *aa_find_child(struct aa_profile *parent, const char *name) in aa_find_child() argument
340 profile = __find_child(&parent->base.profiles, name); in aa_find_child()
503 struct aa_profile *aa_new_null_profile(struct aa_profile *parent, bool hat, in aa_new_null_profile() argument
510 AA_BUG(!parent); in aa_new_null_profile()
513 name = kmalloc(strlen(parent->base.hname) + 8 + strlen(base), in aa_new_null_profile()
516 sprintf(name, "%s//null-%s", parent->base.hname, base); in aa_new_null_profile()
522 name = kmalloc(strlen(parent->base.hname) + 2 + 7 + 8, gfp); in aa_new_null_profile()
525 sprintf(name, "%s//null-%x", parent->base.hname, in aa_new_null_profile()
526 atomic_inc_return(&parent->ns->uniq_null)); in aa_new_null_profile()
531 profile = aa_find_child(parent, bname); in aa_new_null_profile()
543 profile->path_flags = parent->path_flags; in aa_new_null_profile()
546 rcu_assign_pointer(profile->parent, aa_get_profile(parent)); in aa_new_null_profile()
547 profile->ns = aa_get_ns(parent->ns); in aa_new_null_profile()
552 p = __find_child(&parent->base.profiles, bname); in aa_new_null_profile()
557 __add_profile(&parent->base.profiles, profile); in aa_new_null_profile()
764 rcu_assign_pointer(child->parent, aa_get_profile(new)); in __replace_profile()
770 if (!rcu_access_pointer(new->parent)) { in __replace_profile()
771 struct aa_profile *parent = aa_deref_parent(old); in __replace_profile() local
772 rcu_assign_pointer(new->parent, aa_get_profile(parent)); in __replace_profile()
827 struct aa_profile *parent, *newest; in update_to_newest_parent() local
829 parent = rcu_dereference_protected(new->parent, in update_to_newest_parent()
831 newest = aa_get_newest_profile(parent); in update_to_newest_parent()
834 if (newest != parent) { in update_to_newest_parent()
835 aa_put_profile(parent); in update_to_newest_parent()
836 rcu_assign_pointer(new->parent, newest); in update_to_newest_parent()
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()
982 struct dentry *parent; in aa_replace_profiles() local
983 if (rcu_access_pointer(ent->new->parent)) { in aa_replace_profiles()
986 parent = prof_child_dir(p); 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()
1029 if (rcu_access_pointer(ent->new->parent)) { in aa_replace_profiles()
1030 struct aa_profile *parent; in aa_replace_profiles() local
1032 parent = update_to_newest_parent(ent->new); in aa_replace_profiles()
1033 lh = &parent->base.profiles; in aa_replace_profiles()
1128 mutex_lock_nested(&ns->parent->lock, ns->parent->level); in aa_remove_profiles()
1131 mutex_unlock(&ns->parent->lock); in aa_remove_profiles()