Home
last modified time | relevance | path

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

12

/openbmc/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 Dcommon.h102 #ifndef landlock_restrict_self
103 static inline int landlock_restrict_self(const int ruleset_fd, in landlock_restrict_self() function
H A Dptrace_test.c42 EXPECT_EQ(0, landlock_restrict_self(ruleset_fd, 0)); in create_domain()
/openbmc/linux/samples/landlock/
H A Dsandboxer.c44 #ifndef landlock_restrict_self
45 static inline int landlock_restrict_self(const int ruleset_fd, in landlock_restrict_self() function
293 if (landlock_restrict_self(ruleset_fd, 0)) { in main()
/openbmc/linux/security/landlock/
H A DKconfig15 landlock_add_rule(), and landlock_restrict_self().
H A Dsyscalls.c409 SYSCALL_DEFINE2(landlock_restrict_self, const int, ruleset_fd, const __u32, in SYSCALL_DEFINE2() argument
/openbmc/linux/kernel/
H A Dsys_ni.c170 COND_SYSCALL(landlock_restrict_self);
/openbmc/qemu/linux-user/mips64/
H A Dsyscall_n32.tbl387 446 n32 landlock_restrict_self sys_landlock_restrict_self
H A Dsyscall_n64.tbl363 446 n64 landlock_restrict_self sys_landlock_restrict_self
/openbmc/linux/tools/perf/arch/mips/entry/syscalls/
H A Dsyscall_n64.tbl363 446 n64 landlock_restrict_self sys_landlock_restrict_self
/openbmc/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
/openbmc/linux/arch/ia64/kernel/syscalls/
H A Dsyscall.tbl369 446 common landlock_restrict_self sys_landlock_restrict_self
/openbmc/qemu/linux-user/x86_64/
H A Dsyscall_64.tbl370 446 common landlock_restrict_self sys_landlock_restrict_self
/openbmc/qemu/linux-user/xtensa/
H A Dsyscall.tbl419 446 common landlock_restrict_self sys_landlock_restrict_self
/openbmc/linux/tools/perf/arch/x86/entry/syscalls/
H A Dsyscall_64.tbl370 446 common landlock_restrict_self sys_landlock_restrict_self
/openbmc/linux/arch/xtensa/kernel/syscalls/
H A Dsyscall.tbl419 446 common landlock_restrict_self sys_landlock_restrict_self
/openbmc/linux/arch/x86/entry/syscalls/
H A Dsyscall_64.tbl370 446 common landlock_restrict_self sys_landlock_restrict_self
/openbmc/linux/Documentation/userspace-api/
H A Dlandlock.rst163 if (landlock_restrict_self(ruleset_fd, 0)) {
170 If the ``landlock_restrict_self`` system call succeeds, the current thread is
/openbmc/qemu/linux-user/sh4/
H A Dsyscall.tbl451 446 common landlock_restrict_self sys_landlock_restrict_self
/openbmc/qemu/linux-user/microblaze/
H A Dsyscall.tbl454 446 common landlock_restrict_self sys_landlock_restrict_self
/openbmc/qemu/linux-user/arm/
H A Dsyscall.tbl462 446 common landlock_restrict_self sys_landlock_restrict_self
/openbmc/qemu/linux-user/m68k/
H A Dsyscall.tbl448 446 common landlock_restrict_self sys_landlock_restrict_self
/openbmc/qemu/linux-user/hppa/
H A Dsyscall.tbl446 446 common landlock_restrict_self sys_landlock_restrict_self
/openbmc/linux/arch/m68k/kernel/syscalls/
H A Dsyscall.tbl448 446 common landlock_restrict_self sys_landlock_restrict_self

12