2 <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
4 Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
8 The contents of this file are subject to the terms of the
9 Common Development and Distribution License (the "License").
10 You may not use this file except in compliance with the License.
12 You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
13 or http://www.opensolaris.org/os/licensing.
14 See the License for the specific language governing permissions
15 and limitations under the License.
17 When distributing Covered Code, include this CDDL HEADER in each
18 file and include the License file at usr/src/OPENSOLARIS.LICENSE.
19 If applicable, add the following below this CDDL HEADER, with the
20 fields enclosed by brackets "[]" replaced with your own identifying
21 information: Portions Copyright [yyyy] [name of copyright owner]
25 NOTE: This service manifest is not editable; its contents will
26 be overwritten by package or patch operations, including
27 operating system upgrade. Make customizations in a different
31 <service_bundle type='manifest' name='SUNWcsr:auditd'>
43 grouping='require_all'
45 <service_fmri value='svc:/system/filesystem/local' />
51 grouping='require_all'
53 <service_fmri value='svc:/milestone/name-services' />
59 grouping='optional_all'
61 <service_fmri value='svc:/system/system-log' />
67 grouping='optional_all'
69 <service_fmri value='svc:/milestone/multi-user'/>
74 grouping='optional_all'
76 <service_fmri value='svc:/system/console-login'/>
82 exec='/lib/svc/method/svc-auditd'
85 <method_credential user='root' group='root' />
92 exec='/lib/svc/method/svc-auditd'
95 <method_credential user='root' group='root' />
100 auditd waits for c2audit to quiet down after catching a -TERM
101 before exiting; auditd's timeout is 20 seconds
108 timeout_seconds='30'>
110 <method_credential user='root' group='root' />
114 <!-- SIGs HUP, TERM, and USR1 are all expected by auditd -->
115 <property_group name='startd' type='framework'>
116 <propval name='ignore_error' type='astring'
117 value='core,signal' />
120 <property_group name='general' type='framework'>
121 <!-- to start/stop auditd -->
122 <propval name='action_authorization' type='astring'
123 value='solaris.smf.manage.audit' />
124 <propval name='value_authorization' type='astring'
125 value='solaris.smf.manage.audit' />
128 <instance name='default' enabled='false'>
131 System-wide audit preselection flags - see auditconfig(1M)
134 The 'flags' property is the system-wide default set of
135 audit classes that is combined with the per-user audit
136 flags to configure the process audit at login and role
139 The 'naflags' property is the set of audit classes for
140 audit event selection when an event cannot be attributed
141 to an authenticated user.
143 <property_group name='preselection' type='application'>
144 <propval name='flags' type='astring'
146 <propval name='naflags' type='astring'
148 <propval name='read_authorization' type='astring'
149 value='solaris.smf.value.audit' />
150 <propval name='value_authorization' type='astring'
151 value='solaris.smf.value.audit' />
155 Audit Queue Control Properties - see auditconfig(1M)
157 Note, that the default value for all the queue control
158 configuration parameters is 0, which makes auditd(1M) to
159 use current active system parameters.
161 <property_group name='queuectrl' type='application' >
162 <propval name='qbufsz' type='count'
164 <propval name='qdelay' type='count'
166 <propval name='qhiwater' type='count'
168 <propval name='qlowater' type='count'
170 <propval name='read_authorization' type='astring'
171 value='solaris.smf.value.audit' />
172 <propval name='value_authorization' type='astring'
173 value='solaris.smf.value.audit' />
177 Audit Policies - see auditconfig(1M)
179 Note, that "all" and "none" policies available as a
180 auditconfig(1M) policy flags actually means a full/empty set
181 of other policy flags. Thus they are not configurable in the
182 auditd service manifest, but set all the policies to true
183 (all) or false (none).
185 <property_group name='policy' type='application' >
186 <propval name='ahlt' type='boolean'
188 <propval name='arge' type='boolean'
190 <propval name='argv' type='boolean'
192 <propval name='cnt' type='boolean'
194 <propval name='group' type='boolean'
196 <propval name='path' type='boolean'
198 <propval name='perzone' type='boolean'
200 <propval name='public' type='boolean'
202 <propval name='seq' type='boolean'
204 <propval name='trail' type='boolean'
206 <propval name='windata_down' type='boolean'
208 <propval name='windata_up' type='boolean'
210 <propval name='zonename' type='boolean'
212 <propval name='read_authorization' type='astring'
213 value='solaris.smf.value.audit' />
214 <propval name='value_authorization' type='astring'
215 value='solaris.smf.value.audit' />
219 Plugins to configure where to send the audit trail - see
220 auditconfig(1M), audit_binfile(5), audit_remote(5),
223 Each plugin type property group has properties:
225 'active' is a boolean which defines whether or not
228 'path' is a string which defines name of the
229 plugin's shared object in the file system.
230 Relative paths assume a prefix of
231 "/usr/lib/security/$ISA"
233 'qsize' is an integer which defines a plugin specific
234 maximum number of records that auditd will queue
235 for it. A zero (0) value indicates not defined.
236 This overrides the system's active queue control
239 and various attributes as defined on the plugin's man page
241 <property_group name='audit_binfile' type='plugin' >
242 <propval name='active' type='boolean'
244 <propval name='path' type='astring'
245 value='audit_binfile.so' />
246 <propval name='qsize' type='count'
248 <propval name='p_dir' type='astring'
249 value='/var/audit' />
250 <propval name='p_minfree' type='count'
252 <propval name='p_fsize' type='count'
254 <property name='read_authorization' type='astring'>
256 <value_node value='solaris.smf.manage.audit' />
257 <value_node value='solaris.smf.value.audit' />
260 <propval name='value_authorization' type='astring'
261 value='solaris.smf.value.audit' />
264 <property_group name='audit_syslog' type='plugin' >
265 <propval name='active' type='boolean'
267 <propval name='path' type='astring'
268 value='audit_syslog.so' />
269 <propval name='qsize' type='count'
271 <propval name='p_flags' type='astring'
273 <property name='read_authorization' type='astring'>
275 <value_node value='solaris.smf.manage.audit' />
276 <value_node value='solaris.smf.value.audit' />
279 <propval name='value_authorization' type='astring'
280 value='solaris.smf.value.audit' />
283 <property_group name='audit_remote' type='plugin' >
284 <propval name='active' type='boolean'
286 <propval name='path' type='astring'
287 value='audit_remote.so' />
288 <propval name='qsize' type='count'
290 <propval name='p_hosts' type='astring'
292 <propval name='p_retries' type='count'
294 <propval name='p_timeout' type='count'
296 <property name='read_authorization' type='astring'>
298 <value_node value='solaris.smf.manage.audit' />
299 <value_node value='solaris.smf.value.audit' />
302 <propval name='value_authorization' type='astring'
303 value='solaris.smf.value.audit' />
308 <stability value='Evolving' />
312 <loctext xml:lang='C'>
317 <manpage title='auditd'
319 manpath='/usr/share/man'/>
320 <manpage title='audit'
322 manpath='/usr/share/man'/>
323 <manpage title='auditconfig'
325 manpath='/usr/share/man'/>
326 <manpage title='audit_flags'
328 manpath='/usr/share/man'/>
329 <manpage title='audit_binfile'
331 manpath='/usr/share/man'/>
332 <manpage title='audit_syslog'
334 manpath='/usr/share/man'/>
335 <manpage title='audit_remote'
337 manpath='/usr/share/man'/>