Searched refs:layer_masks (Results 1 – 4 of 4) sorted by relevance
| /linux/security/landlock/ |
| A D | fs.c | 587 if (WARN_ON_ONCE(!layer_masks)) in scope_to_request() 591 (*layer_masks)[access_bit] = 0; in scope_to_request() 592 return !memchr_inv(layer_masks, 0, sizeof(*layer_masks)); in scope_to_request() 604 &layer_masks)); in test_scope_to_request_with_exec_none() 621 &layer_masks)); in test_scope_to_request_with_exec_some() 659 if (!layer_masks) in is_eacces() 663 if ((*layer_masks)[access_bit]) in is_eacces() 678 IE_FALSE(&layer_masks, 0); in test_is_eacces_with_none() 690 IE_FALSE(&layer_masks, 0); in test_is_eacces_with_refer() 702 IE_FALSE(&layer_masks, 0); in test_is_eacces_with_write() [all …]
|
| A D | net.c | 52 layer_mask_t layer_masks[LANDLOCK_NUM_ACCESS_NET] = {}; in current_check_access_socket() local 151 dom, access_request, &layer_masks, LANDLOCK_KEY_NET_PORT); in current_check_access_socket() 152 if (landlock_unmask_layers(rule, access_request, &layer_masks, in current_check_access_socket() 153 ARRAY_SIZE(layer_masks))) in current_check_access_socket()
|
| A D | ruleset.c | 624 layer_mask_t (*const layer_masks)[], in landlock_unmask_layers() argument 629 if (!access_request || !layer_masks) in landlock_unmask_layers() 659 (*layer_masks)[access_bit] &= ~layer_bit; in landlock_unmask_layers() 660 is_empty = is_empty && !(*layer_masks)[access_bit]; in landlock_unmask_layers() 690 layer_mask_t (*const layer_masks)[], in landlock_init_layer_masks() argument 715 memset(layer_masks, 0, in landlock_init_layer_masks() 716 array_size(sizeof((*layer_masks)[0]), num_access)); in landlock_init_layer_masks() 731 (*layer_masks)[access_bit] |= in landlock_init_layer_masks()
|
| A D | ruleset.h | 388 layer_mask_t (*const layer_masks)[], 394 layer_mask_t (*const layer_masks)[],
|
Completed in 14 milliseconds