/linux/tools/testing/selftests/landlock/ |
H A D | fs_test.c | 486 int ruleset_fd; in TEST_F_FORK() local 607 const int ruleset_fd = in TEST_F_FORK() local 665 const int ruleset_fd = in TEST_F_FORK() local 691 int ruleset_fd; in TEST_F_FORK() local 720 const int ruleset_fd, const __u64 allowed_access, in add_path_beneath() 763 int ruleset_fd, i; in create_ruleset() local 805 const int ruleset_fd = create_ruleset( in TEST_F_FORK() local 852 int ruleset_fd; in TEST_F_FORK() local 880 const int ruleset_fd = create_ruleset(_metadata, ACCESS_RW, rules); in TEST_F_FORK() local 934 const int ruleset_fd = create_ruleset(_metadata, ACCESS_RO, rules); in TEST_F_FORK() local [all …]
|
H A D | net_test.c | 654 int ruleset_fd; in TEST_F() local 704 int ruleset_fd; in TEST_F() local 746 const int ruleset_fd = landlock_create_ruleset( in TEST_F() local 775 const int ruleset_fd = landlock_create_ruleset( in TEST_F() local 855 const int ruleset_fd = landlock_create_ruleset( in TEST_F() local 886 const int ruleset_fd = landlock_create_ruleset( in TEST_F() local 999 int ruleset_fd; in TEST_F() local 1144 int ruleset_fd; in TEST_F() local 1163 int ruleset_fd; in TEST_F() local 1179 int ruleset_fd; in TEST_F() local [all …]
|
H A D | base_test.c | 201 ASSERT_LE(0, ruleset_fd); in TEST() local 106 int ruleset_fd; TEST() local 154 const int ruleset_fd = TEST() local 241 int ruleset_fd; TEST() local 335 int ruleset_fd, dir_fd; TEST() local [all...] |
H A D | wrappers.h | 26 static inline int landlock_add_rule(const int ruleset_fd, in landlock_add_rule() 37 static inline int landlock_restrict_self(const int ruleset_fd, in landlock_restrict_self()
|
H A D | audit_test.c | 77 int status, ruleset_fd, i; in TEST_F() local 163 int ruleset_fd, pipe_child, pipe_parent; member 365 int ruleset_fd; in TEST_F() local 561 int ruleset_fd; in TEST_F() local
|
H A D | scoped_common.h | 15 int ruleset_fd; in create_scoped_domain() local
|
H A D | sandbox-and-launch.c | 24 int pipe_child, pipe_parent, ruleset_fd; in main() local
|
H A D | common.h | 202 enforce_ruleset(struct __test_metadata *const _metadata, const int ruleset_fd) in enforce_ruleset() 215 int ruleset_fd; in drop_access_rights() local
|
H A D | ptrace_test.c | 28 int ruleset_fd; create_domain() local
|
H A D | scoped_abstract_unix_test.c | 31 int ruleset_fd; create_fs_domain() local
|
/linux/samples/landlock/ |
H A D | sandboxer.c | 38 static inline int landlock_add_rule(const int ruleset_fd, in landlock_add_rule() argument 49 static inline int landlock_restrict_self(const int ruleset_fd, in landlock_restrict_self() argument 114 populate_ruleset_fs(const char * const env_var,const int ruleset_fd,const __u64 allowed_access) populate_ruleset_fs() argument 182 populate_ruleset_net(const char * const env_var,const int ruleset_fd,const __u64 allowed_access) populate_ruleset_net() argument 342 int ruleset_fd, abi; main() local [all...] |
/linux/security/landlock/ |
H A D | syscalls.c | 201 int err, ruleset_fd; in SYSCALL_DEFINE3() local 419 SYSCALL_DEFINE4(landlock_add_rule, const int, ruleset_fd, in SYSCALL_DEFINE4() argument 479 SYSCALL_DEFINE2(landlock_restrict_self, const int, ruleset_fd, const __u32, in SYSCALL_DEFINE2() argument
|