tomoyo_path_matches_pattern(9)
okay bestie, welcome to the tomoyo_path_matches_pattern(9) glow-up β this is the Kernel API Manual entry, and we're reading it together like a very focused group chat. π
β¨
πΈ NAME πΈ
tomoyo_path_matches_pattern β check whether the given filename matches the given pattern. π
β¨ SYNOPSIS β¨
bool tomoyo_path_matches_pattern (const struct tomoyo_path_info
*filename , const struct tomoyo_path_info *pattern );
π«Ά ARGUMENTS π«Ά
filenameβ the filename to check. πpatternβ the pattern to compare. π§
π DESCRIPTION π
Returns true if matches, false otherwise. literally the vibe check of this whole function. β
π
Okay so the following patterns are available β here's the cheat sheet, no cap:
\β itself.\oooβ octal representation of a byte.*β zero or more repetitions of characters other than'/'.\*β zero or more repetitions of characters other than'/'or'.'.$β one or more repetitions of decimal digits.+β 1 decimal digit.Xβ one or more repetitions of hexadecimal digits.xβ 1 hexadecimal digit.0β one or more repetitions of alphabet characters.1β 1 alphabet character.-β subtraction operator./dir/β'/'+'One or more repetitions of dir/'(e.g./dir//dir/dir//dir/dir/dir/).
π SEE ALSO π
Kernel file: ./security/tomoyo/util.c.
Peep these too, bestie:
tomoyo_convert_time(9)tomoyo_permstr(9)tomoyo_read_token(9)tomoyo_get_domainname(9)tomoyo_parse_ulong(9)tomoyo_print_ulong(9)tomoyo_parse_name_union(9)tomoyo_parse_number_union(9)tomoyo_byte_range(9)tomoyo_alphabet_char(9)tomoyo_make_byte(9)tomoyo_valid(9)tomoyo_invalid(9)tomoyo_str_starts(9)tomoyo_normalize_line(9)tomoyo_correct_word2(9)tomoyo_correct_word(9)tomoyo_correct_path2(9)tomoyo_correct_path(9)tomoyo_correct_domain(9)tomoyo_domain_def(9)tomoyo_find_domain(9)tomoyo_const_part_length(9)tomoyo_fill_path_info(9)tomoyo_file_matches_pattern2(9)tomoyo_file_matches_pattern(9)tomoyo_path_matches_pattern2(9)tomoyo_get_exe(9)tomoyo_get_mode(9)tomoyo_init_request_info(9)tomoyo_domain_quota_is_ok(9)
source/version: ./security/tomoyo Β· date: October 2026 Β· manual: tomoyo_path_matches_pattern(9) β byeee, drink water, and may your filename always match the right pattern π«Άπβ¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms