Added klogd, smartd, tomoyo-auditd

This commit is contained in:
Andrew Scott 2023-04-13 22:48:04 -04:00
parent 5f63803ef9
commit abb7d52408
Signed by: a
GPG key ID: 7CD5A5977E4931C1
25 changed files with 58 additions and 0 deletions

1
klogd-log/consumer-for Normal file
View file

@ -0,0 +1 @@
klogd-srv

View file

@ -0,0 +1 @@
3

1
klogd-log/pipeline-name Normal file
View file

@ -0,0 +1 @@
klogd

10
klogd-log/run Normal file
View file

@ -0,0 +1,10 @@
#!/bin/execlineb -P
# See: https://git.skarnet.org/cgi-bin/cgit.cgi/s6/tree/examples
envfile /etc/s6/config/klogd.conf
importas -sCuD "s2000000 n3 t" DIRECTIVES DIRECTIVES
ifelse { test -w /var/log } {
foreground { install -d -o root -g root /var/log/klogd }
exec -c s6-log -d3 -b -- ${DIRECTIVES} /var/log/klogd
}
foreground { install -d -o root -g root /run/log/klogd }
exec -c s6-log -d3 -b -- ${DIRECTIVES} /run/log/klogd

1
klogd-log/type Normal file
View file

@ -0,0 +1 @@
longrun

View file

1
klogd-srv/producer-for Normal file
View file

@ -0,0 +1 @@
klogd-log

6
klogd-srv/run Normal file
View file

@ -0,0 +1,6 @@
#!/bin/execlineb -P
# See: https://git.skarnet.org/cgi-bin/cgit.cgi/s6/tree/examples
fdmove -c 2 1
redirfd -r 0 /proc/kmsg
exec -c
ucspilogd

1
klogd-srv/type Normal file
View file

@ -0,0 +1 @@
longrun

1
smartd-log/consumer-for Normal file
View file

@ -0,0 +1 @@
smartd-srv

View file

@ -0,0 +1 @@
3

1
smartd-log/pipeline-name Normal file
View file

@ -0,0 +1 @@
smartd

9
smartd-log/run Normal file
View file

@ -0,0 +1,9 @@
#!/bin/execlineb -P
envfile /etc/s6/config/smartd.conf
importas -sCuD "s2000000 n3 T" DIRECTIVES DIRECTIVES
ifelse { test -w /var/log } {
foreground { install -d -o s6log -g s6log /var/log/smartd }
exec -c s6-log -d3 -b -- ${DIRECTIVES} /var/log/smartd
}
foreground { install -d -o s6log -g s6log /run/log/smartd }
exec -c s6-log -d3 -b -- ${DIRECTIVES} /run/log/smartd

1
smartd-log/type Normal file
View file

@ -0,0 +1 @@
longrun

1
smartd-srv/producer-for Normal file
View file

@ -0,0 +1 @@
smartd-log

3
smartd-srv/run Normal file
View file

@ -0,0 +1,3 @@
#!/bin/execlineb -P
fdmove -c 2 1
exec smartd -d

1
smartd-srv/type Normal file
View file

@ -0,0 +1 @@
longrun

View file

@ -0,0 +1 @@
tomoyo-auditd-srv

View file

@ -0,0 +1 @@
3

View file

@ -0,0 +1 @@
tomoyo-auditd

9
tomoyo-auditd-log/run Normal file
View file

@ -0,0 +1,9 @@
#!/bin/execlineb -P
envfile /etc/s6/config/tomoyo-audit.conf
importas -sCuD "n3 s2000000 T" DIRECTIVES DIRECTIVES
ifelse { test -w /var/log } {
foreground { install -d -o s6log -g s6log /var/log/tomoyo-auditd }
s6-setuidgid s6log exec -c s6-log -d3 -b -- ${DIRECTIVES} /var/log/tomoyo-auditd
}
foreground { install -d -o s6log -g s6log /run/log/tomoyo-auditd }
s6-setuidgid s6log exec -c s6-log -d3 -b -- ${DIRECTIVES} /run/log/tomoyo-auditd

1
tomoyo-auditd-log/type Normal file
View file

@ -0,0 +1 @@
longrun

View file

@ -0,0 +1 @@
tomoyo-auditd-log

3
tomoyo-auditd-srv/run Normal file
View file

@ -0,0 +1,3 @@
#!/bin/execlineb -P
fdmove -c 2 1
exec tomoyo-auditd

1
tomoyo-auditd-srv/type Normal file
View file

@ -0,0 +1 @@
longrun