Home
last modified time | relevance | path

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

/linux/security/landlock/
H A Dsyscalls.c124 path_beneath_size = sizeof(path_beneath_attr.allowed_access); in build_check_abi()
129 net_port_size = sizeof(net_port_attr.allowed_access);
396 * Informs about useless rule: empty allowed_access (i.e. deny rules) in add_rule_path_beneath()
400 if (!flags && !path_beneath_attr.allowed_access) in add_rule_net_port()
403 /* Checks that allowed_access matches the @ruleset constraints. */ in add_rule_net_port()
405 if ((path_beneath_attr.allowed_access | mask) != mask) in add_rule_net_port()
419 path_beneath_attr.allowed_access, flags); in add_rule_net_port()
437 * Informs about useless rule: empty allowed_access (i.e. deny rules)
441 if (!flags && !net_port_attr.allowed_access)
444 /* Checks that allowed_access matche
[all...]
H A Dfs.c1845 landlock_file(file)->allowed_access = LANDLOCK_MASK_ACCESS_FS; in hook_file_alloc_security()
1859 access_mask_t open_access_request, full_access_request, allowed_access, in hook_file_open() local
1891 allowed_access = full_access_request; in hook_file_open()
1898 allowed_access = full_access_request; in hook_file_open()
1900 allowed_access &= ~layer_masks.layers[i].access; in hook_file_open()
1909 landlock_file(file)->allowed_access = allowed_access; in hook_file_open()
1919 if (access_mask_subset(open_access_request, allowed_access)) in hook_file_open()
1940 if (landlock_file(file)->allowed_access & LANDLOCK_ACCESS_FS_TRUNCATE) in hook_file_truncate()
1962 access_mask_t allowed_access in hook_file_ioctl_common() local
[all...]
H A Dfs.h56 * @allowed_access: Access rights that were available at the time of
61 access_mask_t allowed_access;
55 access_mask_t allowed_access; global() member
/linux/samples/landlock/
H A Dsandboxer.c147 const __u64 allowed_access, __u32 flags) in populate_ruleset_fs()
193 path_beneath.allowed_access = allowed_access; in populate_ruleset_net()
195 path_beneath.allowed_access &= ACCESS_FILE; in populate_ruleset_net()
215 const __u64 allowed_access, __u32 flags) in populate_ruleset_net()
220 .allowed_access = allowed_access, in populate_ruleset_net()
120 populate_ruleset_fs(const char * const env_var,const int ruleset_fd,const __u64 allowed_access) populate_ruleset_fs() argument
188 populate_ruleset_net(const char * const env_var,const int ruleset_fd,const __u64 allowed_access) populate_ruleset_net() argument
/linux/tools/testing/selftests/landlock/
H A Dnet_test.c933 .allowed_access = bind_access | conn_access, in TEST_F()
937 .allowed_access = conn_access, in TEST_F()
962 .allowed_access = bind_access, in TEST_F()
1004 .allowed_access = bind_access | conn_access, in TEST_F()
1008 .allowed_access = bind_access, in TEST_F()
1033 .allowed_access = bind_access, in TEST_F()
1064 .allowed_access = bind_access, in TEST_F()
1167 .allowed_access = connect_right, in TEST_F()
1548 .allowed_access = in TEST_F()
1599 .allowed_access in TEST_F()
[all...]
H A Dtrace.h572 __u64 handled_access, __u64 allowed_access, const char *access_path) in sandbox_child_fs_access()
585 .allowed_access = allowed_access, in sandbox_child_exec_true()
649 .allowed_access = LANDLOCK_ACCESS_FS_EXECUTE |
667 path_beneath.allowed_access = LANDLOCK_ACCESS_FS_EXECUTE;
521 sandbox_child_fs_access(struct __test_metadata * const _metadata,const char * rule_path,__u64 handled_access,__u64 allowed_access,const char * access_path) sandbox_child_fs_access() argument
H A Dtrace_fs_test.c199 .allowed_access = LANDLOCK_ACCESS_FS_READ_FILE, in TEST_F()
260 .allowed_access = LANDLOCK_ACCESS_FS_READ_FILE, in TEST_F()
356 TEST_F(trace_fs, allowed_access) in TEST_F() argument
434 .allowed_access = LANDLOCK_ACCESS_FS_READ_DIR, in TEST_F()
665 .allowed_access = 0, in TEST_F()
H A Dbase_test.c214 .allowed_access = LANDLOCK_ACCESS_FS_EXECUTE, in TEST()
261 .allowed_access = LANDLOCK_ACCESS_FS_EXECUTE, in TEST()
317 .allowed_access = LANDLOCK_ACCESS_FS_EXECUTE, in TEST()
503 .allowed_access = LANDLOCK_ACCESS_FS_READ_DIR,
649 .allowed_access = LANDLOCK_ACCESS_FS_READ_DIR,
682 .allowed_access = LANDLOCK_ACCESS_NET_BIND_TCP,
H A Dtrace_test.c229 .allowed_access = LANDLOCK_ACCESS_FS_READ_DIR, in TEST_F()
320 .allowed_access = LANDLOCK_ACCESS_FS_READ_DIR, in TEST_F()
507 .allowed_access = LANDLOCK_ACCESS_FS_READ_FILE, in TEST_F()
927 .allowed_access = LANDLOCK_ACCESS_NET_BIND_TCP, in TEST_F()
H A Dfs_test.c475 .allowed_access = LANDLOCK_ACCESS_FS_READ_FILE | in TEST_F_FORK()
526 /* Checks unhandled allowed_access. */ in TEST_F_FORK()
532 path_beneath.allowed_access |= LANDLOCK_ACCESS_FS_EXECUTE; in TEST_F_FORK()
536 path_beneath.allowed_access &= ~LANDLOCK_ACCESS_FS_EXECUTE; in TEST_F_FORK()
539 path_beneath.allowed_access |= LANDLOCK_ACCESS_FS_REFER; in TEST_F_FORK()
543 path_beneath.allowed_access &= ~LANDLOCK_ACCESS_FS_REFER; in TEST_F_FORK()
546 path_beneath.allowed_access |= (1ULL << 60); in TEST_F_FORK()
550 path_beneath.allowed_access &= ~(1ULL << 60); in TEST_F_FORK()
553 path_beneath.allowed_access = 0; in TEST_F_FORK()
557 path_beneath.allowed_access in TEST_F_FORK()
725 add_path_beneath(struct __test_metadata * const _metadata,const int ruleset_fd,const __u64 allowed_access,const char * const path,__u32 flags) add_path_beneath() argument
[all...]