Home
last modified time | relevance | path

Searched refs:allowed_access (Results 1 – 9 of 9) sorted by relevance

/openbmc/linux/samples/landlock/
H A Dsandboxer.c88 const __u64 allowed_access) in populate_ruleset() argument
132 path_beneath.allowed_access = allowed_access; in populate_ruleset()
134 path_beneath.allowed_access &= ACCESS_FILE; in populate_ruleset()
/openbmc/linux/security/landlock/
H A Dfs.c1210 landlock_file(file)->allowed_access = LANDLOCK_MASK_ACCESS_FS; in hook_file_alloc_security()
1217 access_mask_t open_access_request, full_access_request, allowed_access; in hook_file_open() local
1242 allowed_access = full_access_request; in hook_file_open()
1252 allowed_access = 0; in hook_file_open()
1256 allowed_access |= BIT_ULL(access_bit); in hook_file_open()
1266 landlock_file(file)->allowed_access = allowed_access; in hook_file_open()
1268 if ((open_access_request & allowed_access) == open_access_request) in hook_file_open()
1286 if (landlock_file(file)->allowed_access & LANDLOCK_ACCESS_FS_TRUNCATE) in hook_file_truncate()
H A Dsyscalls.c100 path_beneath_size = sizeof(path_beneath_attr.allowed_access); in build_check_abi()
355 if (!path_beneath_attr.allowed_access) { in SYSCALL_DEFINE4()
363 if ((path_beneath_attr.allowed_access | ruleset->fs_access_masks[0]) != in SYSCALL_DEFINE4()
376 path_beneath_attr.allowed_access); in SYSCALL_DEFINE4()
H A Dfs.h54 access_mask_t allowed_access; member
/openbmc/linux/drivers/char/tpm/
H A Dtpm_tis_spi_cr50.c81 unsigned long allowed_access = phy->last_access + phy->access_delay; in cr50_ensure_access_delay() local
91 if (time_in_range_open(time_now, phy->last_access, allowed_access)) { in cr50_ensure_access_delay()
92 unsigned long remaining, timeout = allowed_access - time_now; in cr50_ensure_access_delay()
/openbmc/linux/include/uapi/linux/
H A Dlandlock.h69 __u64 allowed_access; member
/openbmc/linux/tools/testing/selftests/landlock/
H A Dbase_test.c151 .allowed_access = LANDLOCK_ACCESS_FS_EXECUTE, in TEST()
198 .allowed_access = LANDLOCK_ACCESS_FS_EXECUTE, in TEST()
264 .allowed_access = LANDLOCK_ACCESS_FS_READ_DIR, in TEST()
H A Dfs_test.c431 .allowed_access = LANDLOCK_ACCESS_FS_READ_FILE | in TEST_F_FORK()
488 path_beneath.allowed_access |= LANDLOCK_ACCESS_FS_EXECUTE; in TEST_F_FORK()
492 path_beneath.allowed_access &= ~LANDLOCK_ACCESS_FS_EXECUTE; in TEST_F_FORK()
495 path_beneath.allowed_access |= LANDLOCK_ACCESS_FS_REFER; in TEST_F_FORK()
499 path_beneath.allowed_access &= ~LANDLOCK_ACCESS_FS_REFER; in TEST_F_FORK()
502 path_beneath.allowed_access |= (1ULL << 60); in TEST_F_FORK()
506 path_beneath.allowed_access &= ~(1ULL << 60); in TEST_F_FORK()
509 path_beneath.allowed_access = 0; in TEST_F_FORK()
513 path_beneath.allowed_access &= ~(1ULL << 60); in TEST_F_FORK()
574 path_beneath_dir.allowed_access = access; in TEST_F_FORK()
[all …]
/openbmc/linux/Documentation/userspace-api/
H A Dlandlock.rst120 .allowed_access =
144 ``allowed_access`` rights are already available in ABI 1.