Home
last modified time | relevance | path

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

/linux-6.12.1/security/landlock/
Druleset.h174 struct landlock_ruleset { struct
247 struct landlock_ruleset *
252 void landlock_put_ruleset(struct landlock_ruleset *const ruleset);
253 void landlock_put_ruleset_deferred(struct landlock_ruleset *const ruleset);
255 int landlock_insert_rule(struct landlock_ruleset *const ruleset,
259 struct landlock_ruleset *
260 landlock_merge_ruleset(struct landlock_ruleset *const parent,
261 struct landlock_ruleset *const ruleset);
264 landlock_find_rule(const struct landlock_ruleset *const ruleset,
267 static inline void landlock_get_ruleset(struct landlock_ruleset *const ruleset) in landlock_get_ruleset()
[all …]
Druleset.c27 static struct landlock_ruleset *create_ruleset(const u32 num_layers) in create_ruleset()
29 struct landlock_ruleset *new_ruleset; in create_ruleset()
53 struct landlock_ruleset *
58 struct landlock_ruleset *new_ruleset; in landlock_create_ruleset()
140 static struct rb_root *get_root(struct landlock_ruleset *const ruleset, in get_root()
171 const struct landlock_ruleset ruleset = { in build_check_ruleset()
198 static int insert_rule(struct landlock_ruleset *const ruleset, in insert_rule()
293 int landlock_insert_rule(struct landlock_ruleset *const ruleset, in landlock_insert_rule()
323 static int merge_tree(struct landlock_ruleset *const dst, in merge_tree()
324 struct landlock_ruleset *const src, in merge_tree()
[all …]
Dtask.c35 static bool domain_scope_le(const struct landlock_ruleset *const parent, in domain_scope_le()
36 const struct landlock_ruleset *const child) in domain_scope_le()
57 const struct landlock_ruleset *dom_parent, *dom_child; in task_is_scoped()
125 static bool domain_is_scoped(const struct landlock_ruleset *const client, in domain_is_scoped()
126 const struct landlock_ruleset *const server, in domain_is_scoped()
182 const struct landlock_ruleset *const domain) in sock_is_scoped()
184 const struct landlock_ruleset *dom_other; in sock_is_scoped()
215 const struct landlock_ruleset *const dom = in hook_unix_stream_connect()
232 const struct landlock_ruleset *const dom = in hook_unix_may_send()
261 const struct landlock_ruleset *dom; in hook_task_kill()
[all …]
Dsyscalls.c120 struct landlock_ruleset *ruleset = filp->private_data; in fop_ruleset_release()
184 struct landlock_ruleset *ruleset; in SYSCALL_DEFINE3()
241 static struct landlock_ruleset *get_ruleset_from_fd(const int fd, in get_ruleset_from_fd()
245 struct landlock_ruleset *ruleset; in get_ruleset_from_fd()
310 static int add_rule_path_beneath(struct landlock_ruleset *const ruleset, in add_rule_path_beneath()
348 static int add_rule_net_port(struct landlock_ruleset *ruleset, in add_rule_net_port()
418 struct landlock_ruleset *ruleset; in SYSCALL_DEFINE4()
476 struct landlock_ruleset *new_dom, *ruleset; in SYSCALL_DEFINE2()
Dcred.h20 struct landlock_ruleset *domain;
29 static inline struct landlock_ruleset *landlock_get_current_domain(void) in landlock_get_current_domain()
37 static inline const struct landlock_ruleset *
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()
Dfs.h61 struct landlock_ruleset *fown_domain;
98 int landlock_append_fs_rule(struct landlock_ruleset *const ruleset,
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()
Dfs.c317 int landlock_append_fs_rule(struct landlock_ruleset *const ruleset, in landlock_append_fs_rule()
358 find_rule(const struct landlock_ruleset *const domain, in find_rule()
392 get_handled_fs_accesses(const struct landlock_ruleset *const domain) in get_handled_fs_accesses()
403 static const struct landlock_ruleset *get_current_fs_domain(void) in get_current_fs_domain()
754 const struct landlock_ruleset *const domain, in is_access_to_paths_allowed()
911 static int check_access_path(const struct landlock_ruleset *const domain, in check_access_path()
928 const struct landlock_ruleset *const dom = get_current_fs_domain(); in current_check_access_path()
991 const struct landlock_ruleset *const domain, in collect_domain_accesses()
1093 const struct landlock_ruleset *const dom = get_current_fs_domain(); in current_check_refer_path()
1417 const struct landlock_ruleset *const dom = get_current_fs_domain(); in hook_path_mknod()
[all …]
Dnet.c20 int landlock_append_net_rule(struct landlock_ruleset *const ruleset, in landlock_append_net_rule()
57 const struct landlock_ruleset *const dom = in current_check_access_socket()