Lines Matching refs:pattern
352 return container_of(a, struct tomoyo_no_pattern, head)->pattern ==
353 container_of(b, struct tomoyo_no_pattern, head)->pattern;
359 * @pattern: Pathname pattern.
366 static int tomoyo_update_file_pattern_entry(const char *pattern,
372 if (!tomoyo_correct_word(pattern))
374 e.pattern = tomoyo_get_name(pattern);
375 if (!e.pattern)
380 tomoyo_put_name(e.pattern);
389 * Returns pointer to pathname pattern if matched, @filename otherwise.
396 const struct tomoyo_path_info *pattern = NULL;
402 if (!tomoyo_path_matches_pattern(filename, ptr->pattern))
404 pattern = ptr->pattern;
405 if (tomoyo_strendswith(pattern->name, "/\\*")) {
412 if (pattern)
413 filename = pattern;
435 return container_of(a, struct tomoyo_no_rewrite, head)->pattern
437 ->pattern;
443 * @pattern: Pathname pattern that are not rewritable by default.
450 static int tomoyo_update_no_rewrite_entry(const char *pattern,
456 if (!tomoyo_correct_word(pattern))
458 e.pattern = tomoyo_get_name(pattern);
459 if (!e.pattern)
464 tomoyo_put_name(e.pattern);
487 if (!tomoyo_path_matches_pattern(filename, ptr->pattern))