Skip to content

Commit

Permalink
At boot time, systemd‑tmpfiles processes this file and creates /var/l…
Browse files Browse the repository at this point in the history
…og/usbguard so that the usbguard service can start successfully. (#647)
  • Loading branch information
Cropi authored Feb 6, 2025
1 parent d8f6595 commit dd53ef5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
13 changes: 11 additions & 2 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
1 change: 1 addition & 0 deletions usbguard-tmpfiles.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
d /var/log/usbguard 0700 root root - -

0 comments on commit dd53ef5

Please sign in to comment.