NAME

ccs-editpolicy - policy editor for TOMOYO Linux


SYNOPSIS

ccs-editpolicy [options]

ccs-editpolicy [options] [directory]

ccs-editpolicy [options] [remote_ip:remote_port]


DESCRIPTION

This program is the primary tool for policy management. It provides an ncurses interface for editing either policy saved to disk, or policy currently loaded into kernel memory.

If no directory or remote address is specified, the policy loaded in kernel memory will be edited.

Before this program can be invoked, you must register it in /proc/ccs/manager. After initializing policy, this is usually as simple as rebooting the system.


OPTIONS

e

Set initial screen to be the Exception Policy Editor.

d

Set initial screen to be the Domain Transition Editor [default].

p

Set initial screen to be the Profile Editor.

m

Set initial screen to be the Manager Editor.

s

Set initial screen to be the Statistics.

n

Set initial screen to be the Namespace Selector.

readonly

Start the policy editor in browse-only mode. No editing is allowed.

refresh=integer

Refresh the screen automatically at the interval specified in seconds.

directory

Edit policy stored in the directory/policy/current/ directory, instead of the policy loaded in kernel memory. This must be the full path to the directory.

remote_ip:remote_port

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

<namespace>

Set initial namespace to be the <namespace> namespace [default=<kernel>].


EXAMPLES

Start the policy editor
  ccs-editpolicy
Edit policy stored in the /etc/ccs/192.168.1.1/policy/current directory
  ccs-editpolicy /etc/ccs/192.168.1.1/
Edit policy via an agent connecting to 192.168.1.1 at port 10000
  ccs-editpolicy 192.168.1.1:10000

A usage guide with screenshots is available at <https://tomoyo.sourceforge.net/1.8/tool-editpolicy.html>.


BUGS

If you find any bugs, send an email to <tomoyo-users-en@lists.osdn.me>.


AUTHORS

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

Main author.

Jamie Nguyen <jamie@tomoyolinux.co.uk>

Documentation and website.

Yoshihiro Kusuno <yocto@users.osdn.me>

Line coloring feature.


SEE ALSO

ccs-loadpolicy(8), ccs-editpolicy-agent(8)

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