Home
last modified time | relevance | path

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

/linux-6.12.1/tools/perf/tests/workloads/
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.12.1/tools/testing/selftests/landlock/
Dnet_test.c549 .allowed_access = LANDLOCK_ACCESS_NET_BIND_TCP | in TEST_F()
554 .allowed_access = LANDLOCK_ACCESS_NET_CONNECT_TCP, in TEST_F()
599 .allowed_access = LANDLOCK_ACCESS_NET_BIND_TCP | in TEST_F()
604 .allowed_access = LANDLOCK_ACCESS_NET_BIND_TCP, in TEST_F()
643 .allowed_access = LANDLOCK_ACCESS_NET_BIND_TCP, in TEST_F()
724 .allowed_access = LANDLOCK_ACCESS_NET_CONNECT_TCP, in TEST_F()
898 .allowed_access = LANDLOCK_ACCESS_NET_BIND_TCP | in TEST_F()
1037 .allowed_access = LANDLOCK_ACCESS_NET_BIND_TCP, in TEST_F()
1041 .allowed_access = LANDLOCK_ACCESS_NET_BIND_TCP | in TEST_F()
1113 .allowed_access = LANDLOCK_ACCESS_NET_BIND_TCP, in TEST_F()
[all …]
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()
Dfs_test.c459 .allowed_access = LANDLOCK_ACCESS_FS_READ_FILE | in TEST_F_FORK()
516 path_beneath.allowed_access |= LANDLOCK_ACCESS_FS_EXECUTE; in TEST_F_FORK()
520 path_beneath.allowed_access &= ~LANDLOCK_ACCESS_FS_EXECUTE; in TEST_F_FORK()
523 path_beneath.allowed_access |= LANDLOCK_ACCESS_FS_REFER; in TEST_F_FORK()
527 path_beneath.allowed_access &= ~LANDLOCK_ACCESS_FS_REFER; in TEST_F_FORK()
530 path_beneath.allowed_access |= (1ULL << 60); in TEST_F_FORK()
534 path_beneath.allowed_access &= ~(1ULL << 60); in TEST_F_FORK()
537 path_beneath.allowed_access = 0; in TEST_F_FORK()
541 path_beneath.allowed_access &= ~(1ULL << 60); in TEST_F_FORK()
603 path_beneath_dir.allowed_access = access; in TEST_F_FORK()
[all …]
/linux-6.12.1/security/landlock/
Dsyscalls.c104 path_beneath_size = sizeof(path_beneath_attr.allowed_access); in build_check_abi()
109 net_port_size = sizeof(net_port_attr.allowed_access); in build_check_abi()
328 if (!path_beneath_attr.allowed_access) in add_rule_path_beneath()
333 if ((path_beneath_attr.allowed_access | mask) != mask) in add_rule_path_beneath()
343 path_beneath_attr.allowed_access); in add_rule_path_beneath()
364 if (!net_port_attr.allowed_access) in add_rule_net_port()
369 if ((net_port_attr.allowed_access | mask) != mask) in add_rule_net_port()
378 net_port_attr.allowed_access); in add_rule_net_port()
Dfs.c1487 landlock_file(file)->allowed_access = LANDLOCK_MASK_ACCESS_FS; in hook_file_alloc_security()
1501 access_mask_t open_access_request, full_access_request, allowed_access, in hook_file_open() local
1532 allowed_access = full_access_request; in hook_file_open()
1542 allowed_access = 0; in hook_file_open()
1546 allowed_access |= BIT_ULL(access_bit); in hook_file_open()
1556 landlock_file(file)->allowed_access = allowed_access; in hook_file_open()
1558 if ((open_access_request & allowed_access) == open_access_request) in hook_file_open()
1576 if (landlock_file(file)->allowed_access & LANDLOCK_ACCESS_FS_TRUNCATE) in hook_file_truncate()
1584 access_mask_t allowed_access = landlock_file(file)->allowed_access; in hook_file_ioctl() local
1592 if (allowed_access & LANDLOCK_ACCESS_FS_IOCTL_DEV) in hook_file_ioctl()
[all …]
Dfs.h54 access_mask_t allowed_access; member
/linux-6.12.1/samples/landlock/
Dsandboxer.c112 const __u64 allowed_access) in populate_ruleset_fs() argument
154 path_beneath.allowed_access = allowed_access; in populate_ruleset_fs()
156 path_beneath.allowed_access &= ACCESS_FILE; in populate_ruleset_fs()
176 const __u64 allowed_access) in populate_ruleset_net() argument
181 .allowed_access = allowed_access, in populate_ruleset_net()
/linux-6.12.1/include/uapi/linux/
Dlandlock.h93 __u64 allowed_access; member
116 __u64 allowed_access; member
/linux-6.12.1/drivers/char/tpm/
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.12.1/Documentation/userspace-api/
Dlandlock.rst155 .allowed_access =
179 ``allowed_access`` rights are already available in ABI 1.
187 .allowed_access = LANDLOCK_ACCESS_NET_CONNECT_TCP,