Searched refs:layer_masks (Results 1 – 8 of 8) sorted by relevance
| /security/landlock/ |
| A D | audit.c | 234 get_denied_layer(&dom, &access, &layer_masks, in test_get_denied_layer() 235 sizeof(layer_masks))); in test_get_denied_layer() 240 get_denied_layer(&dom, &access, &layer_masks, in test_get_denied_layer() 241 sizeof(layer_masks))); in test_get_denied_layer() 247 sizeof(layer_masks))); in test_get_denied_layer() 253 sizeof(layer_masks))); in test_get_denied_layer() 261 sizeof(layer_masks))); in test_get_denied_layer() 267 sizeof(layer_masks))); in test_get_denied_layer() 364 if (WARN_ON_ONCE(!(!!request->layer_masks ^ in is_valid_request() 368 if (WARN_ON_ONCE(request->layer_masks || in is_valid_request() [all …]
|
| A D | fs.c | 570 return !memchr_inv(layer_masks, 0, sizeof(*layer_masks)); in is_layer_masks_allowed() 585 if (WARN_ON_ONCE(!layer_masks)) in scope_to_request() 589 (*layer_masks)[access_bit] = 0; in scope_to_request() 603 &layer_masks)); in test_scope_to_request_with_exec_none() 620 &layer_masks)); in test_scope_to_request_with_exec_some() 658 if (!layer_masks) in is_eacces() 677 IE_FALSE(&layer_masks, 0); in test_is_eacces_with_none() 689 IE_FALSE(&layer_masks, 0); in test_is_eacces_with_refer() 701 IE_FALSE(&layer_masks, 0); in test_is_eacces_with_write() 1663 ARRAY_SIZE(layer_masks)) { in hook_file_open() [all …]
|
| A D | net.c | 50 layer_mask_t layer_masks[LANDLOCK_NUM_ACCESS_NET] = {}; in current_check_access_socket() local 179 access_request, &layer_masks, in current_check_access_socket() 181 if (landlock_unmask_layers(rule, access_request, &layer_masks, in current_check_access_socket() 182 ARRAY_SIZE(layer_masks))) in current_check_access_socket() 192 .layer_masks = &layer_masks, in current_check_access_socket() 193 .layer_masks_size = ARRAY_SIZE(layer_masks), in current_check_access_socket()
|
| A D | ruleset.c | 618 layer_mask_t (*const layer_masks)[], in landlock_unmask_layers() argument 623 if (!access_request || !layer_masks) in landlock_unmask_layers() 653 (*layer_masks)[access_bit] &= ~layer_bit; in landlock_unmask_layers() 654 is_empty = is_empty && !(*layer_masks)[access_bit]; in landlock_unmask_layers() 684 layer_mask_t (*const layer_masks)[], in landlock_init_layer_masks() argument 709 memset(layer_masks, 0, in landlock_init_layer_masks() 710 array_size(sizeof((*layer_masks)[0]), num_access)); in landlock_init_layer_masks() 725 (*layer_masks)[access_bit] |= in landlock_init_layer_masks()
|
| A D | domain.c | 185 const layer_mask_t (*const layer_masks)[], in landlock_get_deny_masks() argument 196 if (WARN_ON_ONCE(!layer_masks)) in landlock_get_deny_masks() 203 const layer_mask_t mask = (*layer_masks)[access_bit]; in landlock_get_deny_masks()
|
| A D | ruleset.h | 306 layer_mask_t (*const layer_masks)[], 312 layer_mask_t (*const layer_masks)[],
|
| A D | audit.h | 46 const layer_mask_t (*layer_masks)[]; member
|
| A D | domain.h | 125 const layer_mask_t (*const layer_masks)[],
|
Completed in 18 milliseconds