0N/A# The contents of this file are subject to the terms of the 0N/A# Common Development and Distribution License (the "License"). 0N/A# You may not use this file except in compliance with the License. 0N/A# See the License for the specific language governing permissions 0N/A# and limitations under the License. 0N/A# When distributing Covered Code, include this CDDL HEADER in each 0N/A# If applicable, add the following below this CDDL HEADER, with the 0N/A# fields enclosed by brackets "[]" replaced with your own identifying 0N/A# information: Portions Copyright [yyyy] [name of copyright owner] 0N/A# Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. 0N/A# main - the execution starts there. 4802N/A # Do the basic argument inspection and take the appropriate action. 560N/A echo "$0: No SMF method defined." 560N/A# do_common - executes all the code common to all supported service methods. 560N/A # If the audit state is "disabled" auditconfig returns non-zero exit 560N/A # status unless the c2audit module is loaded; if c2audit is loaded, 560N/A # "disabled" becomes "noaudit" early in the boot cycle and "auditing" 560N/A # only after auditd starts. 0N/A # The decision whether to start 0N/A # auditing is driven by bsmconv(1M) / bsmunconv(1M) 1367N/A echo "$0: Unable to get current kernel auditing condition." 0N/A # "perzone" audit policy has been set. 0N/A echo "$0: auditd(1M) is not configured to run in" 560N/A echo " a local zone, perzone policy not set" \ 0N/A # Validate the audit service configuration 4312N/A echo "$0: audit service misconfiguration detected (${val_err})" 0N/A# do_start - service start method helper. 0N/A # The transition of the audit_startup(1M) has to be performed. 3324N/A echo "$0: Transition of audit_startup(1M) started." 4802N/A # Unable to perform the backup of $AUDIT_STARTUP 0N/A # Refreshing service to make the newly created properties 0N/A # available for any other consequent svcprop(1). 4558N/A echo "$0: Transition of audit_startup(1M) finished." 4558N/A # Daemon forks, parent exits when child says it's ready. 4558N/A# do_refresh - service refresh method helper. 4558N/A # The refresh capability is available only for those systems 4558N/A # with already transformed audit_startup(1M) into $AUDITD_FMRI 4558N/A # service properties. See do_start() for more information. $AWK '/^contract_id/ {print $2}'` if [ -z "${contract_id}" ]; then "contract. Service cannot be refreshed." echo "$0: SIGHUP was not successfully delivered to" \ "the related contract (${contract_id}/err:$?)." echo "$0: Service refresh method not supported on systems" \ "without converted audit_startup(1M) into auditd service" \ "SMF configuration. Clear the service (svcadm(1M))." # Call main() to start the own script execution.