tomoyo_path_matches_pattern(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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:


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