Home
last modified time | relevance | path

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

/linux/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/tools/testing/selftests/landlock/
H A Dnet_test.c645 .allowed_access = LANDLOCK_ACCESS_NET_BIND_TCP | in TEST_F()
650 .allowed_access = LANDLOCK_ACCESS_NET_CONNECT_TCP, in TEST_F()
695 .allowed_access = LANDLOCK_ACCESS_NET_BIND_TCP | in TEST_F()
700 .allowed_access = LANDLOCK_ACCESS_NET_BIND_TCP, in TEST_F()
739 .allowed_access = LANDLOCK_ACCESS_NET_BIND_TCP, in TEST_F()
820 .allowed_access = LANDLOCK_ACCESS_NET_CONNECT_TCP, in TEST_F()
994 .allowed_access = LANDLOCK_ACCESS_NET_BIND_TCP | in TEST_F()
1133 .allowed_access = LANDLOCK_ACCESS_NET_BIND_TCP, in TEST_F()
1137 .allowed_access = LANDLOCK_ACCESS_NET_BIND_TCP | in TEST_F()
1209 .allowed_access = LANDLOCK_ACCESS_NET_BIND_TCP, in TEST_F()
[all …]
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()
/linux/security/landlock/
H A Dsyscalls.c105 path_beneath_size = sizeof(path_beneath_attr.allowed_access); in build_check_abi()
110 net_port_size = sizeof(net_port_attr.allowed_access); in build_check_abi()
312 if (!path_beneath_attr.allowed_access) in add_rule_path_beneath()
317 if ((path_beneath_attr.allowed_access | mask) != mask) in add_rule_path_beneath()
327 path_beneath_attr.allowed_access); in add_rule_path_beneath()
348 if (!net_port_attr.allowed_access) in add_rule_net_port()
353 if ((net_port_attr.allowed_access | mask) != mask) in add_rule_net_port()
362 net_port_attr.allowed_access); in add_rule_net_port()
H A Dfs.c1491 landlock_file(file)->allowed_access = LANDLOCK_MASK_ACCESS_FS; in hook_file_alloc_security()
1505 access_mask_t open_access_request, full_access_request, allowed_access, in hook_file_open() local
1536 allowed_access = full_access_request; in hook_file_open()
1546 allowed_access = 0; in hook_file_open()
1550 allowed_access |= BIT_ULL(access_bit); in hook_file_open()
1560 landlock_file(file)->allowed_access = allowed_access; in hook_file_open()
1562 if ((open_access_request & allowed_access) == open_access_request) in hook_file_open()
1580 if (landlock_file(file)->allowed_access & LANDLOCK_ACCESS_FS_TRUNCATE) in hook_file_truncate()
1588 access_mask_t allowed_access = landlock_file(file)->allowed_access; in hook_file_ioctl() local
1596 if (allowed_access & LANDLOCK_ACCESS_FS_IOCTL_DEV) in hook_file_ioctl()
[all …]
H A Dfs.h55 access_mask_t allowed_access; member
/linux/samples/landlock/
H A Dsandboxer.c115 const __u64 allowed_access) in populate_ruleset_fs() argument
161 path_beneath.allowed_access = allowed_access; in populate_ruleset_fs()
163 path_beneath.allowed_access &= ACCESS_FILE; in populate_ruleset_fs()
183 const __u64 allowed_access) in populate_ruleset_net() argument
188 .allowed_access = allowed_access, in populate_ruleset_net()
/linux/include/uapi/linux/
H A Dlandlock.h93 __u64 allowed_access; member
116 __u64 allowed_access; member
/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()
/linux/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,