Home
last modified time | relevance | path

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

/linux-6.15/tools/perf/tests/workloads/
H A Dlandlock.c27 __u64 allowed_access; member
38 __u64 allowed_access; member
48 .allowed_access = LANDLOCK_ACCESS_FS_READ_FILE, in landlock()
54 .allowed_access = LANDLOCK_ACCESS_NET_CONNECT_TCP, in landlock()
/linux-6.15/tools/testing/selftests/landlock/
H A Dnet_test.c701 .allowed_access = LANDLOCK_ACCESS_NET_BIND_TCP, in TEST_F()
740 .allowed_access = LANDLOCK_ACCESS_NET_BIND_TCP, in TEST_F()
1134 .allowed_access = LANDLOCK_ACCESS_NET_BIND_TCP, in TEST_F()
1327 net_port.allowed_access = access; in TEST_F()
1372 net_port.allowed_access = access; in TEST_F()
1399 net_port.allowed_access = access; in TEST_F()
1424 .allowed_access = 0, in TEST_F()
1428 .allowed_access = LANDLOCK_ACCESS_NET_BIND_TCP, in TEST_F()
1459 .allowed_access = LANDLOCK_ACCESS_NET_BIND_TCP, in TEST_F()
1467 .allowed_access = LANDLOCK_ACCESS_NET_BIND_TCP, in TEST_F()
[all …]
H A Dbase_test.c195 .allowed_access = LANDLOCK_ACCESS_FS_EXECUTE, in TEST()
242 .allowed_access = LANDLOCK_ACCESS_FS_EXECUTE, in TEST()
390 .allowed_access = LANDLOCK_ACCESS_FS_READ_DIR, in TEST()
H A Dfs_test.c478 .allowed_access = LANDLOCK_ACCESS_FS_READ_FILE | in TEST_F_FORK()
542 path_beneath.allowed_access |= LANDLOCK_ACCESS_FS_REFER; in TEST_F_FORK()
549 path_beneath.allowed_access |= (1ULL << 60); in TEST_F_FORK()
553 path_beneath.allowed_access &= ~(1ULL << 60); in TEST_F_FORK()
556 path_beneath.allowed_access = 0; in TEST_F_FORK()
560 path_beneath.allowed_access &= ~(1ULL << 60); in TEST_F_FORK()
622 path_beneath_dir.allowed_access = access; in TEST_F_FORK()
627 path_beneath_file.allowed_access = access; in TEST_F_FORK()
675 path_beneath.allowed_access = access; in TEST_F_FORK()
704 path_beneath.allowed_access = access; in TEST_F_FORK()
[all …]
/linux-6.15/security/landlock/
H A Dsyscalls.c108 path_beneath_size = sizeof(path_beneath_attr.allowed_access); in build_check_abi()
113 net_port_size = sizeof(net_port_attr.allowed_access); in build_check_abi()
333 if (!path_beneath_attr.allowed_access) in add_rule_path_beneath()
338 if ((path_beneath_attr.allowed_access | mask) != mask) in add_rule_path_beneath()
348 path_beneath_attr.allowed_access); in add_rule_path_beneath()
369 if (!net_port_attr.allowed_access) in add_rule_net_port()
374 if ((net_port_attr.allowed_access | mask) != mask) in add_rule_net_port()
383 net_port_attr.allowed_access); in add_rule_net_port()
H A Dfs.c1604 landlock_file(file)->allowed_access = LANDLOCK_MASK_ACCESS_FS; in hook_file_alloc_security()
1618 access_mask_t open_access_request, full_access_request, allowed_access, in hook_file_open() local
1650 allowed_access = full_access_request; in hook_file_open()
1660 allowed_access = 0; in hook_file_open()
1664 allowed_access |= BIT_ULL(access_bit); in hook_file_open()
1674 landlock_file(file)->allowed_access = allowed_access; in hook_file_open()
1681 if ((open_access_request & allowed_access) == open_access_request) in hook_file_open()
1702 if (landlock_file(file)->allowed_access & LANDLOCK_ACCESS_FS_TRUNCATE) in hook_file_truncate()
1723 access_mask_t allowed_access = landlock_file(file)->allowed_access; in hook_file_ioctl_common() local
1731 if (allowed_access & LANDLOCK_ACCESS_FS_IOCTL_DEV) in hook_file_ioctl_common()
H A Dfs.h58 access_mask_t allowed_access; member
/linux-6.15/samples/landlock/
H A Dsandboxer.c116 const __u64 allowed_access) in populate_ruleset_fs() argument
162 path_beneath.allowed_access = allowed_access; in populate_ruleset_fs()
164 path_beneath.allowed_access &= ACCESS_FILE; in populate_ruleset_fs()
184 const __u64 allowed_access) in populate_ruleset_net() argument
189 .allowed_access = allowed_access, in populate_ruleset_net()
/linux-6.15/include/uapi/linux/
H A Dlandlock.h155 __u64 allowed_access; member
178 __u64 allowed_access; member
/linux-6.15/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()
/linux-6.15/Documentation/userspace-api/
H A Dlandlock.rst155 .allowed_access =
179 ``allowed_access`` rights are already available in ABI 1.
187 .allowed_access = LANDLOCK_ACCESS_NET_CONNECT_TCP,