Lines Matching refs:pattern
352 return container_of(a, struct tomoyo_no_pattern, head)->pattern == in tomoyo_same_pattern()
353 container_of(b, struct tomoyo_no_pattern, head)->pattern; in tomoyo_same_pattern()
366 static int tomoyo_update_file_pattern_entry(const char *pattern, in tomoyo_update_file_pattern_entry() argument
372 if (!tomoyo_correct_word(pattern)) in tomoyo_update_file_pattern_entry()
374 e.pattern = tomoyo_get_name(pattern); in tomoyo_update_file_pattern_entry()
375 if (!e.pattern) in tomoyo_update_file_pattern_entry()
380 tomoyo_put_name(e.pattern); in tomoyo_update_file_pattern_entry()
396 const struct tomoyo_path_info *pattern = NULL; in tomoyo_pattern() local
402 if (!tomoyo_path_matches_pattern(filename, ptr->pattern)) in tomoyo_pattern()
404 pattern = ptr->pattern; in tomoyo_pattern()
405 if (tomoyo_strendswith(pattern->name, "/\\*")) { in tomoyo_pattern()
412 if (pattern) in tomoyo_pattern()
413 filename = pattern; in tomoyo_pattern()
435 return container_of(a, struct tomoyo_no_rewrite, head)->pattern in tomoyo_same_no_rewrite()
437 ->pattern; in tomoyo_same_no_rewrite()
450 static int tomoyo_update_no_rewrite_entry(const char *pattern, in tomoyo_update_no_rewrite_entry() argument
456 if (!tomoyo_correct_word(pattern)) in tomoyo_update_no_rewrite_entry()
458 e.pattern = tomoyo_get_name(pattern); in tomoyo_update_no_rewrite_entry()
459 if (!e.pattern) in tomoyo_update_no_rewrite_entry()
464 tomoyo_put_name(e.pattern); in tomoyo_update_no_rewrite_entry()
487 if (!tomoyo_path_matches_pattern(filename, ptr->pattern)) in tomoyo_no_rewrite_file()