Searched refs:allowed_access (Results 1 - 9 of 9) sorted by relevance
/kernel/linux/linux-6.6/security/landlock/ |
H A D | fs.c | 1202 landlock_file(file)->allowed_access = LANDLOCK_MASK_ACCESS_FS; in hook_file_alloc_security() 1209 access_mask_t open_access_request, full_access_request, allowed_access; in hook_file_open() local 1234 allowed_access = full_access_request; in hook_file_open() 1241 * Add each access right to allowed_access which has not been in hook_file_open() 1244 allowed_access = 0; in hook_file_open() 1248 allowed_access |= BIT_ULL(access_bit); in hook_file_open() 1258 landlock_file(file)->allowed_access = allowed_access; in hook_file_open() 1260 if ((open_access_request & allowed_access) == open_access_request) in hook_file_open() 1278 if (landlock_file(file)->allowed_access in hook_file_truncate() [all...] |
H A D | syscalls.c | 100 path_beneath_size = sizeof(path_beneath_attr.allowed_access); in build_check_abi() 307 * &landlock_path_beneath_attr.allowed_access is not a subset of the 309 * - %ENOMSG: Empty accesses (e.g. &landlock_path_beneath_attr.allowed_access); 352 * Informs about useless rule: empty allowed_access (i.e. deny rules) in SYSCALL_DEFINE4() 355 if (!path_beneath_attr.allowed_access) { in SYSCALL_DEFINE4() 360 * Checks that allowed_access matches the @ruleset constraints 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 D | fs.h | 49 * @allowed_access: Access rights that were available at the time of 54 access_mask_t allowed_access; member
|
/kernel/linux/linux-6.6/samples/landlock/ |
H A D | sandboxer.c | 85 const __u64 allowed_access) in populate_ruleset() 125 path_beneath.allowed_access = allowed_access; in populate_ruleset() 127 path_beneath.allowed_access &= ACCESS_FILE; in populate_ruleset() 84 populate_ruleset(const char *const env_var, const int ruleset_fd, const __u64 allowed_access) populate_ruleset() argument
|
/kernel/linux/linux-5.10/drivers/char/tpm/ |
H A D | tpm_tis_spi_cr50.c | 78 unsigned long allowed_access = phy->last_access + phy->access_delay; in cr50_ensure_access_delay() local 88 if (time_in_range_open(time_now, phy->last_access, allowed_access)) { in cr50_ensure_access_delay() 89 unsigned long remaining, timeout = allowed_access - time_now; in cr50_ensure_access_delay()
|
/kernel/linux/linux-6.6/drivers/char/tpm/ |
H A D | tpm_tis_spi_cr50.c | 81 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()
|
/kernel/linux/linux-6.6/tools/testing/selftests/landlock/ |
H A D | base_test.c | 150 .allowed_access = LANDLOCK_ACCESS_FS_EXECUTE, in TEST() 197 .allowed_access = LANDLOCK_ACCESS_FS_EXECUTE, in TEST() 263 .allowed_access = LANDLOCK_ACCESS_FS_READ_DIR, in TEST()
|
H A D | fs_test.c | 431 .allowed_access = LANDLOCK_ACCESS_FS_READ_FILE | in TEST_F_FORK() 482 /* Checks unhandled allowed_access. */ 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 in TEST_F_FORK() 610 add_path_beneath(struct __test_metadata *const _metadata, const int ruleset_fd, const __u64 allowed_access, const char *const path) add_path_beneath() argument [all...] |
/kernel/linux/linux-6.6/include/uapi/linux/ |
H A D | landlock.h | 66 * @allowed_access: Bitmask of allowed actions for this file hierarchy 69 __u64 allowed_access; member
|
Completed in 8 milliseconds