Lines Matching refs:new_ruleset
29 struct landlock_ruleset *new_ruleset; in create_ruleset() local
31 new_ruleset = in create_ruleset()
32 kzalloc(struct_size(new_ruleset, fs_access_masks, num_layers), in create_ruleset()
34 if (!new_ruleset) in create_ruleset()
36 refcount_set(&new_ruleset->usage, 1); in create_ruleset()
37 mutex_init(&new_ruleset->lock); in create_ruleset()
38 new_ruleset->root = RB_ROOT; in create_ruleset()
39 new_ruleset->num_layers = num_layers; in create_ruleset()
45 return new_ruleset; in create_ruleset()
51 struct landlock_ruleset *new_ruleset; in landlock_create_ruleset() local
56 new_ruleset = create_ruleset(1); in landlock_create_ruleset()
57 if (!IS_ERR(new_ruleset)) in landlock_create_ruleset()
58 new_ruleset->fs_access_masks[0] = fs_access_mask; in landlock_create_ruleset()
59 return new_ruleset; in landlock_create_ruleset()