/linux/tools/testing/selftests/landlock/ |
H A D | base_test.c | 258 ASSERT_EQ(-1, landlock_restrict_self(-1, -1)); in TEST() 260 ASSERT_EQ(-1, landlock_restrict_self(-1, 0)); in TEST() 262 ASSERT_EQ(-1, landlock_restrict_self(ruleset_fd, 0)); in TEST() 268 ASSERT_EQ(-1, landlock_restrict_self(-1, -1)); in TEST() 272 ASSERT_EQ(-1, landlock_restrict_self(-1, 0)); in TEST() 276 ASSERT_EQ(0, landlock_restrict_self(ruleset_fd, 0)); in TEST() 287 EXPECT_EQ(-1, landlock_restrict_self(fd, 0)); in TEST() 302 EXPECT_EQ(-1, landlock_restrict_self( in TEST() 313 EXPECT_EQ(-1, landlock_restrict_self(-1, last_flag << 1)); in TEST() 316 EXPECT_EQ(-1, landlock_restrict_self( in TEST() [all...] |
H A D | wrappers.h | 36 #ifndef landlock_restrict_self 37 static inline int landlock_restrict_self(const int ruleset_fd, in landlock_restrict_self() function
|
H A D | wait-pipe-sandbox.c | 83 if (landlock_restrict_self(ruleset_fd, 0)) { in main() 112 if (landlock_restrict_self(ruleset_fd, 0)) { in main()
|
H A D | audit_test.c | 100 EXPECT_EQ(0, landlock_restrict_self(ruleset_fd, 0)); in TEST_F() 122 EXPECT_EQ(-1, landlock_restrict_self(ruleset_fd, 0)); in TEST_F() 179 if (landlock_restrict_self(data->ruleset_fd, 0)) { in thread_audit_test() 373 ASSERT_EQ(0, landlock_restrict_self(ruleset_fd, in TEST_F() 579 if (landlock_restrict_self(ruleset_fd, in TEST_F()
|
H A D | sandbox-and-launch.c | 51 if (landlock_restrict_self(ruleset_fd, 0)) { in main()
|
H A D | common.h | 205 ASSERT_EQ(0, landlock_restrict_self(ruleset_fd, 0)) in enforce_ruleset()
|
/linux/samples/landlock/ |
H A D | sandboxer.c | 51 #ifndef landlock_restrict_self 52 static inline int landlock_restrict_self(const int ruleset_fd, in landlock_restrict_self() function 520 if (landlock_restrict_self(ruleset_fd, set_restrict_flags)) { in main()
|
/linux/security/landlock/ |
H A D | Kconfig | 16 landlock_add_rule(), and landlock_restrict_self().
|
H A D | syscalls.c | 478 SYSCALL_DEFINE2(landlock_restrict_self, const int, ruleset_fd, const __u32, in SYSCALL_DEFINE2() argument
|
/linux/kernel/ |
H A D | sys_ni.c | 169 COND_SYSCALL(landlock_restrict_self);
|
/linux/arch/mips/kernel/syscalls/ |
H A D | syscall_n64.tbl | 363 446 n64 landlock_restrict_self sys_landlock_restrict_self
|
H A D | syscall_n32.tbl | 387 446 n32 landlock_restrict_self sys_landlock_restrict_self
|
/linux/tools/perf/arch/mips/entry/syscalls/ |
H A D | syscall_n64.tbl | 363 446 n64 landlock_restrict_self sys_landlock_restrict_self
|
/linux/scripts/ |
H A D | syscall.tbl | 389 446 common landlock_restrict_self sys_landlock_restrict_self
|
/linux/tools/scripts/ |
H A D | syscall.tbl | 389 446 common landlock_restrict_self sys_landlock_restrict_self
|
/linux/tools/perf/arch/arm64/entry/syscalls/ |
H A D | syscall_64.tbl | 389 446 common landlock_restrict_self sys_landlock_restrict_self
|
/linux/arch/arm64/tools/ |
H A D | syscall_64.tbl | 389 446 common landlock_restrict_self sys_landlock_restrict_self
|
/linux/arch/x86/entry/syscalls/ |
H A D | syscall_64.tbl | 372 446 common landlock_restrict_self sys_landlock_restrict_self
|
/linux/tools/perf/arch/xtensa/entry/syscalls/ |
H A D | syscall.tbl | 419 446 common landlock_restrict_self sys_landlock_restrict_self
|
/linux/tools/perf/arch/sh/entry/syscalls/ |
H A D | syscall.tbl | 452 446 common landlock_restrict_self sys_landlock_restrict_self
|
/linux/tools/perf/arch/parisc/entry/syscalls/ |
H A D | syscall.tbl | 447 446 common landlock_restrict_self sys_landlock_restrict_self
|
/linux/arch/m68k/kernel/syscalls/ |
H A D | syscall.tbl | 448 446 common landlock_restrict_self sys_landlock_restrict_self
|
/linux/tools/perf/arch/x86/entry/syscalls/ |
H A D | syscall_64.tbl | 372 446 common landlock_restrict_self sys_landlock_restrict_self
|
/linux/arch/xtensa/kernel/syscalls/ |
H A D | syscall.tbl | 419 446 common landlock_restrict_self sys_landlock_restrict_self
|
/linux/arch/sh/kernel/syscalls/ |
H A D | syscall.tbl | 452 446 common landlock_restrict_self sys_landlock_restrict_self
|