TOMOYO-PATTERNIZE(8) System Administration Utilities TOMOYO-PATTERNIZE(8)NAME
tomoyo-patternize - utility to convert pathnames in policy into patterns
SYNOPSIS
tomoyo-patternize
tomoyo-patternize [configfile]
DESCRIPTION
This program reads domain policy from standard input and replaces pathnames with patterns. Replacement rules are defined in
/etc/tomoyo/tools/patternize.conf. The resulting policy is sent to standard output and is useful to shorten and simplify domain or
exception policy.
Pathnames used for domain names themselves will not be replaced. Only the first matching rule is used for any particular pathname. If a
pathname does not match any rules, it is left unchanged.
EXAMPLES
Replace "proc:/self/fd/0" with "proc:/self/fd/$"
rewrite path_pattern proc:/self/fd/$
Replace "proc:/123/status" with "proc/$/status"
rewrite head_pattern proc:/$
Replace "dev(8,1):/etc/mtab~456" with "dev(8,1):/etc/mtab~$"
rewrite tail_pattern /etc/mtab~$
Replace "/tmp/phpZjk1k3" with @GROUP1
rewrite path_pattern /tmp/php?????? @GROUP1
Replace integers between 0-100 or 100-200 with @GROUP2
rewrite number_pattern 0-100 @GROUP2
rewrite number_pattern 100-200 @GROUP2
Replace loopback addresses with @LOCALHOST
rewrite address_pattern 127.0.0.1 @LOCALHOST
rewrite address_pattern 0:0:0:0:0:0:0:1 @LOCALHOST
See the configuration file for more information on rule syntax.
BUGS
If you find any bugs, send an email to <tomoyo-users-en@lists.sourceforge.jp>.
AUTHORS
Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Main author.
Jamie Nguyen <jamie@tomoyolinux.co.uk>
Documentation and website.
SEE ALSO tomoyo-findtemp(8), tomoyo-diffpolicy(8)
See <http://tomoyo.sourceforge.jp> for more information.
tomoyo-tools 2.5.0 2012-04-14 TOMOYO-PATTERNIZE(8)
Check Out this Related Man Page
TOMOYO-INIT(8) System Administration Utilities TOMOYO-INIT(8)NAME
tomoyo-init - load TOMOYO Linux policy automatically
SYNOPSIS
tomoyo-init
DESCRIPTION
When /sbin/init starts, the kernel automatically calls this program. Policy files that have been saved to disk are subsequently loaded into
kernel memory.
This program copies the following files:
/etc/tomoyo/exception_policy.conf => /sys/kernel/security/tomoyo/exception_policy
/etc/tomoyo/domain_policy.conf => /sys/kernel/security/tomoyo/domain_policy
/etc/tomoyo/profile.conf => /sys/kernel/security/tomoyo/profile
/etc/tomoyo/manager.conf => /sys/kernel/security/tomoyo/manager
/etc/tomoyo/stat.conf => /sys/kernel/security/tomoyo/stat
If /etc/tomoyo/tomoyo-post-init exists and is executable, then it will also be executed. This allows additional control over what happens
at startup.
You will not usually need to invoke this program manually.
EXAMPLES
Contents of "/etc/tomoyo/tomoyo-post-init" allowing non-root "demo" user to edit policy
#!/bin/bash
echo manage_by_non_root > /sys/kernel/security/tomoyo/manager
chown -R demo /sys/kernel/security/tomoyo
BUGS
If you find any bugs, send an email to <tomoyo-users-en@lists.sourceforge.jp>.
AUTHORS
Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Main author.
Jamie Nguyen <jamie@tomoyolinux.co.uk>
Documentation and website.
SEE ALSO tomoyo-loadpolicy(8)
See <http://tomoyo.sourceforge.jp> for more information.
tomoyo-tools 2.5.0 2012-04-14 TOMOYO-INIT(8)
Hi
Can anyone tell me how can rewrite a line in a file by using line number? I tried to use sed by failed to do so.
For example
HELLO
179.390 111.560
HOW TO DO
WHAT TO DO
to become
HELLO
200 3000
HOW TO DO
WHAT TO DO (21 Replies)
I wanted to Replace if 20th Char is space then Replace by X ..
12345678901234567890
AAAA HEXW PROGRM01 (Ended by 3 Spaces ) Followed by junk(can be spaces als)
BBBB HEXW PROGRM01 A0121225001 (Ended by 3 Spaces)Followed by junk
I have Tired some thing of this sort ...
cat... (4 Replies)
I am attempting to convert rewrite rules to Nginx, and since due to the mass amount of rewrites we must convert, I've been trying to write a script to help me on a specific part, easily.
So far I have this:
rewrite ^action/static/(+)/$ staticPage.php?pg=$1&%$query_string;
What I want done... (5 Replies)
I am having 4 field in a file
name age date status
i want to update or rewrite a value of status with another value
how it can be done
i used awk & sed but it shows result but not updating in original file
help me out...
Thanks (4 Replies)
Replace and retain entries.
I have a certain users that will replaced a certain values, but if it has already a value it will retain its values.
Thanks
Data to be placed:
account_locked = false
loginretries = 0
pwdwarntime = 0
... (4 Replies)
Hello,
I'm trying to replace the first x number of spaces in a line with a |. Right now I'm using a very inefficient syntax to accomplish the task and was looking to simplify it.
I have several cases were the pipes need to replace just the first space on the line, which I did a simple... (11 Replies)
Hi
I have a file which has aroun 200 line and it is like this:
GROUP2-WDI">GROUP2-WDI
GROUP3-WDI">GROUP3-WDI
KL2P0508BC">KL2P0508BC
KL2P0508BIT">KL2P0508BIT
KL3P0506BC">KL3P0506BC
KL3P0506BUS">KL3P0506BUS
KLD1F0507DBT">KLD1F0507DBT
KLD1F0507DIT">KLD1F0507DIT
KLD1F0510DBT">KLD1F0510DBT... (3 Replies)
Hi,
I have been having issues with sendmail service on the AIX server recently with header rewrite on few random email generated from the scripts or programs.
I'm not sure what is causing as rest of the emails from the sever is generating correctly?
AIX Server --> GATEWAY SERVER(Serv2smtp)... (4 Replies)
I have a file whose output words are always like this:
aaaa
bbbb
cccc
dddd. Trying to arrange the data so that there are 2 columns such that the 1st word become the 1st column like this:
aaaa aaaa
aaaa bbbb
aaaa cccc
aaaa dddd Trying to use awk... (8 Replies)
Hello,
I have added following rewrite cond and rewrite rules but it does not work.
RewriteCond %{HTTP_REFERER} ^http://192\.168\.1\.150/categories/.*$
RewriteRule ^(.*)$ http://www.blahblah.com/
When I hit url : http://192.168.1.150/categories/881-Goes?page=7 in my browser - it... (2 Replies)
Hello,
I want to Replace/Remove ^M and the new line that follows it in a delimited file.
So far I have tried following and nothing seems to work for me .
Tr –d ‘\r\n’ < old.dat > new.dat -removes all the linefeed, not just the ones after a ^M.
Sed ‘/^M$/{N; s/.\n//;}’ < old.dat >... (7 Replies)
I have a log file which lists groups and users in the following format
GROUP1
user1
user2
user3
GROUP2
user4
user5
user6
GROUP3
user7
user8
I need to change the format to:
user1|GROUP1
user2|GROUP1
user3|GROUP1
user4|GROUP2 (3 Replies)
First of all, apologies if this has already been answered elsewhere. I haven't quite been able to find what I'm looking for yet, so hopefully this won't come across as repetition.
I have a file consisting of ~100 nearly identical lines, each of which contains multiple instances of the string I... (11 Replies)