summaryrefslogtreecommitdiffstats
path: root/contrib/openbsm/bin/auditd/auditd.c
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2006-03-04 16:45:52 +0000
committerrwatson <rwatson@FreeBSD.org>2006-03-04 16:45:52 +0000
commita8790234d5db9f72a75129b10df55da1475012a4 (patch)
tree1727bc17eb9e6fc1c3c270d72438a9c02374fe6b /contrib/openbsm/bin/auditd/auditd.c
parent57ceefb9d9f44e8ea3884412a34bf5070f8fdf14 (diff)
parentab71945909ae42af4e5fa0802d62298315b31281 (diff)
downloadFreeBSD-src-a8790234d5db9f72a75129b10df55da1475012a4.zip
FreeBSD-src-a8790234d5db9f72a75129b10df55da1475012a4.tar.gz
This commit was generated by cvs2svn to compensate for changes in r156283,
which included commits to RCS files with non-trunk default branches.
Diffstat (limited to 'contrib/openbsm/bin/auditd/auditd.c')
-rw-r--r--contrib/openbsm/bin/auditd/auditd.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/contrib/openbsm/bin/auditd/auditd.c b/contrib/openbsm/bin/auditd/auditd.c
index 0911869..471f4f6 100644
--- a/contrib/openbsm/bin/auditd/auditd.c
+++ b/contrib/openbsm/bin/auditd/auditd.c
@@ -30,7 +30,7 @@
*
* @APPLE_BSD_LICENSE_HEADER_END@
*
- * $P4: //depot/projects/trustedbsd/openbsm/bin/auditd/auditd.c#12 $
+ * $P4: //depot/projects/trustedbsd/openbsm/bin/auditd/auditd.c#13 $
*/
#include <sys/types.h>
@@ -795,7 +795,11 @@ main(int argc, char **argv)
}
}
+#ifdef LOG_SECURITY
openlog("auditd", LOG_CONS | LOG_PID, LOG_SECURITY);
+#else
+ openlog("auditd", LOG_CONS | LOG_PID, LOG_AUTH);
+#endif
syslog(LOG_INFO, "starting...\n");
if (debug == 0 && daemon(0, 0) == -1) {
OpenPOWER on IntegriCloud