Add limited tmpfiles.d(5) support

This change adds very basic tmpfiles.d/ support to Finit.  Much of the
basic types are supported, but not all, so for now, please check the
code for details on what is working.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg committed 2023-02-28 00:48:25 +01:00
1 parent 6942e38413
commit a4af9ba248
22 files changed
+655 -94

No files matched your search

+2
View File
@@ -0,0 +1,2 @@
Makefile
Makefile.in
+4
View File
@@ -0,0 +1,4 @@
tmpfilesdir = $(tmpfiles_path)
dist_tmpfiles_DATA = etc.conf legacy.conf var.conf x11.conf
dist_tmpfiles_DATA += dnsmasq.conf frr.conf lldpd.conf openswan.conf \
quagga.conf sshd.conf uuidd.conf
+1
View File
@@ -0,0 +1 @@
d /var/run/dnsmasq 0755 nobody nobody -
+7
View File
@@ -0,0 +1,7 @@
L /etc/os-release - - - - ../usr/lib/os-release
L+ /etc/mtab - - - - ../proc/self/mounts
C! /etc/locale.conf - - - -
C! /etc/nsswitch.conf - - - -
C! /etc/vconsole.conf - - - -
C! /etc/pam.d - - - -
C! /etc/issue - - - -
+2
View File
@@ -0,0 +1,2 @@
d /var/run/frr 0755 frr frr -
d /var/log/frr 0755 frr frr -
+11
View File
@@ -0,0 +1,11 @@
d /run/lock 0755 root root -
L /var/lock - - - - ../run/lock
d /run/lock/subsys 0755 root root -
L /run/shm - - - - ../dev/shm
# These are not supported by Finit, see command line options
r! /forcefsck
r! /fastboot
r! /forcequotacheck
+1
View File
@@ -0,0 +1 @@
d /var/run/lldpd 0755 - - -
+1
View File
@@ -0,0 +1 @@
d /var/run/pluto 0755 - - -
+2
View File
@@ -0,0 +1,2 @@
d /var/run/quagga 0755 quagga quagga -
d /var/log/quagga 0755 quagga quagga -
+1
View File
@@ -0,0 +1 @@
d /var/run/sshd 01755 - - -
+2
View File
@@ -0,0 +1,2 @@
# Void Linux uuidd
d /var/run/uuidd 0755 uuidd uuidd
+40
View File
@@ -0,0 +1,40 @@
# Standard FHS 2.3 structure in /var and /var/run, err /run
d /var/cache 0755 - - -
d /var/db 0755 - - -
d /var/games 0755 - - -
d /var/lib 0755 - - -
d /var/lib/alarm 0755 - - -
d /var/lib/misc 0755 - - -
d /var/lib/urandom 0755 - - -
d /var/spool 0755 - - -
# Compat symlink to new /run ramdisk
L /var/run - - - - ../run
# Used by pam_console(8)
d /run/console 1777 - - -
f /run/console/nobody 0644 - - -
f /run/console/console.lock 0644 - - - nobody
# Needed by Debian/Ubuntu ifupdown
d /var/run/network 0755 - - -
# Debian has /run/sudo, ensure correct perms and SELinux label
d /run/sudo 0711 root root
d /run/sudo/ts 0700 root root
Z /run/sudo - - - -
d /var/empty 0755 - - -
d /var/log 0755 - - -
d /var/mail 0755 - - -
d /var/opt 0755 - - -
d /var/spool 0755 - - -
d /var/spool/cron 0755 - - -
# UTMP actually needs multiple db files
f /var/run/utmp 0664 root utmp -
f /var/log/wtmp 0664 root utmp -
f /var/log/btmp 0660 root utmp -
f /var/log/lastlog 0664 root utmp -
+11
View File
@@ -0,0 +1,11 @@
D! /tmp/.X11-unix 1777 root root
D! /tmp/.ICE-unix 1777 root root
D! /tmp/.XIM-unix 1777 root root
D! /tmp/.font-unix 1777 root root
z /tmp/.X11-unix
z /tmp/.ICE-unix
z /tmp/.XIM-unix
z /tmp/.font-unix
r! /tmp/.X[0-9]*-lock