NAME

tomoyo-loadpolicy - load TOMOYO Linux manually


SYNOPSIS

tomoyo-loadpolicy [option]

tomoyo-loadpolicy [option] [directory] [remote_ip:remote_port]


DESCRIPTION

This program reads TOMOYO Linux policy from standard input and loads it into the kernel.


OPTIONS

e

Load exception policy from /etc/tomoyo/exception_policy.conf.

d

Load domain policy from /etc/tomoyo/domain_policy.conf.

a

Load exception policy and domain policy. [default]

p

Load profile from /etc/tomoyo/profile.conf.

m

Load manager from /etc/tomoyo/manager.conf.

u

Load meminfo from /etc/tomoyo/meminfo.conf.

f

Erase policy loaded in memory before loading policy from the file. This can be used with the e, d, and a options.

-

Read policy from standard input. This can bs used with the e, d, m, and u options.

directory

Load policy stored in the directory directory, instead of the default /etc/tomoyo directory. This must be the full path to the directory.

remote_ip:remote_port

Write to policy on a remote system via an agent waiting at port remote_port on IP address remote_ip.


EXAMPLES

Append a line to exception policy
  echo "allow_read /proc/meminfo | tomoyo-loadpolicy -e
Remove a line from exception policy
  echo "delete allow_read /proc/meminfo" | tomoyo-loadpolicy -e
Append a line to domain policy
  ( echo "<kernel>"; echo "allow_execute /sbin/init" ) | tomoyo-loadpolicy -d
Replace currently loaded domain policy with /etc/tomoyo/domain_policy.conf
  tomoyo-loadpolicy df
Append to policy remotely from the specified directory
  tomoyo-loadpolicy d /etc/tomoyo/192.168.1.1/ 192.168.1.1:10000


BUGS

If you find any bugs, send an email to <tomoyo-users_en@lists.sourceforge.net>.


AUTHORS

Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>

Main author.

Jamie Nguyen <jamie@tomoyolinux.co.uk>

Documentation and website.


SEE ALSO

tomoyo-savepolicy(8), tomoyo-editpolicy(8), tomoyo-editpolicy-agent(8), tomoyo-init(8)

See <https://tomoyo.sourceforge.net> for more information.