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

Subversion リポジトリの参照

Contents of /trunk/1.8.x/ccs-tools/ccstools/usr_share_man/ccs-notifyd

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4136 - (show annotations) (download)
Thu Nov 11 01:42:23 2010 UTC (13 years, 6 months ago) by kumaneko
File size: 1556 byte(s)


1 #! /bin/sh
2
3 if [ "$1" = "--version" ]
4 then
5 cat << EOF
6 ccs-notifyd 1.8.0
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-notifyd timeout action
17
18 This program detects policy violation in enforcing mode and notify users (e.g. send a mail). You can know the first occurence of policy violation in enforcing mode as soon as possible. You may use this program for holding your judgement of the request that violates policy in enforcing mode provided that you can login to the system and start "ccs-queryd" command for responding within timeout seconds.
19
20 Examples:
21
22 # ccs-notifyd 180 'mail admin@example.com'
23 Wait for 180 seconds before rejecting the request. The occurrence is notified by sending mail to admin@example.com (if SMTP service is available).
24
25 # ccs-notifyd 0 'curl --data-binary @- https://your.server/path_to_cgi'
26 Reject the request immediately. The occurrence is notified by executing curl command.
27
28 EOF
29 else
30 cat << EOF | help2man -i - -N -s 8 -n "Notify TOMOYO Linux's policy violation" $0 | gzip -9 > man8/ccs-notifyd.8.gz
31 [SEE ALSO]
32
33 ccs-queryd (8)
34
35 [NOTES]
36
37 You need to register either path to this program ( /usr/lib/ccs/ccs-notifyd ) or a domain for this program in /proc/ccs/manager before invoking this program if you set non-zero value for timeout.
38
39 [AUTHORS]
40
41 penguin-kernel _at_ I-love.SAKURA.ne.jp
42
43 EOF
44 fi
45 exit 0

Properties

Name Value
svn:executable *

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