Poster of Linux kernelThe best gift for a Linux geek
TOMOYO-PATTERNIZE

TOMOYO-PATTERNIZE

Section: System Administration Utilities (8) Updated: April 2011
Local index Up
 

NAME

tomoyo-patternize - Convert TOMOYO Linux's pathnames into patterns  

SYNOPSIS

tomoyo-patternize pattern [pattern ...] < old_domain_policy > new_domain_policy  

DESCRIPTION

This program reads domain policy from standard input and replaces pathnames with patterns if the pathname matches to patterns given at commandline and writes to standard output.

Pathnames for execute permission and domainnames won't be replaced.  

EXAMPLES

# tomoyo-patternize '/tmp/php\?\?\?\?\?\?' < /etc/tomoyo/domain_policy.conf > /etc/tomoyo/domain_policy2.conf

Replace pathnames that match /tmp/php\?\?\?\?\?\? pattern with /tmp/php\?\?\?\?\?\? .

# tomoyo-patternize 'file_pattern /tmp/php\?\?\?\?\?\?' < /etc/tomoyo/domain_policy.conf > /etc/tomoyo/domain_policy2.conf

Replace pathnames that match /tmp/php\?\?\?\?\?\? pattern with /tmp/php\?\?\?\?\?\? .

# tomoyo-patternize 'path_group GROUP1 /tmp/php\?\?\?\?\?\?' < /etc/tomoyo/domain_policy.conf > /etc/tomoyo/domain_policy2.conf

Replace pathnames that match /tmp/php\?\?\?\?\?\? pattern with @GROUP1.

# tomoyo-patternize 'number_group GROUP2 0-100' 'number_group GROUP2 100-200'< /etc/tomoyo/domain_policy.conf > /etc/tomoyo/domain_policy2.conf

Replace integers between 0-100 or 100-200 with @GROUP2 .

# tomoyo-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_policy2.conf

Replace ip addresses 127.0.0.1 or 0:0:0:0:0:0:0:1 with @LOCALHOST.
 

AUTHORS


 penguin-kernel _at_ I-love.SAKURA.ne.jp  

COPYRIGHT

Copyright © 2005-2010 NTT DATA CORPORATION.

This program is free software; you may redistribute it under the terms of the GNU General Public License. This program has absolutely no warranty.  

SEE ALSO


 tomoyo-findtemp (8)
 tomoyo-diffpolicy(8)


 

Index

NAME
SYNOPSIS
DESCRIPTION
EXAMPLES
AUTHORS
COPYRIGHT
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 22:02:31 GMT, April 16, 2011