Home
last modified time | relevance | path

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

/Linux-v6.1/security/landlock/
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()
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 …]
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 *
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()
Dsyscalls.c99 struct landlock_ruleset *ruleset = filp->private_data; in fop_ruleset_release()
162 struct landlock_ruleset *ruleset; in SYSCALL_DEFINE3()
208 static struct landlock_ruleset *get_ruleset_from_fd(const int fd, in get_ruleset_from_fd()
212 struct landlock_ruleset *ruleset; in get_ruleset_from_fd()
311 struct landlock_ruleset *ruleset; in SYSCALL_DEFINE4()
400 struct landlock_ruleset *new_dom, *ruleset; in SYSCALL_DEFINE2()
Dfs.c165 int landlock_append_fs_rule(struct landlock_ruleset *const ruleset, in landlock_append_fs_rule()
205 find_rule(const struct landlock_ruleset *const domain, in find_rule()
290 get_handled_accesses(const struct landlock_ruleset *const domain) in get_handled_accesses()
301 init_layer_masks(const struct landlock_ruleset *const domain, in init_layer_masks()
476 const struct landlock_ruleset *const domain, in check_access_path_dual()
645 static inline int check_access_path(const struct landlock_ruleset *const domain, in check_access_path()
659 const struct landlock_ruleset *const dom = in current_check_access_path()
722 const struct landlock_ruleset *const domain, in collect_domain_accesses()
822 const struct landlock_ruleset *const dom = in current_check_refer_path()
1118 const struct landlock_ruleset *const dom = in hook_path_mknod()
[all …]
Dcred.c20 struct landlock_ruleset *const old_dom = landlock_cred(old)->domain; in hook_cred_prepare()
31 struct landlock_ruleset *const dom = landlock_cred(cred)->domain; in hook_cred_free()
Dfs.h67 int landlock_append_fs_rule(struct landlock_ruleset *const ruleset,