Home
last modified time | relevance | path

Searched refs:landlock_add_rule (Results 1 – 25 of 43) sorted by relevance

12

/openbmc/linux/tools/testing/selftests/landlock/
H A Dbase_test.c160 ASSERT_EQ(-1, landlock_add_rule(-1, 0, NULL, 1)); in TEST()
164 ASSERT_EQ(-1, landlock_add_rule(-1, 0, NULL, 0)); in TEST()
168 ASSERT_EQ(-1, landlock_add_rule(ruleset_fd, 0, NULL, 0)); in TEST()
172 ASSERT_EQ(-1, landlock_add_rule(ruleset_fd, LANDLOCK_RULE_PATH_BENEATH, in TEST()
177 ASSERT_EQ(-1, landlock_add_rule(ruleset_fd, LANDLOCK_RULE_PATH_BENEATH, in TEST()
185 ASSERT_EQ(0, landlock_add_rule(ruleset_fd, LANDLOCK_RULE_PATH_BENEATH, in TEST()
208 ASSERT_EQ(0, landlock_add_rule(ruleset_fd, LANDLOCK_RULE_PATH_BENEATH, in TEST()
281 landlock_add_rule(ruleset_fd_tx, LANDLOCK_RULE_PATH_BENEATH, in TEST()
H A Dcommon.h91 #ifndef landlock_add_rule
92 static inline int landlock_add_rule(const int ruleset_fd, in landlock_add_rule() function
H A Dfs_test.c447 ASSERT_EQ(-1, landlock_add_rule(ruleset_fd, LANDLOCK_RULE_PATH_BENEATH, in TEST_F_FORK()
455 ASSERT_EQ(-1, landlock_add_rule(ruleset_fd, LANDLOCK_RULE_PATH_BENEATH, in TEST_F_FORK()
465 ASSERT_EQ(0, landlock_add_rule(ruleset_fd, LANDLOCK_RULE_PATH_BENEATH, in TEST_F_FORK()
472 ASSERT_EQ(0, landlock_add_rule(ruleset_fd, LANDLOCK_RULE_PATH_BENEATH, in TEST_F_FORK()
478 ASSERT_EQ(-1, landlock_add_rule(ruleset_fd, LANDLOCK_RULE_PATH_BENEATH, in TEST_F_FORK()
489 ASSERT_EQ(-1, landlock_add_rule(ruleset_fd, LANDLOCK_RULE_PATH_BENEATH, in TEST_F_FORK()
496 ASSERT_EQ(-1, landlock_add_rule(ruleset_fd, LANDLOCK_RULE_PATH_BENEATH, in TEST_F_FORK()
503 ASSERT_EQ(-1, landlock_add_rule(ruleset_fd, LANDLOCK_RULE_PATH_BENEATH, in TEST_F_FORK()
575 ASSERT_EQ(0, landlock_add_rule(ruleset_fd, in TEST_F_FORK()
580 err = landlock_add_rule(ruleset_fd, LANDLOCK_RULE_PATH_BENEATH, in TEST_F_FORK()
[all …]
/openbmc/linux/samples/landlock/
H A Dsandboxer.c33 #ifndef landlock_add_rule
34 static inline int landlock_add_rule(const int ruleset_fd, in landlock_add_rule() function
128 if (landlock_add_rule(ruleset_fd, LANDLOCK_RULE_PATH_BENEATH, in populate_ruleset()
/openbmc/linux/security/landlock/
H A DKconfig15 landlock_add_rule(), and landlock_restrict_self().
H A Dsyscalls.c317 SYSCALL_DEFINE4(landlock_add_rule, const int, ruleset_fd, in SYSCALL_DEFINE4() argument
/openbmc/linux/kernel/
H A Dsys_ni.c169 COND_SYSCALL(landlock_add_rule);
/openbmc/qemu/linux-user/mips64/
H A Dsyscall_n32.tbl386 445 n32 landlock_add_rule sys_landlock_add_rule
H A Dsyscall_n64.tbl362 445 n64 landlock_add_rule sys_landlock_add_rule
/openbmc/linux/tools/perf/arch/mips/entry/syscalls/
H A Dsyscall_n64.tbl362 445 n64 landlock_add_rule sys_landlock_add_rule
/openbmc/linux/arch/mips/kernel/syscalls/
H A Dsyscall_n64.tbl362 445 n64 landlock_add_rule sys_landlock_add_rule
H A Dsyscall_n32.tbl386 445 n32 landlock_add_rule sys_landlock_add_rule
/openbmc/linux/arch/ia64/kernel/syscalls/
H A Dsyscall.tbl368 445 common landlock_add_rule sys_landlock_add_rule
/openbmc/qemu/linux-user/x86_64/
H A Dsyscall_64.tbl369 445 common landlock_add_rule sys_landlock_add_rule
/openbmc/qemu/linux-user/xtensa/
H A Dsyscall.tbl418 445 common landlock_add_rule sys_landlock_add_rule
/openbmc/linux/tools/perf/arch/x86/entry/syscalls/
H A Dsyscall_64.tbl369 445 common landlock_add_rule sys_landlock_add_rule
/openbmc/linux/arch/xtensa/kernel/syscalls/
H A Dsyscall.tbl418 445 common landlock_add_rule sys_landlock_add_rule
/openbmc/linux/arch/x86/entry/syscalls/
H A Dsyscall_64.tbl369 445 common landlock_add_rule sys_landlock_add_rule
/openbmc/qemu/linux-user/sh4/
H A Dsyscall.tbl450 445 common landlock_add_rule sys_landlock_add_rule
/openbmc/qemu/linux-user/microblaze/
H A Dsyscall.tbl453 445 common landlock_add_rule sys_landlock_add_rule
/openbmc/qemu/linux-user/arm/
H A Dsyscall.tbl461 445 common landlock_add_rule sys_landlock_add_rule
/openbmc/qemu/linux-user/m68k/
H A Dsyscall.tbl447 445 common landlock_add_rule sys_landlock_add_rule
/openbmc/qemu/linux-user/hppa/
H A Dsyscall.tbl445 445 common landlock_add_rule sys_landlock_add_rule
/openbmc/linux/arch/m68k/kernel/syscalls/
H A Dsyscall.tbl447 445 common landlock_add_rule sys_landlock_add_rule
/openbmc/linux/arch/arm/tools/
H A Dsyscall.tbl461 445 common landlock_add_rule sys_landlock_add_rule

12