RHEL 9.8 ERRATUM
restore permissions of usbguard files Resolves: RHEL-126440
This commit is contained in:
parent
9315adb86e
commit
9106cb7f01
19
tmpfiles-rework.patch
Normal file
19
tmpfiles-rework.patch
Normal file
@ -0,0 +1,19 @@
|
||||
diff --git a/Makefile.am b/Makefile.am
|
||||
index 74a08cb..8271412 100644
|
||||
--- a/Makefile.am
|
||||
+++ b/Makefile.am
|
||||
@@ -119,6 +119,7 @@ install-daemon-conf: $(top_builddir)/usbguard-daemon.conf
|
||||
$(MKDIR_P) $(DESTDIR)/$(usbguard_confdir)
|
||||
$(MKDIR_P) $(DESTDIR)/$(usbguard_confdir)/IPCAccessControl.d
|
||||
$(MKDIR_P) $(DESTDIR)/${localstatedir}/log/usbguard
|
||||
+ chmod 0700 $(DESTDIR)/${localstatedir}/log/usbguard
|
||||
$(INSTALL) -m 600 $(top_builddir)/usbguard-daemon.conf \
|
||||
$(DESTDIR)/$(usbguard_confdir)/usbguard-daemon.conf
|
||||
if ! test -f "$(DESTDIR)/$(usbguard_confdir)/rules.conf"; then \
|
||||
diff --git a/usbguard-tmpfiles.conf b/usbguard-tmpfiles.conf
|
||||
index aff00c5..e90908f 100644
|
||||
--- a/usbguard-tmpfiles.conf
|
||||
+++ b/usbguard-tmpfiles.conf
|
||||
@@ -1 +1 @@
|
||||
-d /var/log/usbguard 0755 root root - -
|
||||
+d /var/log/usbguard 0700 root root - -
|
||||
@ -8,7 +8,7 @@
|
||||
|
||||
Name: usbguard
|
||||
Version: 1.1.4
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
Summary: A tool for implementing USB device usage policy
|
||||
Group: System Environment/Daemons
|
||||
License: GPLv2+
|
||||
@ -53,6 +53,7 @@ BuildRequires: libxml2
|
||||
Patch1: catch1-devel.patch
|
||||
Patch2: disable-console-logging.patch
|
||||
Patch3: selinux-sbin.patch
|
||||
Patch4: tmpfiles-rework.patch
|
||||
|
||||
%description
|
||||
The USBGuard software framework helps to protect your computer against rogue USB
|
||||
@ -134,6 +135,7 @@ rm -rf src/ThirdParty/{Catch,PEGTL}
|
||||
|
||||
%patch -P 1 -p1
|
||||
%patch -P 2 -p1
|
||||
%patch -P 4 -p1
|
||||
|
||||
%build
|
||||
mkdir -p ./m4
|
||||
@ -221,7 +223,7 @@ find %{buildroot} \( -name '*.la' -o -name '*.a' \) -exec rm -f {} ';'
|
||||
%{_libdir}/*.so.*
|
||||
%{_sbindir}/usbguard-daemon
|
||||
%{_bindir}/usbguard
|
||||
%dir %{_localstatedir}/log/usbguard
|
||||
%dir %attr(700,root,root) %{_localstatedir}/log/usbguard
|
||||
%dir %{_sysconfdir}/usbguard
|
||||
%dir %{_sysconfdir}/usbguard/rules.d/
|
||||
%dir %{_sysconfdir}/usbguard/IPCAccessControl.d
|
||||
@ -299,6 +301,10 @@ fi
|
||||
|
||||
|
||||
%changelog
|
||||
* Fri Nov 21 2025 Attila Lakatos <alakatos@redhat.com> - 1.1.4-2
|
||||
- restore permissions of usbguard files
|
||||
Resolves: RHEL-126440
|
||||
|
||||
* Wed Nov 05 2025 Attila Lakatos <alakatos@redhat.com> - 1.1.4-1
|
||||
- rebase to 1.1.4
|
||||
- restore permissions of usbguard files
|
||||
|
||||
Loading…
Reference in New Issue
Block a user