xref: /titanic_44/usr/src/cmd/auditd/auditd.xml (revision b7f45089ccbe01bab3d7c7377b49d80d2ae18a69)
1<?xml version="1.0"?>
2<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
3<!--
4 Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
5 Use is subject to license terms.
6
7 CDDL HEADER START
8
9 The contents of this file are subject to the terms of the
10 Common Development and Distribution License, Version 1.0 only
11 (the "License").  You may not use this file except in compliance
12 with the License.
13
14 You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
15 or http://www.opensolaris.org/os/licensing.
16 See the License for the specific language governing permissions
17 and limitations under the License.
18
19 When distributing Covered Code, include this CDDL HEADER in each
20 file and include the License file at usr/src/OPENSOLARIS.LICENSE.
21 If applicable, add the following below this CDDL HEADER, with the
22 fields enclosed by brackets "[]" replaced with your own identifying
23 information: Portions Copyright [yyyy] [name of copyright owner]
24
25 CDDL HEADER END
26
27    ident	"%Z%%M%	%I%	%E% SMI"
28
29    NOTE:  This service manifest is not editable; its contents will
30    be overwritten by package or patch operations, including
31    operating system upgrade.  Make customizations in a different
32    file.
33-->
34
35<service_bundle type='manifest' name='SUNWcsr:auditd'>
36
37<service
38	name='system/auditd'
39	type='service'
40	version='1'>
41
42	<single_instance />
43
44	<dependency
45		name='usr'
46		type='service'
47		grouping='require_all'
48		restart_on='none'>
49		<service_fmri value='svc:/system/filesystem/local' />
50	</dependency>
51
52	<dependency
53		name='ns'
54		type='service'
55		grouping='require_all'
56		restart_on='none'>
57		<service_fmri value='svc:/milestone/name-services' />
58	</dependency>
59
60	<dependency
61		name='syslog'
62		type='service'
63		grouping='require_all'
64		restart_on='none'>
65		<service_fmri value='svc:/system/system-log' />
66	</dependency>
67
68	<dependent
69		name='auditd_multi-user'
70		grouping='optional_all'
71		restart_on='none'>
72		<service_fmri value='svc:/milestone/multi-user'/>
73	</dependent>
74
75	<dependent
76		name='console-login'
77		grouping='optional_all'
78		restart_on='none'>
79		<service_fmri value='svc:/system/console-login'/>
80	</dependent>
81
82	<exec_method
83		type='method'
84		name='start'
85		exec='/lib/svc/method/svc-auditd'
86		timeout_seconds='15'>
87		<method_context>
88			<method_credential user='root' group='root' />
89		</method_context>
90	</exec_method>
91
92	<exec_method
93		type='method'
94		name='refresh'
95		exec=':kill -HUP'
96		timeout_seconds='30'>
97		<method_context>
98			<method_credential user='root' group='root' />
99		</method_context>
100	</exec_method>
101
102	<!--
103		auditd waits for c2audit to quiet down after catching a
104		-TERM before exiting; auditd's timeout is 20 seconds
105	-->
106
107	<exec_method
108		type='method'
109		name='stop'
110		exec=':kill -TERM'
111		timeout_seconds='30'>
112		<method_context>
113			<method_credential user='root' group='root' />
114		</method_context>
115	</exec_method>
116
117	<!-- SIGs HUP, TERM, and USR1 are all expected by auditd -->
118
119	<property_group name='startd' type='framework'>
120		<propval name='ignore_error' type='astring'
121		value='core,signal' />
122	</property_group>
123
124	<property_group name='general' type='framework'>
125		<!-- to start stop auditd -->
126		<propval name='action_authorization' type='astring'
127			value='solaris.audit.config' />
128	</property_group>
129
130	<instance name='default' enabled='false' />
131
132	<stability value='Evolving' />
133
134	<template>
135		<common_name>
136			<loctext xml:lang='C'>
137				Solaris audit daemon
138			</loctext>
139		</common_name>
140		<documentation>
141			<manpage title='auditd'
142				section='1M'
143				manpath='/usr/share/man'/>
144			<manpage title='audit'
145				section='1M'
146				manpath='/usr/share/man'/>
147	         </documentation>
148	</template>
149
150</service>
151
152</service_bundle>
153