| /linux/tools/testing/selftests/landlock/ |
| H A D | tsync_test.c | 40 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 D | base_test.c | 258 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 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 | audit_test.c | 100 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 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 | 42 EXPECT_EQ(0, landlock_restrict_self(ruleset_fd, 0)); in create_domain()
|
| H A D | scoped_abstract_unix_test.c | 44 EXPECT_EQ(0, landlock_restrict_self(ruleset_fd, 0)); in create_fs_domain()
|
| H A D | fs_test.c | 567 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 D | sandboxer.c | 51 #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 D | Kconfig | 16 landlock_add_rule(), and landlock_restrict_self().
|
| H A D | syscalls.c | 487 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 D | landlock.rst | 199 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 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/tools/scripts/ |
| H A D | syscall.tbl | 389 446 common landlock_restrict_self sys_landlock_restrict_self
|
| /linux/tools/perf/arch/s390/entry/syscalls/ |
| H A D | syscall.tbl | 375 446 common landlock_restrict_self sys_landlock_restrict_self
|
| /linux/tools/perf/arch/sh/entry/syscalls/ |
| H A D | syscall.tbl | 452 446 common landlock_restrict_self sys_landlock_restrict_self
|
| /linux/tools/perf/arch/xtensa/entry/syscalls/ |
| H A D | syscall.tbl | 419 446 common landlock_restrict_self sys_landlock_restrict_self
|
| /linux/tools/perf/arch/x86/entry/syscalls/ |
| H A D | syscall_64.tbl | 373 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/sparc/entry/syscalls/ |
| H A D | syscall.tbl | 494 446 common landlock_restrict_self sys_landlock_restrict_self
|
| /linux/tools/perf/arch/arm/entry/syscalls/ |
| H A D | syscall.tbl | 463 446 common 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
|