diff options
Diffstat (limited to 'src/include/tinyLL.h')
-rw-r--r-- | src/include/tinyLL.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/include/tinyLL.h b/src/include/tinyLL.h new file mode 100644 index 000000000..f5cd20876 --- /dev/null +++ b/src/include/tinyLL.h | |||
@@ -0,0 +1,23 @@ | |||
1 | extern int landlock_create_ruleset(struct landlock_ruleset_attr *rsattr,size_t size,__u32 flags); | ||
2 | |||
3 | extern int landlock_add_rule(int fd,enum landlock_rule_type t,void *attr,__u32 flags); | ||
4 | |||
5 | extern int landlock_restrict_self(int fd,__u32 flags); | ||
6 | |||
7 | extern int create_full_ruleset(); | ||
8 | |||
9 | extern int add_read_access_rule(int rset_fd,int allowed_fd); | ||
10 | |||
11 | extern int add_read_access_rule_by_path(int rset_fd,char *allowed_path); | ||
12 | |||
13 | extern int add_write_access_rule(int rset_fd,int allowed_fd,int restricted); | ||
14 | |||
15 | extern int add_write_access_rule_by_path(int rset_fd,char *allowed_path,int restricted); | ||
16 | |||
17 | extern int add_execute_rule(int rset_fd,int allowed_fd); | ||
18 | |||
19 | extern int add_execute_rule_by_path(int rset_fd,char *allowed_path); | ||
20 | |||
21 | extern int check_nnp(); | ||
22 | |||
23 | extern int enable_nnp(); | ||