Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/landlock/
H A Dbase_test.c214 ASSERT_EQ(-1, landlock_restrict_self(-1, -1)); in TEST()
216 ASSERT_EQ(-1, landlock_restrict_self(-1, 0)); in TEST()
218 ASSERT_EQ(-1, landlock_restrict_self(ruleset_fd, 0)); in TEST()
224 ASSERT_EQ(-1, landlock_restrict_self(-1, -1)); in TEST()
228 ASSERT_EQ(-1, landlock_restrict_self(-1, 0)); in TEST()
232 ASSERT_EQ(0, landlock_restrict_self(ruleset_fd, 0)); in TEST()
302 ASSERT_EQ(0, landlock_restrict_self(ruleset_fd_rx, 0)); in TEST()
350 ASSERT_EQ(0, landlock_restrict_self(ruleset_fd, 0)); in TEST()
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 Dsandbox-and-launch.c51 if (landlock_restrict_self(ruleset_fd, 0)) { in main()
H A Dcommon.h201 ASSERT_EQ(0, landlock_restrict_self(ruleset_fd, 0)) in enforce_ruleset()
H A Dptrace_test.c40 EXPECT_EQ(0, landlock_restrict_self(ruleset_fd, 0)); in create_domain()
H A Dscoped_abstract_unix_test.c43 EXPECT_EQ(0, landlock_restrict_self(ruleset_fd, 0)); in create_fs_domain()
/linux/samples/landlock/
H A Dsandboxer.c48 #ifndef landlock_restrict_self
49 static inline int landlock_restrict_self(const int ruleset_fd, in landlock_restrict_self() function
486 if (landlock_restrict_self(ruleset_fd, 0)) { in main()
/linux/security/landlock/
H A DKconfig16 landlock_add_rule(), and landlock_restrict_self().
H A Dsyscalls.c451 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/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/arch/x86/entry/syscalls/
H A Dsyscall_64.tbl372 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
H A Dsyscall_32.tbl454 446 i386 landlock_restrict_self sys_landlock_restrict_self
/linux/tools/perf/arch/powerpc/entry/syscalls/
H A Dsyscall.tbl539 446 common landlock_restrict_self sys_landlock_restrict_self
/linux/tools/perf/arch/s390/entry/syscalls/
H A Dsyscall.tbl451 446 common landlock_restrict_self sys_landlock_restrict_self sys_landlock_restrict_self
/linux/Documentation/userspace-api/
H A Dlandlock.rst211 if (landlock_restrict_self(ruleset_fd, 0)) {
218 If the ``landlock_restrict_self`` system call succeeds, the current thread is