diff --git a/flatpak.spec b/flatpak.spec index 80499626d4df2dc7bf2fa56136a53ab4813c1541..ef97431f157005761f9c77bf9e0bf1defb58c5cb 100644 --- a/flatpak.spec +++ b/flatpak.spec @@ -1,6 +1,6 @@ Name: flatpak Version: 1.10.2 -Release: 9 +Release: 10 Summary: Application deployment framework for desktop apps License: LGPLv2+ URL: http://flatpak.org/ @@ -47,7 +47,7 @@ BuildRequires: pkgconfig(libsoup-2.4) pkgconfig(libxml-2.0) >= 2.4 pkgconfig(os BuildRequires: bison bubblewrap >= 0.4.0 docbook-dtds docbook-style-xsl gettext gpgme-devel libcap-devel systemd xmlto libxslt BuildRequires: pkgconfig(libsystemd) pkgconfig(dconf) pkgconfig(fuse) pkgconfig(gdk-pixbuf-2.0) pkgconfig(libzstd) >= 0.8.1 python3-pyparsing xdg-dbus-proxy -%{?systemd_requires} +Requires(pre): shadow-utils Requires: ostree%{?_isa} >= 2020.8 bubblewrap >= 0.4.0 ostree-libs%{?_isa} >= 2020.8 Requires: librsvg2 xdg-dbus-proxy systemd Recommends: p11-kit xdg-desktop-portal > 0.10 @@ -88,6 +88,11 @@ rm %{buildroot}%{_systemd_system_env_generator_dir}/60-flatpak-system-only %find_lang %{name} +%pre +getent group 'flatpak' >/dev/null || groupadd -r 'flatpak' || : +getent passwd 'flatpak' >/dev/null || \ + useradd -r -g 'flatpak' -d '/' -s '/usr/sbin/nologin' -c 'Flatpak system helper' 'flatpak' || : + %post flatpak remote-list --system &> /dev/null || : %ldconfig_scriptlets libs @@ -146,6 +151,9 @@ flatpak remote-list --system &> /dev/null || : %{_mandir}/man5/flatpak-remote.5* %changelog +* Thu Jun 26 2025 Funda Wang - 1.10.2-10 +- add pre scriptlet for user creation + * Thu Aug 15 2024 wangkai <13474090681@163.com> - 1.10.2-9 - Fix CVE-2024-42472