Home
last modified time | relevance | path

Searched refs:landlock_ruleset (Results 1 – 8 of 8) sorted by relevance

/openbmc/linux/security/landlock/
H A Druleset.h95 struct landlock_ruleset { struct
156 struct landlock_ruleset *
159 void landlock_put_ruleset(struct landlock_ruleset *const ruleset);
160 void landlock_put_ruleset_deferred(struct landlock_ruleset *const ruleset);
162 int landlock_insert_rule(struct landlock_ruleset *const ruleset,
166 struct landlock_ruleset *
167 landlock_merge_ruleset(struct landlock_ruleset *const parent,
168 struct landlock_ruleset *const ruleset);
171 landlock_find_rule(const struct landlock_ruleset *const ruleset,
174 static inline void landlock_get_ruleset(struct landlock_ruleset *const ruleset) in landlock_get_ruleset()
H A Druleset.c27 static struct landlock_ruleset *create_ruleset(const u32 num_layers) in create_ruleset()
29 struct landlock_ruleset *new_ruleset; in create_ruleset()
48 struct landlock_ruleset *
51 struct landlock_ruleset *new_ruleset; in landlock_create_ruleset()
116 const struct landlock_ruleset ruleset = { in build_check_ruleset()
145 static int insert_rule(struct landlock_ruleset *const ruleset, in insert_rule()
231 int landlock_insert_rule(struct landlock_ruleset *const ruleset, in landlock_insert_rule()
261 static int merge_ruleset(struct landlock_ruleset *const dst, in merge_ruleset()
262 struct landlock_ruleset *const src) in merge_ruleset()
314 static int inherit_ruleset(struct landlock_ruleset *const parent, in inherit_ruleset()
[all …]
H A Dcred.h20 struct landlock_ruleset *domain;
29 static inline const struct landlock_ruleset *landlock_get_current_domain(void) in landlock_get_current_domain()
37 static inline const struct landlock_ruleset *
H A Dptrace.c32 static bool domain_scope_le(const struct landlock_ruleset *const parent, in domain_scope_le()
33 const struct landlock_ruleset *const child) in domain_scope_le()
54 const struct landlock_ruleset *dom_parent, *dom_child; in task_is_scoped()
H A Dsyscalls.c111 struct landlock_ruleset *ruleset = filp->private_data; in fop_ruleset_release()
174 struct landlock_ruleset *ruleset; in SYSCALL_DEFINE3()
220 static struct landlock_ruleset *get_ruleset_from_fd(const int fd, in get_ruleset_from_fd()
224 struct landlock_ruleset *ruleset; in get_ruleset_from_fd()
323 struct landlock_ruleset *ruleset; in SYSCALL_DEFINE4()
412 struct landlock_ruleset *new_dom, *ruleset; in SYSCALL_DEFINE2()
H A Dfs.c166 int landlock_append_fs_rule(struct landlock_ruleset *const ruleset, in landlock_append_fs_rule()
206 find_rule(const struct landlock_ruleset *const domain, in find_rule()
291 get_handled_accesses(const struct landlock_ruleset *const domain) in get_handled_accesses()
315 init_layer_masks(const struct landlock_ruleset *const domain, in init_layer_masks()
486 const struct landlock_ruleset *const domain, in is_access_to_paths_allowed()
638 static inline int check_access_path(const struct landlock_ruleset *const domain, in check_access_path()
654 const struct landlock_ruleset *const dom = in current_check_access_path()
717 const struct landlock_ruleset *const domain, in collect_domain_accesses()
817 const struct landlock_ruleset *const dom = in current_check_refer_path()
1139 const struct landlock_ruleset *const dom = in hook_path_mknod()
[all …]
H A Dcred.c20 struct landlock_ruleset *const old_dom = landlock_cred(old)->domain; in hook_cred_transfer()
37 struct landlock_ruleset *const dom = landlock_cred(cred)->domain; in hook_cred_free()
H A Dfs.h91 int landlock_append_fs_rule(struct landlock_ruleset *const ruleset,