Lines Matching refs:opt_list
314 struct ima_rule_opt_list *opt_list; in ima_alloc_rule_opt_list() local
340 opt_list = kzalloc(struct_size(opt_list, items, count), GFP_KERNEL); in ima_alloc_rule_opt_list()
341 if (!opt_list) { in ima_alloc_rule_opt_list()
345 opt_list->count = count; in ima_alloc_rule_opt_list()
358 opt_list->items[i] = cur; in ima_alloc_rule_opt_list()
362 return opt_list; in ima_alloc_rule_opt_list()
365 static void ima_free_rule_opt_list(struct ima_rule_opt_list *opt_list) in ima_free_rule_opt_list() argument
367 if (!opt_list) in ima_free_rule_opt_list()
370 if (opt_list->count) { in ima_free_rule_opt_list()
371 kfree(opt_list->items[0]); in ima_free_rule_opt_list()
372 opt_list->count = 0; in ima_free_rule_opt_list()
375 kfree(opt_list); in ima_free_rule_opt_list()
517 const struct ima_rule_opt_list *opt_list = NULL; in ima_match_rule_data() local
529 opt_list = rule->keyrings; in ima_match_rule_data()
535 opt_list = rule->label; in ima_match_rule_data()
544 for (i = 0; i < opt_list->count; i++) { in ima_match_rule_data()
545 if (!strcmp(opt_list->items[i], func_data)) { in ima_match_rule_data()
2046 const struct ima_rule_opt_list *opt_list) in ima_show_rule_opt_list() argument
2050 for (i = 0; i < opt_list->count; i++) in ima_show_rule_opt_list()
2051 seq_printf(m, "%s%s", i ? "|" : "", opt_list->items[i]); in ima_show_rule_opt_list()