/
githubmirror
/
audit-userspace
Обзор
Документация
Войти
/
githubmirror
/
audit-userspace
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
init.d/auditd.state
22 строки
476 B
Steve Grubb
Use configures runstatedir to locate audit.pid, auditd.state, and other run time files
01 авг 2025, 05:08
01 авг 2025, 05:08
4ade146
Код
Авторство
О чём код?
#!/bin/sh # Helper script to provide legacy auditd service options not # directly supported by systemd # Check that we are root ... so non-root users stop here test "$(id -u)" = "0" || exit 4 PATH=/sbin:/bin:/usr/bin:/usr/sbin state_file="/run/audit/auditd.state" printf "Getting auditd internal state: " /sbin/auditctl --signal state RETVAL=$? sleep 1 if [ $RETVAL -eq 0 ] ; then if [ -e $state_file ] ; then printf "\n\n" cat $state_file fi fi echo exit $RETVAL