Searched refs:landlock_restrict_self (Results 1 – 18 of 18) sorted by relevance
/linux/tools/testing/selftests/landlock/ |
H A D | base_test.c | 214 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 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 | sandbox-and-launch.c | 51 if (landlock_restrict_self(ruleset_fd, 0)) { in main()
|
H A D | common.h | 201 ASSERT_EQ(0, landlock_restrict_self(ruleset_fd, 0)) in enforce_ruleset()
|
H A D | ptrace_test.c | 40 EXPECT_EQ(0, landlock_restrict_self(ruleset_fd, 0)); in create_domain()
|
H A D | scoped_abstract_unix_test.c | 43 EXPECT_EQ(0, landlock_restrict_self(ruleset_fd, 0)); in create_fs_domain()
|
/linux/samples/landlock/ |
H A D | sandboxer.c | 48 #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 D | Kconfig | 16 landlock_add_rule(), and landlock_restrict_self().
|
H A D | syscalls.c | 451 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/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/arch/x86/entry/syscalls/ |
H A D | syscall_64.tbl | 372 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
|
H A D | syscall_32.tbl | 454 446 i386 landlock_restrict_self sys_landlock_restrict_self
|
/linux/tools/perf/arch/powerpc/entry/syscalls/ |
H A D | syscall.tbl | 539 446 common landlock_restrict_self sys_landlock_restrict_self
|
/linux/tools/perf/arch/s390/entry/syscalls/ |
H A D | syscall.tbl | 451 446 common landlock_restrict_self sys_landlock_restrict_self sys_landlock_restrict_self
|
/linux/Documentation/userspace-api/ |
H A D | landlock.rst | 211 if (landlock_restrict_self(ruleset_fd, 0)) { 218 If the ``landlock_restrict_self`` system call succeeds, the current thread is
|