59 lines
2.1 KiB
Diff
59 lines
2.1 KiB
Diff
From 306cad81aee91d6adb61acdb9f1a9900fe2a13cd Mon Sep 17 00:00:00 2001
|
|
From: Cropi <alakatos@redhat.com>
|
|
Date: Thu, 6 Feb 2025 08:00:59 +0100
|
|
Subject: [PATCH] =?UTF-8?q?At=20boot=20time,=20systemd=E2=80=91tmpfiles=20?=
|
|
=?UTF-8?q?processes=20this=20file=20and=20creates=20/var/log/usbguard=20s?=
|
|
=?UTF-8?q?o=20that=20the=20usbguard=20service=20can=20start=20successfull?=
|
|
=?UTF-8?q?y.?=
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
---
|
|
Makefile.am | 13 +++++++++++--
|
|
usbguard-tmpfiles.conf | 1 +
|
|
2 files changed, 12 insertions(+), 2 deletions(-)
|
|
create mode 100644 usbguard-tmpfiles.conf
|
|
|
|
diff --git a/Makefile.am b/Makefile.am
|
|
index 7dc6849..2a8bfeb 100644
|
|
--- a/Makefile.am
|
|
+++ b/Makefile.am
|
|
@@ -90,8 +90,8 @@ $(top_builddir)/%.roff: %.adoc
|
|
$(INSTALL) -m 644 $(top_builddir)/$(@:.roff=) $(top_builddir)/$@
|
|
endif
|
|
|
|
-install-data-hook: install-daemon-conf install-systemd-service install-data-dbus
|
|
-uninstall-hook: uninstall-daemon-conf uninstall-systemd-service uninstall-data-dbus
|
|
+install-data-hook: install-daemon-conf install-systemd-service install-data-dbus install-tmpfiles
|
|
+uninstall-hook: uninstall-daemon-conf uninstall-systemd-service uninstall-data-dbus uninstall-tmpfiles
|
|
|
|
CLEANFILES+=\
|
|
$(top_builddir)/usbguard-daemon.conf
|
|
@@ -106,6 +106,15 @@ usbguard_confdir= $(sysconfdir)/usbguard
|
|
|
|
distuninstallcheck_listfiles= find . -type f ! -name rules.conf -print
|
|
|
|
+EXTRA_DIST+=usbguard-tmpfiles.conf
|
|
+
|
|
+install-tmpfiles:
|
|
+ mkdir -p ${DESTDIR}$(prefix)/lib/tmpfiles.d/
|
|
+ $(INSTALL_DATA) -m 640 ${srcdir}/usbguard-tmpfiles.conf ${DESTDIR}$(prefix)/lib/tmpfiles.d/usbguard.conf
|
|
+
|
|
+uninstall-tmpfiles:
|
|
+ rm ${DESTDIR}$(prefix)/lib/tmpfiles.d/usbguard.conf
|
|
+
|
|
install-daemon-conf: $(top_builddir)/usbguard-daemon.conf
|
|
$(MKDIR_P) $(DESTDIR)/$(usbguard_confdir)
|
|
$(MKDIR_P) $(DESTDIR)/$(usbguard_confdir)/IPCAccessControl.d
|
|
diff --git a/usbguard-tmpfiles.conf b/usbguard-tmpfiles.conf
|
|
new file mode 100644
|
|
index 0000000..e90908f
|
|
--- /dev/null
|
|
+++ b/usbguard-tmpfiles.conf
|
|
@@ -0,0 +1 @@
|
|
+d /var/log/usbguard 0700 root root - -
|
|
--
|
|
2.48.1
|
|
|