---
name: "ccs-savepolicy"
section: "8"
platform: "linux"
package: "tomoyo-ccstools1.7"
version: "1.7.2-20100401-3"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/ccs-savepolicy"
---

# ccs-savepolicy(8)

Save TOMOYO Linux's policy

## NAME

ccs-savepolicy - Save TOMOYO Linux's policy

## SYNOPSIS

**ccs-savepolicy** \[*e*\]\[*d*\]\[*a*\]\[*f*\]\[*p*\]\[*m*\]\[*u*\] \[*{-\|policy\_dir}* \[*remote\_ip:remote\_port*\]\]

## DESCRIPTION

This program saves TOMOYO Linux's policy from kernel into files.

- e

  Save exception policy. ( /proc/ccs/exception\_policy =\> policy\_dir/exception\_policy.conf )

- d

  Save domain policy. ( /proc/ccs/domain\_policy =\> policy\_dir/domain\_policy.conf )

- a

  Save exception policy and domain policy. This is default.

- p

  Save profile. ( /proc/ccs/profile =\> policy\_dir/profile.conf )

- m

  Save manager. ( /proc/ccs/manager =\> policy\_dir/manager.conf )

- u

  Print meminfo. Implies '-' option. ( /proc/ccs/meminfo )

- f

  Forcefully save even if the on-memory policy and the on-disk policy are identical.

- \-

  Write policy to stdout. Specify only one of "edpmu" option when you use this option.

- policy\_dir

  Save policy files into policy\_dir directory. Must starts with / . Default is none if remote\_ip:remote\_port is specified, /etc/ccs/ otherwise.

- remote\_ip:remote\_port

  Receive policy from agent listening at specified IP address and port number.

## EXAMPLES

\# ccs-savepolicy

-

  Save exception policy and domain policy.

\# ccs-savepolicy e

-

  Save exception policy.

\# ccs-savepolicy /etc/ccs/192.168.1.1/ 192.168.1.1:10000

-

  Receive policy from 192.168.1.1:10000 and save into /etc/ccs/192.168.1.1/ directory.

## 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

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