aboutsummaryrefslogtreecommitdiffstats
path: root/src/include/tinyLL.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/tinyLL.h')
-rw-r--r--src/include/tinyLL.h23
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 @@
1extern int landlock_create_ruleset(struct landlock_ruleset_attr *rsattr,size_t size,__u32 flags);
2
3extern int landlock_add_rule(int fd,enum landlock_rule_type t,void *attr,__u32 flags);
4
5extern int landlock_restrict_self(int fd,__u32 flags);
6
7extern int create_full_ruleset();
8
9extern int add_read_access_rule(int rset_fd,int allowed_fd);
10
11extern int add_read_access_rule_by_path(int rset_fd,char *allowed_path);
12
13extern int add_write_access_rule(int rset_fd,int allowed_fd,int restricted);
14
15extern int add_write_access_rule_by_path(int rset_fd,char *allowed_path,int restricted);
16
17extern int add_execute_rule(int rset_fd,int allowed_fd);
18
19extern int add_execute_rule_by_path(int rset_fd,char *allowed_path);
20
21extern int check_nnp();
22
23extern int enable_nnp();