diff options
author | Thomas Petazzoni <thomas.petazzoni@bootlin.com> | 2020-07-14 16:36:10 -0500 |
---|---|---|
committer | Daniel Golle <daniel@makrotopia.org> | 2020-08-31 13:38:12 +0100 |
commit | 73912b850b7dc111ff54cd2bf5567a39000c6e8c (patch) | |
tree | 1e95b619da3f26f0c688c258e879c2515b8d3e65 /package/utils/audit/files | |
parent | 2f0d672088c39914ab9cd59b9de3d6f705cd6d5d (diff) | |
download | upstream-73912b850b7dc111ff54cd2bf5567a39000c6e8c.tar.gz upstream-73912b850b7dc111ff54cd2bf5567a39000c6e8c.tar.bz2 upstream-73912b850b7dc111ff54cd2bf5567a39000c6e8c.zip |
audit: new package
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
[fix build with GCC 10 and disable MIPS16 as build emits sync instruction]
Signed-off-by: W. Michael Petullo <mike@flyn.org>
Diffstat (limited to 'package/utils/audit/files')
-rw-r--r-- | package/utils/audit/files/audit.init | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/package/utils/audit/files/audit.init b/package/utils/audit/files/audit.init new file mode 100644 index 0000000000..4a9f53884b --- /dev/null +++ b/package/utils/audit/files/audit.init @@ -0,0 +1,16 @@ +#!/bin/sh /etc/rc.common +# Copyright (c) 2014 OpenWrt.org + +START=11 + +USE_PROCD=1 +PROG=/usr/sbin/auditd + +start_service() { + mkdir -p /var/log/audit + procd_open_instance + procd_set_param command "$PROG" -n + procd_set_param respawn + procd_close_instance + test -f /etc/audit/rules.d/audit.rules && /usr/sbin/auditctl -R /etc/audit/rules.d/audit.rules +} |