-
Notifications
You must be signed in to change notification settings - Fork 0
/
tinyLL.h
31 lines (16 loc) · 1.03 KB
/
tinyLL.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
extern int landlock_create_ruleset(struct landlock_ruleset_attr *rsattr,size_t size,__u32 flags);
extern int landlock_add_rule(int fd,enum landlock_rule_type t,void *attr,__u32 flags);
extern int landlock_restrict_self(int fd,__u32 flags);
extern int create_full_ruleset();
extern int add_read_access_rule(int rset_fd,int allowed_fd);
extern int add_file_read_access_rule(int rset_fd,int allowed_fd);
extern int add_read_access_rule_by_path(int rset_fd,char *allowed_path);
extern int add_file_read_access_rule_by_path(int rset_fd,char *allowed_path);
extern int add_write_access_rule(int rset_fd,int allowed_fd,int restricted);
extern int add_file_write_access_rule(int rset_fd,int allowed_fd);
extern int add_write_access_rule_by_path(int rset_fd,char *allowed_path,int restricted);
extern int add_file_write_access_rule_by_path(int rset_fd,char *allowed_path);
extern int add_execute_rule(int rset_fd,int allowed_fd);
extern int add_execute_rule_by_path(int rset_fd,char *allowed_path);
extern int check_nnp();
extern int enable_nnp();