Lines Matching refs:id
107 create_rule(const struct landlock_id id, in create_rule() argument
128 if (is_object_pointer(id.type)) { in create_rule()
130 WARN_ON_ONCE(!id.key.object); in create_rule()
131 landlock_get_object(id.key.object); in create_rule()
134 new_rule->key = id.key; in create_rule()
204 const struct landlock_id id, in insert_rule() argument
218 if (is_object_pointer(id.type) && WARN_ON_ONCE(!id.key.object)) in insert_rule()
221 root = get_root(ruleset, id.type); in insert_rule()
230 if (this->key.data != id.key.data) { in insert_rule()
232 if (this->key.data < id.key.data) in insert_rule()
264 new_rule = create_rule(id, &this->layers, this->num_layers, in insert_rule()
269 free_rule(this, id.type); in insert_rule()
277 new_rule = create_rule(id, layers, num_layers, NULL); in insert_rule()
299 const struct landlock_id id, in landlock_insert_rule() argument
309 return insert_rule(ruleset, id, &layers, ARRAY_SIZE(layers)); in landlock_insert_rule()
334 const struct landlock_id id = { in merge_tree() local
347 err = insert_rule(dst, id, &layers, ARRAY_SIZE(layers)); in merge_tree()
416 const struct landlock_id id = { in inherit_tree() local
421 err = insert_rule(child, id, &walker_rule->layers, in inherit_tree()
584 const struct landlock_id id) in landlock_find_rule() argument
589 root = get_root((struct landlock_ruleset *)ruleset, id.type); in landlock_find_rule()
598 if (this->key.data == id.key.data) in landlock_find_rule()
600 if (this->key.data < id.key.data) in landlock_find_rule()