summaryrefslogtreecommitdiff
path: root/usr/src/cmd/audit_warn
diff options
context:
space:
mode:
authorgww <gww@eng.sun.com>2010-02-18 22:15:23 -0800
committergww <gww@eng.sun.com>2010-02-18 22:15:23 -0800
commitc900e1634838e43b86c07408d6006ce35dea17bd (patch)
treed06a4f0d53214c62b2c528799c675d52af11755b /usr/src/cmd/audit_warn
parentedafac1f8203a7de1490688213c118b03215c89d (diff)
downloadillumos-joyent-c900e1634838e43b86c07408d6006ce35dea17bd.tar.gz
PSARC/2002/665 auditd interface reclassification
6647954 implement the removal of audit_data(4) as noted in PSARC/2002/665
Diffstat (limited to 'usr/src/cmd/audit_warn')
-rw-r--r--usr/src/cmd/audit_warn/audit_warn.sh24
1 files changed, 15 insertions, 9 deletions
diff --git a/usr/src/cmd/audit_warn/audit_warn.sh b/usr/src/cmd/audit_warn/audit_warn.sh
index 7f1cf95926..f5cb90d998 100644
--- a/usr/src/cmd/audit_warn/audit_warn.sh
+++ b/usr/src/cmd/audit_warn/audit_warn.sh
@@ -20,9 +20,7 @@
# CDDL HEADER END
#
#
-# ident "%Z%%M% %I% %E% SMI"
-#
-# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
+# Copyright 2010 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
@@ -171,14 +169,22 @@ do
break
;;
- "tmpfile" ) # Check tempfile arg
- # The tempfile used by the audit daemon could not
- # be opened even though it was unlinked.
- # This error will cause the audit daemon to exit.
+ "tmpfile" ) # Check tmpfile arg
+ # The tmpfile used by the audit daemon (binfile) could
+ # not be opened even unlinked or symlinked.
+ # This error will cause the audit daemon to exit at
+ # start. If it occurs later the audit daemon will
+ # attempt to carry on.
+ if [ ! -n "$2" ]
+ then
+ $DEBUG_OUT "$0: Need error string arg with 'tmpfile'!"
+ exit 1
+ else
+ ERROR=$2
+ fi
# Set message
- MESSAGE="The audit daemon can not open audit_tmp.\
- This implies a serious problem. The audit daemon has exited!"
+ MESSAGE="The audit daemon is unable to update /var/run, error=$ERROR.\n This implies a serious problem."
send_msg