オープンソース・ソフトウェアの開発とダウンロード

Subversion リポジトリの参照

Contents of /branches/ccs-tools/ccstools/usr_share_man/ccs-editpolicy

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3871 - (show annotations) (download)
Sun Aug 1 01:42:05 2010 UTC (13 years, 10 months ago) by kumaneko
File size: 1967 byte(s)


1 #! /bin/sh
2
3 if [ "$1" = "--version" ]
4 then
5 cat << EOF
6 ccs-editpolicy 1.8.0-pre
7
8 Copyright (C) 2005-2010 NTT DATA CORPORATION.
9
10 This program is free software; you may redistribute it under the terms of
11 the GNU General Public License. This program has absolutely no warranty.
12 EOF
13 elif [ "$1" = "--help" ]
14 then
15 cat << EOF
16 Usage: ccs-editpolicy [{e|d|p|m|u}] [readonly] [refresh=interval] [policy_dir|remote_ip:remote_port]
17
18 This program edits TOMOYO Linux's policy currently loaded in the kernel.
19
20 e Set initial screen to exception policy editor.
21
22 d Set initial screen to domain policy editor. This is default.
23
24 p Set initial screen to profile editor.
25
26 m Set initial screen to manager editor.
27
28 u Set initial screen to memory usage.
29
30 readonly Browse mode. No editing is allowed.
31
32 refresh=interval Reload automatically for every interval seconds.
33
34 policy_dir Edit policy files stored in policy_dir directory instead for policy currently loaded. Must starts with / .
35
36 remote_ip:remote_port Edit policy via agent listening at specified IP address and port number.
37
38 Examples:
39
40 # ccs-editpolicy
41 Start policy editor with domain policy editor screen.
42
43 # ccs-editpolicy /etc/ccs/192.168.1.1/
44 Edit policy stored in /etc/ccs/192.168.1.1/ directory.
45
46 # ccs-editpolicy 192.168.1.1:10000
47 Edit policy via connecting to 192.168.1.1:10000 .
48
49 Usage with images are available at http://tomoyo.sourceforge.jp/1.7/tool-editpolicy.html
50
51 EOF
52 else
53 cat << EOF | help2man -i - -N -s 8 -n "Edit TOMOYO Linux's policy" $0 | gzip -9 > man8/ccs-editpolicy.8.gz
54 [SEE ALSO]
55
56 ccs-loadpolicy (8)
57 ccs-editpolicy-agent (8)
58
59 [NOTES]
60
61 You need to register either path to this program ( /usr/sbin/ccs-editpolicy ) or a domain for this program in /proc/ccs/manager before invoking this program.
62
63 [AUTHORS]
64
65 penguin-kernel _at_ I-love.SAKURA.ne.jp
66
67 Line coloring feature is made by Yoshihiro Kusuno <yocto _at_ users.sourceforge.jp>.
68
69 EOF
70 fi
71 exit 0

Properties

Name Value
svn:executable *

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26