Lines Matching defs:rule
64 const struct landlock_rule rule = {
68 BUILD_BUG_ON(rule.num_layers < LANDLOCK_MAX_NUM_LAYERS);
105 static void free_rule(struct landlock_rule *const rule)
108 if (!rule)
110 landlock_put_object(rule->object);
111 kfree(rule);
128 * insert_rule - Create and insert a rule in a ruleset
131 * @object: The object to build the new rule with. The underlying kernel
133 * @layers: One or multiple layers to be copied into the new rule.
136 * When user space requests to add a new rule to a ruleset, @layers only
138 * case, the new rule will extend @ruleset, similarly to a boolean OR between
172 /* Only a single-level layer should match an existing rule. */
176 /* If there is a matching rule, updates it. */