Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/landlock/
H A Dtsync_test.c40 ASSERT_EQ(0, landlock_restrict_self(ruleset_fd, in TEST()
78 EXPECT_EQ(0, landlock_restrict_self(ruleset_fd, in TEST()
109 EXPECT_EQ(0, landlock_restrict_self(ruleset_fd, 0)); in TEST()
112 EXPECT_EQ(0, landlock_restrict_self(ruleset_fd, in TEST()
132 d->result = landlock_restrict_self(d->ruleset_fd, in thread_restrict()
236 EXPECT_EQ(0, landlock_restrict_self(ruleset_fd, in TEST()
318 ret = landlock_restrict_self(-1, variant->flags); in TEST_F()
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 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()
181 if (landlock_restrict_self(data->ruleset_fd, 0)) { in thread_audit_test()
314 ASSERT_EQ(0, landlock_restrict_self(ruleset_fd, 0)); in FIXTURE_VARIANT_ADD()
336 ASSERT_EQ(0, landlock_restrict_self( in FIXTURE_SETUP()
347 ASSERT_EQ(0, landlock_restrict_self(ruleset_fd, 0)); in FIXTURE_TEARDOWN()
388 landlock_restrict_self(-1, in TEST_F()
394 if (landlock_restrict_self(data->ruleset_fd, 0)) { in TEST_F()
415 if (landlock_restrict_self(data->ruleset_fd, 0)) { in TEST_F()
494 ASSERT_EQ(0, landlock_restrict_self( in FIXTURE_VARIANT_ADD()
[all...]
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.c42 EXPECT_EQ(0, landlock_restrict_self(ruleset_fd, 0)); in create_domain()
H A Dscoped_abstract_unix_test.c44 EXPECT_EQ(0, landlock_restrict_self(ruleset_fd, 0)); in create_fs_domain()
H A Dfs_test.c567 ASSERT_EQ(0, landlock_restrict_self(ruleset_fd, 0)); in TEST_F_FORK()
861 ASSERT_EQ(-1, landlock_restrict_self(ruleset_fd, 0)); in TEST_F_FORK()
1448 err = landlock_restrict_self(ruleset_fd, 0); in TEST_F_FORK()
/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
527 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.c487 SYSCALL_DEFINE2(landlock_restrict_self, const int, ruleset_fd, const __u32, in SYSCALL_DEFINE2()
478 SYSCALL_DEFINE2(landlock_restrict_self,const int,ruleset_fd,const __u32,flags) SYSCALL_DEFINE2() argument
/linux/Documentation/userspace-api/
H A Dlandlock.rst199 When passing a non-zero ``flags`` argument to ``landlock_restrict_self()``, a
219 * WARNING: Without this flag, calling landlock_restrict_self(2) is
245 if (landlock_restrict_self(ruleset_fd, restrict_flags)) {
252 If the ``landlock_restrict_self`` system call succeeds, the current thread is
/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/s390/entry/syscalls/
H A Dsyscall.tbl375 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/xtensa/entry/syscalls/
H A Dsyscall.tbl419 446 common landlock_restrict_self sys_landlock_restrict_self
/linux/tools/perf/arch/x86/entry/syscalls/
H A Dsyscall_64.tbl373 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/sparc/entry/syscalls/
H A Dsyscall.tbl494 446 common landlock_restrict_self sys_landlock_restrict_self
/linux/tools/perf/arch/arm/entry/syscalls/
H A Dsyscall.tbl463 446 common 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