tomoyo-patternize - utility to convert pathnames in policy into patterns
tomoyo-patternize pattern
This program reads domain policy from standard input and replaces pathnames with patterns. The resulting policy is sent to standard output and is useful to shorten and simplify domain or exception policy.
This will not replace pathnames used for domain names themselves, or for execute permissions.
/tmp/phpfk30dk with /tmp/php\?\?\?\?\?\?tomoyo-patternize '/tmp/php\?\?\?\?\?\?' < /etc/tomoyo/domain_policy.conf > /etc/tomoyo/domain_policy.conf.new
/tmp/phpfk30dk with /tmp/php\?\?\?\?\?\?tomoyo-patternize 'file_pattern /tmp/php\?\?\?\?\?\?' < /etc/tomoyo/domain_policy.conf > /etc/tomoyo/domain_policy.conf.new
/tmp/phpZjk1k3 with @GROUP1tomoyo-patternize 'path_group GROUP1 /tmp/php\?\?\?\?\?\?' < /etc/tomoyo/domain_policy.conf > /etc/tomoyo/domain_policy.conf.new
@GROUP2tomoyo-patternize 'number_group GROUP2 0-100' 'number_group GROUP2 100-200' < /etc/tomoyo/domain_policy.conf > /etc/tomoyo/domain_policy.conf.new
@LOCALHOSTtomoyo-patternize 'address_group LOCALHOST 127.0.0.1' 'address_group LOCALHOST 0:0:0:0:0:0:0:1' < /etc/tomoyo/domain_policy.conf > /etc/tomoyo/domain_policy.conf.new
If you find any bugs, send an email to <tomoyo-users_en@lists.sourceforge.net>.
Main author.
Documentation and website.
tomoyo-findtemp(8), tomoyo-diffpolicy(8)
See <https://tomoyo.sourceforge.net> for more information.