6 Commits

Author SHA256 Message Date
af6024ec4a Accepting request 1303665 from hardware
OBS-URL: https://build.opensuse.org/request/show/1303665
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/usbguard?expand=0&rev=25
2025-09-10 18:23:02 +00:00
ebf3d2b828 - Add usbguard.logrotate based on
https://salsa.debian.org/birger/usbguard/-/blob/debian/sid/debian/usbguard.logrotate

OBS-URL: https://build.opensuse.org/package/show/hardware/usbguard?expand=0&rev=60
2025-09-10 15:24:35 +00:00
5bdca81110 Accepting request 1293448 from hardware
OBS-URL: https://build.opensuse.org/request/show/1293448
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/usbguard?expand=0&rev=24
2025-07-16 13:51:51 +00:00
c7956f3f44 usbguard 1.1.4
OBS-URL: https://build.opensuse.org/package/show/hardware/usbguard?expand=0&rev=58
2025-07-15 14:11:44 +00:00
e0c6b832fb Accepting request 1283050 from hardware
- Add usbguard-protobuf-30.patch
  * Adapt for protobuf 30.0 API changes
    based on https://github.com/USBGuard/usbguard/pull/650 (forwarded request 1283010 from munix9)

OBS-URL: https://build.opensuse.org/request/show/1283050
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/usbguard?expand=0&rev=23
2025-06-05 18:35:27 +00:00
7a69ff04d6 - Add usbguard-protobuf-30.patch
* Adapt for protobuf 30.0 API changes
    based on https://github.com/USBGuard/usbguard/pull/650

OBS-URL: https://build.opensuse.org/package/show/hardware/usbguard?expand=0&rev=56
2025-06-05 10:55:41 +00:00
7 changed files with 79 additions and 25 deletions

Binary file not shown.

View File

@@ -1,15 +0,0 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
707dad2938923202697f636c2b4e0be80f192242039a2af3fc7ac35d03f78551 usbguard-1.1.3.tar.gz
-----BEGIN PGP SIGNATURE-----
iQEzBAEBCAAdFiEE42iwrWP0zIT/S4Xa9XeK14XjWB8FAmZhyycACgkQ9XeK14Xj
WB+5uQf/aJcNck4JNAWtoIwbxYvZO+eQdir+73SF611d7ixkc9woPnsnPzKXgmsl
JZi0+bzcoJl96Eu/C7hANaRFgamJhlxiV8VgtPiaMi9OIa+4SbqHoHaIjFKovM0G
5QmJGAuZ92nalgy0nSg0dHCK3skEfGzVdr6yxtC494Di8otiCvqrZh8iPFAQLLpW
n0qtM1drOo25S8jb232sVRc1kMfI7D88gtK/kFkSWALwJBB1W/YwqYVao0z2pifR
g9WyqWHJHOE/v2+myQcuW4drYJC9G2/N12AH8duPmnUPaLljk2S9K3131UYoP9wi
Xg8AhQlYXdVvvWI//TyXafgv8p97GQ==
=LYjm
-----END PGP SIGNATURE-----

3
usbguard-1.1.4.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7d76b75e779e3c9e6c2fc10e7389dfa34056864c9f0c6eaca722687b7e75893c
size 1679841

View File

@@ -0,0 +1,20 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
7d76b75e779e3c9e6c2fc10e7389dfa34056864c9f0c6eaca722687b7e75893c usbguard-1.1.4.tar.gz
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCAAdFiEEQjY9HDCldKTuXZyH5lDLv+86rEsFAmh2UeAACgkQ5lDLv+86
rEvGmQ/+PXyqRO75oTd3DeHJ39WNVJciPDK3F/5DY9QviEFc2kyZzaAXVtabdJDc
kHhhizQcryyJSgZtbevJbWdolhrfi5Au+07w0OpUB1Ned3Zfu3e/jZZuGj28NRjn
RKs8w/GZ57FN8Od9u4xUlsjqdstycQAZL52G+VW1ywCr+8tJ7WtPXyg6PcaKiKUJ
hKDLHcn8xX58AJS2JI+/m5gUBzz2Fk2GtYZr6K4mrJOSWLO7zGTMfSynCXmXmdW4
TJJxNAhOfT8AXdWYXcOM7LDDELEp5KxjRHkTBNZmd7p9nLewcEDynouXDmJBrEto
zxuT40Dt0iuCOSbqTC8JhDKUQpwnBlemDiWTr8wmdmv0z1XWiKLdzQDBQTfoStKF
xpA/JAta9f2+9zqOCtlmKBgmuTyIaP8haMA+lLOqCdThbXrDcvAs7IFMrOzFpXse
WJOdo6D/iiCqpzWOi7EHjVknmMkbzw6YcuddLISFTo8khyeideQnI4xIS2fFF/By
PfwaNjptbhTD3lXj/JoBncoAdVUkMxBYpkHb3g+rXjol7CfgY++Rqa1BPpqmJBNl
DTXnyUTuVLht8vDTYX/tT85Ek1ohVSF205vgiZdoD15hEY0c+MQTyweHo3/diDzT
CWxMzMOdurtTXIcd9z3DsccQSXditWPobm3Bh0H25kWiQ6mvPxo=
=Huse
-----END PGP SIGNATURE-----

View File

