Home
last modified time | relevance | path

Searched refs:landlock_restrict_self (Results 1 – 25 of 44) sorted by relevance

12

/linux/tools/testing/selftests/landlock/
H A Dbase_test.c258 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 Dwrappers.h36 #ifndef landlock_restrict_self
37 static inline int landlock_restrict_self(const int ruleset_fd, in landlock_restrict_self() function
H A Dwait-pipe-sandbox.c83 if (landlock_restrict_self(ruleset_fd, 0)) { in main()
112 if (landlock_restrict_self(ruleset_fd, 0)) { in main()
H A Daudit_test.c100 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 Dsandbox-and-launch.c51 if (landlock_restrict_self(ruleset_fd, 0)) { in main()
H A Dcommon.h205 ASSERT_EQ(0, landlock_restrict_self(ruleset_fd, 0)) in enforce_ruleset()
/linux/samples/landlock/
H A Dsandboxer.c51 #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 DKconfig16 landlock_add_rule(), and landlock_restrict_self().
H A Dsyscalls.c478 SYSCALL_DEFINE2(landlock_restrict_self, const int, ruleset_fd, const __u32, in SYSCALL_DEFINE2() argument
/linux/kernel/
H A Dsys_ni.c169 COND_SYSCALL(landlock_restrict_self);
/linux/arch/mips/kernel/syscalls/
H A Dsyscall_n64.tbl363 446 n64 landlock_restrict_self sys_landlock_restrict_self
H A Dsyscall_n32.tbl387 446 n32 landlock_restrict_self sys_landlock_restrict_self
/linux/tools/perf/arch/mips/entry/syscalls/
H A Dsyscall_n64.tbl363 446 n64 landlock_restrict_self sys_landlock_restrict_self
/linux/scripts/
H A Dsyscall.tbl389 446 common landlock_restrict_self sys_landlock_restrict_self
/linux/tools/scripts/
H A Dsyscall.tbl389 446 common landlock_restrict_self sys_landlock_restrict_self
/linux/tools/perf/arch/arm64/entry/syscalls/
H A Dsyscall_64.tbl389 446 common landlock_restrict_self sys_landlock_restrict_self
/linux/arch/arm64/tools/
H A Dsyscall_64.tbl389 446 common landlock_restrict_self sys_landlock_restrict_self
/linux/arch/x86/entry/syscalls/
H A Dsyscall_64.tbl372 446 common landlock_restrict_self sys_landlock_restrict_self
/linux/tools/perf/arch/xtensa/entry/syscalls/
H A Dsyscall.tbl419 446 common landlock_restrict_self sys_landlock_restrict_self
/linux/tools/perf/arch/sh/entry/syscalls/
H A Dsyscall.tbl452 446 common landlock_restrict_self sys_landlock_restrict_self
/linux/tools/perf/arch/parisc/entry/syscalls/
H A Dsyscall.tbl447 446 common landlock_restrict_self sys_landlock_restrict_self
/linux/arch/m68k/kernel/syscalls/
H A Dsyscall.tbl448 446 common landlock_restrict_self sys_landlock_restrict_self
/linux/tools/perf/arch/x86/entry/syscalls/
H A Dsyscall_64.tbl372 446 common landlock_restrict_self sys_landlock_restrict_self
/linux/arch/xtensa/kernel/syscalls/
H A Dsyscall.tbl419 446 common landlock_restrict_self sys_landlock_restrict_self
/linux/arch/sh/kernel/syscalls/
H A Dsyscall.tbl452 446 common landlock_restrict_self sys_landlock_restrict_self

12