Searched refs:landlock_ruleset (Results 1 – 8 of 8) sorted by relevance
| /Linux-v5.15/security/landlock/ |
| D | ruleset.h | 82 struct landlock_ruleset { struct 143 struct landlock_ruleset *landlock_create_ruleset(const u32 fs_access_mask); 145 void landlock_put_ruleset(struct landlock_ruleset *const ruleset); 146 void landlock_put_ruleset_deferred(struct landlock_ruleset *const ruleset); 148 int landlock_insert_rule(struct landlock_ruleset *const ruleset, 151 struct landlock_ruleset *landlock_merge_ruleset( 152 struct landlock_ruleset *const parent, 153 struct landlock_ruleset *const ruleset); 156 const struct landlock_ruleset *const ruleset, 159 static inline void landlock_get_ruleset(struct landlock_ruleset *const ruleset) in landlock_get_ruleset()
|
| D | ruleset.c | 27 static struct landlock_ruleset *create_ruleset(const u32 num_layers) in create_ruleset() 29 struct landlock_ruleset *new_ruleset; in create_ruleset() 47 struct landlock_ruleset *landlock_create_ruleset(const u32 fs_access_mask) in landlock_create_ruleset() 49 struct landlock_ruleset *new_ruleset; in landlock_create_ruleset() 115 const struct landlock_ruleset ruleset = { in build_check_ruleset() 144 static int insert_rule(struct landlock_ruleset *const ruleset, in insert_rule() 230 int landlock_insert_rule(struct landlock_ruleset *const ruleset, in landlock_insert_rule() 259 static int merge_ruleset(struct landlock_ruleset *const dst, in merge_ruleset() 260 struct landlock_ruleset *const src) in merge_ruleset() 312 static int inherit_ruleset(struct landlock_ruleset *const parent, in inherit_ruleset() [all …]
|
| D | cred.h | 20 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 *landlock_get_task_domain( in landlock_get_task_domain()
|
| D | ptrace.c | 32 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()
|
| D | syscalls.c | 98 struct landlock_ruleset *ruleset = filp->private_data; in fop_ruleset_release() 161 struct landlock_ruleset *ruleset; in SYSCALL_DEFINE3() 206 static struct landlock_ruleset *get_ruleset_from_fd(const int fd, in get_ruleset_from_fd() 210 struct landlock_ruleset *ruleset; in get_ruleset_from_fd() 310 struct landlock_ruleset *ruleset; in SYSCALL_DEFINE4() 395 struct landlock_ruleset *new_dom, *ruleset; in SYSCALL_DEFINE2()
|
| D | fs.c | 152 int landlock_append_fs_rule(struct landlock_ruleset *const ruleset, in landlock_append_fs_rule() 184 const struct landlock_ruleset *const domain, in unmask_layers() 225 static int check_access_path(const struct landlock_ruleset *const domain, in check_access_path() 313 const struct landlock_ruleset *const dom = in current_check_access_path() 551 const struct landlock_ruleset *const dom = in hook_path_link() 579 const struct landlock_ruleset *const dom = in hook_path_rename() 606 const struct landlock_ruleset *const dom = in hook_path_mknod() 654 const struct landlock_ruleset *const dom = in hook_file_open()
|
| D | cred.c | 20 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()
|
| D | fs.h | 67 int landlock_append_fs_rule(struct landlock_ruleset *const ruleset,
|