@@ -1,3 +1,35 @@
-------------------------------------------------------------------
Sun Sep 7 08:21:07 UTC 2025 - munix9@googlemail.com
- Add usbguard.logrotate based on
https://salsa.debian.org/birger/usbguard/-/blob/debian/sid/debian/usbguard.logrotate
-------------------------------------------------------------------
Tue Jul 15 13:19:25 UTC 2025 - Robert Frohl <rfrohl@suse.com>
- update to 1.1.4
* Add usbguard-tmpfles.conf by @Cropi
* Restore permissions on /var/log/usbguard dir by @Cropi
* Makefile.am: Ignore errors from rmdir during uninstallation (fixes #646) by @hartwork
* Docker: Bump to Alpine 3.21 to fix Alpine CI (fixes #655) by @hartwork
* Actions(deps): Bump actions/checkout from 4.1.1 to 4.1.7 by @dependabot[bot]
* [DRAFT] Fix regression: specifying IPC privileges using UID by @Cropi
* Add support for loongarch by @wuruilong01
* Adapt for protobuf 30.0 API changes by @christian-heusel
* tests: add support for Catch2 v3 by @yselkowitz
* New configure option: --enable/disable-catch by @Cropi
* For modern GCC CI, replace (broken) openSUSE Tumbleweed by Ubuntu 25.04 (fixes #656) by @hartwork
* Actions(deps): Bump actions/checkout from 4.1.7 to 4.2.2 by @dependabot[bot]
* FDInputStream: add FDStreamBuf destructor to stop fd leak. by @semenzato
- Drop included patch: usbguard-protobuf-30.patch
-------------------------------------------------------------------
Wed Jun 4 20:14:00 UTC 2025 - munix9@googlemail.com
- Add usbguard-protobuf-30.patch
* Adapt for protobuf 30.0 API changes
based on https://github.com/USBGuard/usbguard/pull/650
-------------------------------------------------------------------
Thu Jun 6 18:02:42 UTC 2024 - Robert Frohl <rfrohl@suse.com>

9
usbguard.logrotate Normal file
View File

@@ -0,0 +1,9 @@
/var/log/usbguard/usbguard-audit.log {
weekly
rotate 12
compress
delaycompress
missingok
notifempty
create 600 root root
}

View File

@@ -1,7 +1,7 @@
#
# spec file for package usbguard
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -19,7 +19,7 @@
%global _hardened_build 1
%define lname libusbguard1
Name: usbguard
Version: 1.1.3
Version: 1.1.4
Release: 0
Summary: A tool for implementing USB device usage policy
## Not installed
@@ -32,6 +32,7 @@ Source1: https://github.com/USBGuard/usbguard/releases/download/usbguard-
Source2: usbguard.keyring
Source3: usbguard-daemon.conf
Source4: usbguard-rpmlintrc
Source5: usbguard.logrotate
Patch0: usbguard-pthread.patch
BuildRequires: asciidoc
BuildRequires: audit-devel
@@ -55,6 +56,7 @@ BuildRequires: polkit-devel
BuildRequires: protobuf-devel
BuildRequires: pkgconfig(systemd)
BuildRequires: pkgconfig(udev)
Requires: logrotate
%{?systemd_requires}
%description
@@ -137,6 +139,9 @@ install -p -m 644 scripts/usbguard-zsh-completion %{buildroot}%{_datadir}/zsh/si
sed -i '/^SystemCallFilter=@system-service/d' %{buildroot}%{_unitdir}/usbguard.service
%endif
# logrotate
install -D -m 644 %{SOURCE5} %{buildroot}%{_sysconfdir}/logrotate.d/usbguard
# Cleanup
find %{buildroot} \( -name '*.la' -o -name '*.a' \) -delete
@@ -145,6 +150,7 @@ find %{buildroot} \( -name '*.la' -o -name '*.a' \) -delete
%post
%service_add_post usbguard.service usbguard-dbus.service
%tmpfiles_create usbguard.conf
%postun
%service_del_postun usbguard.service usbguard-dbus.service
@@ -152,8 +158,7 @@ find %{buildroot} \( -name '*.la' -o -name '*.a' \) -delete
%pre
%service_add_pre usbguard.service usbguard-dbus.service
%post -n %{lname} -p /sbin/ldconfig
%postun -n %{lname} -p /sbin/ldconfig
%ldconfig_scriptlets -n %{lname}
%files
%doc README.adoc CHANGELOG.md
@@ -166,6 +171,7 @@ find %{buildroot} \( -name '*.la' -o -name '*.a' \) -delete
%dir %{_sysconfdir}/usbguard/IPCAccessControl.d
%config(noreplace) %attr(0600,-,-) %{_sysconfdir}/usbguard/usbguard-daemon.conf
%config(noreplace) %attr(0600,-,-) %{_sysconfdir}/usbguard/rules.conf
%config(noreplace) %{_sysconfdir}/logrotate.d/usbguard
%{_unitdir}/usbguard.service
%{_unitdir}/usbguard-dbus.service
%{_mandir}/man8/usbguard-daemon.8%{?ext_man}
@@ -179,15 +185,17 @@ find %{buildroot} \( -name '*.la' -o -name '*.a' \) -delete
%{_datadir}/dbus-1/system-services/org.usbguard1.service
%{_datadir}/dbus-1/system.d/org.usbguard1.conf
%{_datadir}/polkit-1/actions/org.usbguard1.policy
%{_tmpfilesdir}/usbguard.conf
%files -n %{lname}
%license LICENSE
%{_libdir}/*.so.*
%files devel
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%dir %{_includedir}/usbguard
%{_includedir}/usbguard/*
%{_libdir}/libusbguard.so
%{_libdir}/pkgconfig/libusbguard.pc
%files tools
%{_bindir}/usbguard