/security/tomoyo/ |
H A D | memory.c | 38 * @ptr: Pointer to allocated memory. 42 * Returns true if @ptr is not NULL and quota not exceeded, false otherwise. 46 bool tomoyo_memory_ok(void *ptr) argument 48 if (ptr) { 49 const size_t s = ksize(ptr); 74 void *ptr = kzalloc(size, GFP_NOFS); local 75 if (tomoyo_memory_ok(ptr)) { 76 memmove(ptr, data, size); 78 return ptr; 80 kfree(ptr); 149 struct tomoyo_name *ptr; local [all...] |
H A D | gc.c | 14 * @ptr: Pointer to allocated memory. 20 static inline void tomoyo_memory_free(void *ptr) argument 22 tomoyo_memory_used[TOMOYO_MEMORY_POLICY] -= ksize(ptr); 23 kfree(ptr); 108 struct tomoyo_transition_control *ptr = local 109 container_of(element, typeof(*ptr), head.list); 110 tomoyo_put_name(ptr->domainname); 111 tomoyo_put_name(ptr->program); 123 struct tomoyo_aggregator *ptr = local 124 container_of(element, typeof(*ptr), hea 138 struct tomoyo_manager *ptr = local 534 struct tomoyo_shared_acl_head *ptr; local 574 struct tomoyo_shared_acl_head *ptr; local [all...] |
H A D | util.c | 253 * @ptr: Pointer to "struct tomoyo_name_union". 258 struct tomoyo_name_union *ptr) 263 ptr->group = tomoyo_get_group(param, TOMOYO_PATH_GROUP); 264 return ptr->group != NULL; 269 ptr->filename = tomoyo_get_name(filename); 270 return ptr->filename != NULL; 277 * @ptr: Pointer to "struct tomoyo_number_union". 282 struct tomoyo_number_union *ptr) 287 memset(ptr, 0, sizeof(*ptr)); 257 tomoyo_parse_name_union(struct tomoyo_acl_param *param, struct tomoyo_name_union *ptr) argument 281 tomoyo_parse_number_union(struct tomoyo_acl_param *param, struct tomoyo_number_union *ptr) argument 661 tomoyo_fill_path_info(struct tomoyo_path_info *ptr) argument 1027 struct tomoyo_acl_info *ptr; local [all...] |
H A D | common.c | 379 * @ptr: Pointer to "struct tomoyo_name_union". 382 const struct tomoyo_name_union *ptr) 385 if (ptr->group) { 387 tomoyo_set_string(head, ptr->group->group_name->name); 389 tomoyo_set_string(head, ptr->filename->name); 397 * @ptr: Pointer to "struct tomoyo_name_union". 402 const struct tomoyo_name_union *ptr) 404 if (ptr->group) { 406 tomoyo_set_string(head, ptr->group->group_name->name); 409 tomoyo_set_string(head, ptr 381 tomoyo_print_name_union(struct tomoyo_io_buffer *head, const struct tomoyo_name_union *ptr) argument 401 tomoyo_print_name_union_quoted(struct tomoyo_io_buffer *head, const struct tomoyo_name_union *ptr) argument 422 tomoyo_print_number_union_nospace(struct tomoyo_io_buffer *head, const struct tomoyo_number_union *ptr) argument 469 tomoyo_print_number_union(struct tomoyo_io_buffer *head, const struct tomoyo_number_union *ptr) argument 487 struct tomoyo_profile *ptr; local 531 struct tomoyo_profile *ptr = ns->profile_ptr[profile]; local 898 struct tomoyo_manager *ptr = local 920 struct tomoyo_manager *ptr; local 1374 struct tomoyo_path_acl *ptr = local 1395 struct tomoyo_task_acl *ptr = local 1403 struct tomoyo_path2_acl *ptr = local 1423 struct tomoyo_path_number_acl *ptr = local 1443 struct tomoyo_mkdev_acl *ptr = local 1465 struct tomoyo_inet_acl *ptr = local 1497 struct tomoyo_unix_acl *ptr = local 1519 struct tomoyo_mount_acl *ptr = local 1527 struct tomoyo_env_acl *ptr = local 1562 struct tomoyo_acl_info *ptr = local 1751 struct tomoyo_acl_head *ptr = local 1813 struct tomoyo_transition_control *ptr = local 1828 struct tomoyo_aggregator *ptr = local 2099 struct tomoyo_query *ptr; local 2151 struct tomoyo_query *ptr = list_entry(tmp, typeof(*ptr), list); local 2168 struct tomoyo_query *ptr = list_entry(tmp, typeof(*ptr), list); local 2205 struct tomoyo_query *ptr = list_entry(tmp, typeof(*ptr), list); local 2213 struct tomoyo_query *ptr = list_entry(tmp, typeof(*ptr), list); local [all...] |
H A D | domain.c | 161 struct tomoyo_acl_info *ptr; local 166 list_for_each_entry_rcu(ptr, list, list) { 167 if (ptr->is_deleted || ptr->type != r->param_type) 169 if (!check_entry(r, ptr)) 171 if (!tomoyo_condition(r, ptr->cond)) 173 r->matched_acl = ptr; 292 const struct tomoyo_transition_control *ptr; local 293 list_for_each_entry_rcu(ptr, list, head.list) { 294 if (ptr 447 struct tomoyo_policy_namespace *ptr; local 709 struct tomoyo_aggregator *ptr; local [all...] |
H A D | network.c | 45 * @ptr: Pointer to "struct tomoyo_ipaddr_union". 50 struct tomoyo_ipaddr_union *ptr) 52 u8 * const min = ptr->ip[0].in6_u.u6_addr8; 53 u8 * const max = ptr->ip[1].in6_u.u6_addr8; 59 ptr->is_ipv6 = false; 61 ptr->ip[1].s6_addr32[0] = ptr->ip[0].s6_addr32[0]; 68 ptr->is_ipv6 = true; 119 * @ptr: Pointer to "struct ipaddr_union". 124 const struct tomoyo_ipaddr_union *ptr) 49 tomoyo_parse_ipaddr_union(struct tomoyo_acl_param *param, struct tomoyo_ipaddr_union *ptr) argument 123 tomoyo_print_ip(char *buf, const unsigned int size, const struct tomoyo_ipaddr_union *ptr) argument 418 tomoyo_check_inet_acl(struct tomoyo_request_info *r, const struct tomoyo_acl_info *ptr) argument 448 tomoyo_check_unix_acl(struct tomoyo_request_info *r, const struct tomoyo_acl_info *ptr) argument [all...] |
H A D | condition.c | 220 * @ptr: Pointer to "struct tomoyo_name_union". 226 const struct tomoyo_name_union *ptr, 237 result = tomoyo_compare_name_union(&exe, ptr); 264 * @ptr: Pointer to "struct tomoyo_name_union". 269 struct tomoyo_name_union *ptr) 273 return tomoyo_parse_name_union(param, ptr); 274 ptr->filename = tomoyo_get_dqword(filename); 275 return ptr->filename != NULL; 395 struct tomoyo_condition *ptr; local 399 ptr 225 tomoyo_scan_exec_realpath(struct file *file, const struct tomoyo_name_union *ptr, const bool match) argument 268 tomoyo_parse_name_union_quoted(struct tomoyo_acl_param *param, struct tomoyo_name_union *ptr) argument 788 const struct tomoyo_name_union *ptr = names_p++; local 1037 const struct tomoyo_number_union *ptr = numbers_p++; local 1043 const struct tomoyo_number_union *ptr = numbers_p++; local [all...] |
H A D | environ.c | 13 * @ptr: Pointer to "struct tomoyo_acl_info". 18 const struct tomoyo_acl_info *ptr) 21 container_of(ptr, typeof(*acl), head); 17 tomoyo_check_env_acl(struct tomoyo_request_info *r, const struct tomoyo_acl_info *ptr) argument
|
H A D | file.c | 62 * @ptr: Pointer to "struct tomoyo_name_union". 66 void tomoyo_put_name_union(struct tomoyo_name_union *ptr) argument 68 tomoyo_put_group(ptr->group); 69 tomoyo_put_name(ptr->filename); 76 * @ptr: Pointer to "struct tomoyo_name_union". 78 * Returns "struct tomoyo_path_info" if @name matches @ptr, NULL otherwise. 82 const struct tomoyo_name_union *ptr) 84 if (ptr->group) 85 return tomoyo_path_matches_group(name, ptr->group); 86 if (tomoyo_path_matches_pattern(name, ptr 81 tomoyo_compare_name_union(const struct tomoyo_path_info *name, const struct tomoyo_name_union *ptr) argument 98 tomoyo_put_number_union(struct tomoyo_number_union *ptr) argument 111 tomoyo_compare_number_union(const unsigned long value, const struct tomoyo_number_union *ptr) argument 250 tomoyo_check_path_acl(struct tomoyo_request_info *r, const struct tomoyo_acl_info *ptr) argument 272 tomoyo_check_path_number_acl(struct tomoyo_request_info *r, const struct tomoyo_acl_info *ptr) argument 292 tomoyo_check_path2_acl(struct tomoyo_request_info *r, const struct tomoyo_acl_info *ptr) argument 311 tomoyo_check_mkdev_acl(struct tomoyo_request_info *r, const struct tomoyo_acl_info *ptr) argument [all...] |
H A D | audit.c | 432 struct tomoyo_log *ptr = NULL; local 439 ptr = list_entry(tomoyo_log.next, typeof(*ptr), list); 440 list_del(&ptr->list); 442 tomoyo_memory_used[TOMOYO_MEMORY_AUDIT] -= ptr->size; 445 if (ptr) { 446 head->read_buf = ptr->log; 448 kfree(ptr);
|
H A D | common.h | 919 const struct tomoyo_number_union *ptr); 929 bool tomoyo_memory_ok(void *ptr); 934 struct tomoyo_ipaddr_union *ptr); 936 struct tomoyo_name_union *ptr); 938 struct tomoyo_number_union *ptr); 953 (const struct tomoyo_path_info *name, const struct tomoyo_name_union *ptr); 1041 void tomoyo_fill_path_info(struct tomoyo_path_info *ptr); 1048 const struct tomoyo_ipaddr_union *ptr); 1051 void tomoyo_put_name_union(struct tomoyo_name_union *ptr); 1052 void tomoyo_put_number_union(struct tomoyo_number_union *ptr); 1166 struct tomoyo_name *ptr = local [all...] |
H A D | securityfs_if.c | 14 * @ptr: Pointer to "struct tomoyo_acl_info". 19 const struct tomoyo_acl_info *ptr) 21 const struct tomoyo_task_acl *acl = container_of(ptr, typeof(*acl), 18 tomoyo_check_task_acl(struct tomoyo_request_info *r, const struct tomoyo_acl_info *ptr) argument
|
H A D | mount.c | 41 * @ptr: Pointer to "struct tomoyo_acl_info". 46 const struct tomoyo_acl_info *ptr) 49 container_of(ptr, typeof(*acl), head); 45 tomoyo_check_mount_acl(struct tomoyo_request_info *r, const struct tomoyo_acl_info *ptr) argument
|
/security/keys/ |
H A D | keyring.c | 623 struct assoc_array_ptr *ptr; local 678 ptr = ACCESS_ONCE(keyring->keys.root); 679 if (!ptr) 682 if (assoc_array_ptr_is_shortcut(ptr)) { 687 shortcut = assoc_array_ptr_to_shortcut(ptr); 692 ptr = ACCESS_ONCE(shortcut->next_node); 693 node = assoc_array_ptr_to_node(ptr); 697 node = assoc_array_ptr_to_node(ptr); 700 ptr = node->slots[0]; 701 if (!assoc_array_ptr_is_meta(ptr)) [all...] |
/security/integrity/ima/ |
H A D | ima_crypto.c | 157 void *ptr; local 165 ptr = (void *)__get_free_pages(gfp_mask, order); 166 if (ptr) { 168 return ptr; 179 ptr = (void *)__get_free_pages(gfp_mask, 0); 180 if (ptr) { 182 return ptr; 191 * @ptr: Pointer to allocated pages. 194 static void ima_free_pages(void *ptr, size_t size) argument 196 if (!ptr) [all...] |
/security/selinux/ss/ |
H A D | conditional.h | 73 int cond_write_bool(void *key, void *datum, void *ptr);
|
H A D | conditional.c | 271 static int cond_insertf(struct avtab *a, struct avtab_key *k, struct avtab_datum *d, void *ptr) argument 273 struct cond_insertf_data *data = ptr; 493 int cond_write_bool(void *vkey, void *datum, void *ptr) argument 497 struct policy_data *pd = ptr;
|
H A D | policydb.c | 2575 static int sens_write(void *vkey, void *datum, void *ptr) argument 2579 struct policy_data *pd = ptr; 2603 static int cat_write(void *vkey, void *datum, void *ptr) argument 2607 struct policy_data *pd = ptr; 2738 static int common_write(void *vkey, void *datum, void *ptr) argument 2742 struct policy_data *pd = ptr; 2833 static int class_write(void *vkey, void *datum, void *ptr) argument 2837 struct policy_data *pd = ptr; 2921 static int role_write(void *vkey, void *datum, void *ptr) argument 2925 struct policy_data *pd = ptr; 2960 type_write(void *vkey, void *datum, void *ptr) argument 3001 user_write(void *vkey, void *datum, void *ptr) argument 3204 hashtab_cnt(void *key, void *data, void *ptr) argument 3212 range_write_helper(void *key, void *data, void *ptr) argument 3268 filename_write_helper(void *key, void *data, void *ptr) argument [all...] |
/security/selinux/ |
H A D | netif.c | 262 unsigned long event, void *ptr) 264 struct net_device *dev = netdev_notifier_info_to_dev(ptr); 261 sel_netif_netdev_notifier_handler(struct notifier_block *this, unsigned long event, void *ptr) argument
|
H A D | selinuxfs.c | 918 char *con = NULL, *user = NULL, *ptr; local 952 ptr = buf + length; 964 memcpy(ptr, newcon, len); 966 ptr += len;
|