Lines Matching refs:new_dom
406 struct landlock_ruleset *new_dom; in landlock_merge_ruleset() local
423 new_dom = create_ruleset(num_layers); in landlock_merge_ruleset()
424 if (IS_ERR(new_dom)) in landlock_merge_ruleset()
425 return new_dom; in landlock_merge_ruleset()
426 new_dom->hierarchy = in landlock_merge_ruleset()
427 kzalloc(sizeof(*new_dom->hierarchy), GFP_KERNEL_ACCOUNT); in landlock_merge_ruleset()
428 if (!new_dom->hierarchy) { in landlock_merge_ruleset()
432 refcount_set(&new_dom->hierarchy->usage, 1); in landlock_merge_ruleset()
435 err = inherit_ruleset(parent, new_dom); in landlock_merge_ruleset()
440 err = merge_ruleset(new_dom, ruleset); in landlock_merge_ruleset()
444 return new_dom; in landlock_merge_ruleset()
447 landlock_put_ruleset(new_dom); in landlock_merge_ruleset()