Home
last modified time | relevance | path

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

/linux/security/landlock/
H A Druleset.h119 struct landlock_ruleset { struct
192 struct landlock_ruleset *
197 void landlock_put_ruleset(struct landlock_ruleset *const ruleset);
198 void landlock_put_ruleset_deferred(struct landlock_ruleset *const ruleset);
200 DEFINE_FREE(landlock_put_ruleset, struct landlock_ruleset *,
203 int landlock_insert_rule(struct landlock_ruleset *const ruleset,
207 struct landlock_ruleset *
208 landlock_merge_ruleset(struct landlock_ruleset *const parent,
209 struct landlock_ruleset *const ruleset);
212 landlock_find_rule(const struct landlock_ruleset *const ruleset,
[all …]
H A Druleset.c31 static struct landlock_ruleset *create_ruleset(const u32 num_layers) in create_ruleset()
33 struct landlock_ruleset *new_ruleset; in create_ruleset()
56 struct landlock_ruleset *
61 struct landlock_ruleset *new_ruleset; in landlock_create_ruleset()
147 static struct rb_root *get_root(struct landlock_ruleset *const ruleset, in get_root()
178 const struct landlock_ruleset ruleset = { in build_check_ruleset()
205 static int insert_rule(struct landlock_ruleset *const ruleset, in insert_rule()
304 int landlock_insert_rule(struct landlock_ruleset *const ruleset, in landlock_insert_rule()
318 static int merge_tree(struct landlock_ruleset *const dst, in merge_tree()
319 struct landlock_ruleset *const src, in merge_tree()
[all …]
H A Dtask.c41 static bool domain_scope_le(const struct landlock_ruleset *const parent, in domain_scope_le()
42 const struct landlock_ruleset *const child) in domain_scope_le()
63 static int domain_ptrace(const struct landlock_ruleset *const parent, in domain_ptrace()
64 const struct landlock_ruleset *const child) in domain_ptrace()
98 const struct landlock_ruleset *const child_dom = in hook_ptrace_access_check()
138 const struct landlock_ruleset *child_dom; in hook_ptrace_traceme()
179 static bool domain_is_scoped(const struct landlock_ruleset *const client, in domain_is_scoped()
180 const struct landlock_ruleset *const server, in domain_is_scoped()
236 const struct landlock_ruleset *const domain) in sock_is_scoped()
238 const struct landlock_ruleset *dom_other; in sock_is_scoped()
H A Dsyscalls.c125 struct landlock_ruleset *ruleset = filp->private_data; in fop_ruleset_release()
203 struct landlock_ruleset *ruleset; in SYSCALL_DEFINE3()
266 static struct landlock_ruleset *get_ruleset_from_fd(const int fd, in get_ruleset_from_fd()
270 struct landlock_ruleset *ruleset; in get_ruleset_from_fd()
317 static int add_rule_path_beneath(struct landlock_ruleset *const ruleset, in add_rule_path_beneath()
355 static int add_rule_net_port(struct landlock_ruleset *ruleset, in add_rule_net_port()
425 struct landlock_ruleset *ruleset __free(landlock_put_ruleset) = NULL; in SYSCALL_DEFINE4()
485 struct landlock_ruleset *ruleset __free(landlock_put_ruleset) = NULL; in SYSCALL_DEFINE2()
550 struct landlock_ruleset *const new_dom = in SYSCALL_DEFINE2()
H A Dcred.h36 struct landlock_ruleset *domain;
80 static inline struct landlock_ruleset *landlock_get_current_domain(void) in landlock_get_current_domain()
88 static inline const struct landlock_ruleset *
129 const struct landlock_ruleset *domain; in landlock_get_applicable_subject()
H A Dnet.h18 int landlock_append_net_rule(struct landlock_ruleset *const ruleset,
26 landlock_append_net_rule(struct landlock_ruleset *const ruleset, const u16 port, in landlock_append_net_rule()
H A Daudit.c137 get_hierarchy(const struct landlock_ruleset *const domain, const size_t layer) in get_hierarchy()
170 struct landlock_ruleset dom2 = { in test_get_hierarchy()
184 static size_t get_denied_layer(const struct landlock_ruleset *const domain, in get_denied_layer()
204 const struct landlock_ruleset dom = { in test_get_denied_layer()
H A Dfs.h127 int landlock_append_fs_rule(struct landlock_ruleset *const ruleset,
H A Dcred.c40 struct landlock_ruleset *const dom = landlock_cred(cred)->domain; in hook_cred_free()
H A Dfs.c323 int landlock_append_fs_rule(struct landlock_ruleset *const ruleset, in landlock_append_fs_rule()
364 find_rule(const struct landlock_ruleset *const domain, in find_rule()
742 is_access_to_paths_allowed(const struct landlock_ruleset *const domain, in is_access_to_paths_allowed()
1029 static bool collect_domain_accesses(const struct landlock_ruleset *const domain, in collect_domain_accesses()
1791 struct landlock_ruleset *prev_dom; in hook_file_set_fowner()
H A Dnet.c22 int landlock_append_net_rule(struct landlock_ruleset *const ruleset, in landlock_append_net_rule()