xref: /illumos-gate/usr/src/cmd/auditd/auditd.xml (revision 8523fda3525b37e02f4d11efc8cf763bf08204ec)
17c478bd9Sstevel@tonic-gate<?xml version="1.0"?>
27c478bd9Sstevel@tonic-gate<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
37c478bd9Sstevel@tonic-gate<!--
4d670ce0bSMarek Pospisil Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
57c478bd9Sstevel@tonic-gate Use is subject to license terms.
67c478bd9Sstevel@tonic-gate
77c478bd9Sstevel@tonic-gate CDDL HEADER START
87c478bd9Sstevel@tonic-gate
97c478bd9Sstevel@tonic-gate The contents of this file are subject to the terms of the
10d670ce0bSMarek Pospisil Common Development and Distribution License (the "License").
11d670ce0bSMarek Pospisil You may not use this file except in compliance with the License.
127c478bd9Sstevel@tonic-gate
137c478bd9Sstevel@tonic-gate You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
147c478bd9Sstevel@tonic-gate or http://www.opensolaris.org/os/licensing.
157c478bd9Sstevel@tonic-gate See the License for the specific language governing permissions
167c478bd9Sstevel@tonic-gate and limitations under the License.
177c478bd9Sstevel@tonic-gate
187c478bd9Sstevel@tonic-gate When distributing Covered Code, include this CDDL HEADER in each
197c478bd9Sstevel@tonic-gate file and include the License file at usr/src/OPENSOLARIS.LICENSE.
207c478bd9Sstevel@tonic-gate If applicable, add the following below this CDDL HEADER, with the
217c478bd9Sstevel@tonic-gate fields enclosed by brackets "[]" replaced with your own identifying
227c478bd9Sstevel@tonic-gate information: Portions Copyright [yyyy] [name of copyright owner]
237c478bd9Sstevel@tonic-gate
247c478bd9Sstevel@tonic-gate CDDL HEADER END
257c478bd9Sstevel@tonic-gate
267c478bd9Sstevel@tonic-gate    NOTE:  This service manifest is not editable; its contents will
277c478bd9Sstevel@tonic-gate    be overwritten by package or patch operations, including
287c478bd9Sstevel@tonic-gate    operating system upgrade.  Make customizations in a different
297c478bd9Sstevel@tonic-gate    file.
307c478bd9Sstevel@tonic-gate-->
317c478bd9Sstevel@tonic-gate
327c478bd9Sstevel@tonic-gate<service_bundle type='manifest' name='SUNWcsr:auditd'>
337c478bd9Sstevel@tonic-gate
347c478bd9Sstevel@tonic-gate<service
357c478bd9Sstevel@tonic-gate	name='system/auditd'
367c478bd9Sstevel@tonic-gate	type='service'
377c478bd9Sstevel@tonic-gate	version='1'>
387c478bd9Sstevel@tonic-gate
397c478bd9Sstevel@tonic-gate	<single_instance />
407c478bd9Sstevel@tonic-gate
417c478bd9Sstevel@tonic-gate	<dependency
427c478bd9Sstevel@tonic-gate		name='usr'
437c478bd9Sstevel@tonic-gate		type='service'
447c478bd9Sstevel@tonic-gate		grouping='require_all'
457c478bd9Sstevel@tonic-gate		restart_on='none'>
467c478bd9Sstevel@tonic-gate		<service_fmri value='svc:/system/filesystem/local' />
477c478bd9Sstevel@tonic-gate	</dependency>
487c478bd9Sstevel@tonic-gate
497c478bd9Sstevel@tonic-gate	<dependency
507c478bd9Sstevel@tonic-gate		name='ns'
517c478bd9Sstevel@tonic-gate		type='service'
527c478bd9Sstevel@tonic-gate		grouping='require_all'
537c478bd9Sstevel@tonic-gate		restart_on='none'>
547c478bd9Sstevel@tonic-gate		<service_fmri value='svc:/milestone/name-services' />
557c478bd9Sstevel@tonic-gate	</dependency>
567c478bd9Sstevel@tonic-gate
577c478bd9Sstevel@tonic-gate	<dependency
587c478bd9Sstevel@tonic-gate		name='syslog'
597c478bd9Sstevel@tonic-gate		type='service'
60d670ce0bSMarek Pospisil		grouping='optional_all'
617c478bd9Sstevel@tonic-gate		restart_on='none'>
627c478bd9Sstevel@tonic-gate		<service_fmri value='svc:/system/system-log' />
637c478bd9Sstevel@tonic-gate	</dependency>
647c478bd9Sstevel@tonic-gate
65*8523fda3SJan Friedel
667c478bd9Sstevel@tonic-gate	<dependent
67*8523fda3SJan Friedel		name='multi-user'
687c478bd9Sstevel@tonic-gate		grouping='optional_all'
697c478bd9Sstevel@tonic-gate		restart_on='none'>
707c478bd9Sstevel@tonic-gate		<service_fmri value='svc:/milestone/multi-user'/>
717c478bd9Sstevel@tonic-gate	</dependent>
727c478bd9Sstevel@tonic-gate
737c478bd9Sstevel@tonic-gate	<dependent
747c478bd9Sstevel@tonic-gate		name='console-login'
757c478bd9Sstevel@tonic-gate		grouping='optional_all'
767c478bd9Sstevel@tonic-gate		restart_on='none'>
777c478bd9Sstevel@tonic-gate		<service_fmri value='svc:/system/console-login'/>
787c478bd9Sstevel@tonic-gate	</dependent>
797c478bd9Sstevel@tonic-gate
80*8523fda3SJan Friedel
817c478bd9Sstevel@tonic-gate	<exec_method
827c478bd9Sstevel@tonic-gate		type='method'
837c478bd9Sstevel@tonic-gate		name='start'
847c478bd9Sstevel@tonic-gate		exec='/lib/svc/method/svc-auditd'
857c478bd9Sstevel@tonic-gate		timeout_seconds='15'>
867c478bd9Sstevel@tonic-gate		<method_context>
877c478bd9Sstevel@tonic-gate			<method_credential user='root' group='root' />
887c478bd9Sstevel@tonic-gate		</method_context>
897c478bd9Sstevel@tonic-gate	</exec_method>
907c478bd9Sstevel@tonic-gate
917c478bd9Sstevel@tonic-gate	<exec_method
927c478bd9Sstevel@tonic-gate		type='method'
937c478bd9Sstevel@tonic-gate		name='refresh'
94*8523fda3SJan Friedel		exec='/lib/svc/method/svc-auditd'
957c478bd9Sstevel@tonic-gate		timeout_seconds='30'>
967c478bd9Sstevel@tonic-gate		<method_context>
977c478bd9Sstevel@tonic-gate			<method_credential user='root' group='root' />
987c478bd9Sstevel@tonic-gate		</method_context>
997c478bd9Sstevel@tonic-gate	</exec_method>
1007c478bd9Sstevel@tonic-gate
1017c478bd9Sstevel@tonic-gate	<!--
102*8523fda3SJan Friedel	  auditd waits for c2audit to quiet down after catching a -TERM
103*8523fda3SJan Friedel	  before exiting; auditd's timeout is 20 seconds
1047c478bd9Sstevel@tonic-gate	-->
1057c478bd9Sstevel@tonic-gate
1067c478bd9Sstevel@tonic-gate	<exec_method
1077c478bd9Sstevel@tonic-gate		type='method'
1087c478bd9Sstevel@tonic-gate		name='stop'
1097c478bd9Sstevel@tonic-gate		exec=':kill -TERM'
1107c478bd9Sstevel@tonic-gate		timeout_seconds='30'>
1117c478bd9Sstevel@tonic-gate		<method_context>
1127c478bd9Sstevel@tonic-gate			<method_credential user='root' group='root' />
1137c478bd9Sstevel@tonic-gate		</method_context>
1147c478bd9Sstevel@tonic-gate	</exec_method>
1157c478bd9Sstevel@tonic-gate
1167c478bd9Sstevel@tonic-gate	<!-- SIGs HUP, TERM, and USR1 are all expected by auditd -->
1177c478bd9Sstevel@tonic-gate	<property_group name='startd' type='framework'>
1187c478bd9Sstevel@tonic-gate		<propval name='ignore_error' type='astring'
1197c478bd9Sstevel@tonic-gate			value='core,signal' />
1207c478bd9Sstevel@tonic-gate	</property_group>
1217c478bd9Sstevel@tonic-gate
1227c478bd9Sstevel@tonic-gate	<property_group name='general' type='framework'>
123*8523fda3SJan Friedel		<!-- to start/stop auditd -->
1247c478bd9Sstevel@tonic-gate		<propval name='action_authorization' type='astring'
1257c478bd9Sstevel@tonic-gate			value='solaris.audit.config' />
12616f0fd39SJan Friedel		<propval name='value_authorization' type='astring'
12716f0fd39SJan Friedel			value='solaris.audit.config' />
1287c478bd9Sstevel@tonic-gate	</property_group>
1297c478bd9Sstevel@tonic-gate
130*8523fda3SJan Friedel
131*8523fda3SJan Friedel	<instance name='default' enabled='false'>
132*8523fda3SJan Friedel
133*8523fda3SJan Friedel	<!--
134*8523fda3SJan Friedel	  Audit Queue Control Properties - see auditconfig(1M)
135*8523fda3SJan Friedel
136*8523fda3SJan Friedel	    Note, that the default value for all the queue control
137*8523fda3SJan Friedel	    configuration parameters is 0, which makes auditd(1M) to
138*8523fda3SJan Friedel	    use current active system parameters.
139*8523fda3SJan Friedel	-->
140*8523fda3SJan Friedel	<property_group name='queuectrl' type='application' >
141*8523fda3SJan Friedel		<propval name='qbufsz' type='count'
142*8523fda3SJan Friedel			value='0' />
143*8523fda3SJan Friedel		<propval name='qdelay' type='count'
144*8523fda3SJan Friedel			value='0' />
145*8523fda3SJan Friedel		<propval name='qhiwater' type='count'
146*8523fda3SJan Friedel			value='0' />
147*8523fda3SJan Friedel		<propval name='qlowater' type='count'
148*8523fda3SJan Friedel			value='0' />
149*8523fda3SJan Friedel		<propval name='read_authorization' type='astring'
150*8523fda3SJan Friedel			value='solaris.audit.config' />
151*8523fda3SJan Friedel	</property_group>
152*8523fda3SJan Friedel
153*8523fda3SJan Friedel	<!--
154*8523fda3SJan Friedel	  Audit Policies - see auditconfig(1M)
155*8523fda3SJan Friedel
156*8523fda3SJan Friedel	    Note, that "all" and "none" policies available as a
157*8523fda3SJan Friedel	    auditconfig(1M) policy flags actually means a full/empty set
158*8523fda3SJan Friedel	    of other policy flags. Thus they are not configurable in the
159*8523fda3SJan Friedel	    auditd service manifest, but set all the policies to true
160*8523fda3SJan Friedel	    (all) or false (none).
161*8523fda3SJan Friedel	-->
162*8523fda3SJan Friedel	<property_group name='policy' type='application' >
163*8523fda3SJan Friedel		<propval name='ahlt' type='boolean'
164*8523fda3SJan Friedel			value='false' />
165*8523fda3SJan Friedel		<propval name='arge' type='boolean'
166*8523fda3SJan Friedel			value='false' />
167*8523fda3SJan Friedel		<propval name='argv' type='boolean'
168*8523fda3SJan Friedel			value='false' />
169*8523fda3SJan Friedel		<propval name='cnt' type='boolean'
170*8523fda3SJan Friedel			value='true' />
171*8523fda3SJan Friedel		<propval name='group' type='boolean'
172*8523fda3SJan Friedel			value='false' />
173*8523fda3SJan Friedel		<propval name='path' type='boolean'
174*8523fda3SJan Friedel			value='false' />
175*8523fda3SJan Friedel		<propval name='perzone' type='boolean'
176*8523fda3SJan Friedel			value='false' />
177*8523fda3SJan Friedel		<propval name='public' type='boolean'
178*8523fda3SJan Friedel			value='false' />
179*8523fda3SJan Friedel		<propval name='seq' type='boolean'
180*8523fda3SJan Friedel			value='false' />
181*8523fda3SJan Friedel		<propval name='trail' type='boolean'
182*8523fda3SJan Friedel			value='false' />
183*8523fda3SJan Friedel		<propval name='windata_down' type='boolean'
184*8523fda3SJan Friedel			value='false' />
185*8523fda3SJan Friedel		<propval name='windata_up' type='boolean'
186*8523fda3SJan Friedel			value='false' />
187*8523fda3SJan Friedel		<propval name='zonename' type='boolean'
188*8523fda3SJan Friedel			value='false' />
189*8523fda3SJan Friedel		<propval name='read_authorization' type='astring'
190*8523fda3SJan Friedel			value='solaris.audit.config' />
191*8523fda3SJan Friedel	</property_group>
192*8523fda3SJan Friedel
193*8523fda3SJan Friedel	</instance>
1947c478bd9Sstevel@tonic-gate
1957c478bd9Sstevel@tonic-gate	<stability value='Evolving' />
1967c478bd9Sstevel@tonic-gate
197*8523fda3SJan Friedel
1987c478bd9Sstevel@tonic-gate	<template>
1997c478bd9Sstevel@tonic-gate		<common_name>
2007c478bd9Sstevel@tonic-gate			<loctext xml:lang='C'>
2017c478bd9Sstevel@tonic-gate				Solaris audit daemon
2027c478bd9Sstevel@tonic-gate			</loctext>
2037c478bd9Sstevel@tonic-gate		</common_name>
2047c478bd9Sstevel@tonic-gate		<documentation>
2057c478bd9Sstevel@tonic-gate			<manpage title='auditd'
2067c478bd9Sstevel@tonic-gate				section='1M'
2077c478bd9Sstevel@tonic-gate				manpath='/usr/share/man'/>
2087c478bd9Sstevel@tonic-gate			<manpage title='audit'
2097c478bd9Sstevel@tonic-gate				section='1M'
2107c478bd9Sstevel@tonic-gate				manpath='/usr/share/man'/>
211*8523fda3SJan Friedel			<manpage title='auditconfig'
212*8523fda3SJan Friedel				section='1M'
213*8523fda3SJan Friedel				manpath='/usr/share/man'/>
2147c478bd9Sstevel@tonic-gate	         </documentation>
2157c478bd9Sstevel@tonic-gate	</template>
2167c478bd9Sstevel@tonic-gate
2177c478bd9Sstevel@tonic-gate</service>
2187c478bd9Sstevel@tonic-gate
2197c478bd9Sstevel@tonic-gate</service_bundle>
220