Blame SPECS/dbus-broker.spec

cc8a76
%global dbus_user_id 81
cc8a76
cc8a76
Name:                 dbus-broker
cc8a76
Version:              28
ec1610
Release:              7%{?dist}
cc8a76
Summary:              Linux D-Bus Message Broker
cc8a76
License:              ASL 2.0
cc8a76
URL:                  https://github.com/bus1/dbus-broker
cc8a76
Source0:              https://github.com/bus1/dbus-broker/releases/download/v%{version}/dbus-broker-%{version}.tar.xz
cc8a76
Patch0000:            https://github.com/bus1/dbus-broker/commit/1add8a7d60e46806e0ef87994d3024245db0d84a.patch
cc8a76
Patch0001:            https://github.com/bus1/dbus-broker/commit/b82b670bfec6600d0144bcb9ca635fb07c80118f.patch
ec1610
Patch0002:            cve-2022-31212.patch
ec1610
Patch0003:            cve-2022-31213.patch
ec1610
Patch0004:            https://github.com/bus1/dbus-broker/commit/33e0595b1c7cf8fa0e7ca3a353f4380c1307dc25.patch
cc8a76
%{?systemd_requires}
cc8a76
BuildRequires:        pkgconfig(audit)
cc8a76
BuildRequires:        pkgconfig(expat)
cc8a76
BuildRequires:        pkgconfig(dbus-1)
cc8a76
BuildRequires:        pkgconfig(libcap-ng)
cc8a76
BuildRequires:        pkgconfig(libselinux)
cc8a76
BuildRequires:        pkgconfig(libsystemd)
cc8a76
BuildRequires:        pkgconfig(systemd)
cc8a76
BuildRequires:        gcc
cc8a76
BuildRequires:        glibc-devel
cc8a76
BuildRequires:        meson
cc8a76
BuildRequires:        python3-docutils
cc8a76
Requires:             dbus-common
cc8a76
Requires(pre):        shadow-utils
cc8a76
Requires(post):       /usr/bin/systemctl
cc8a76
# for triggerpostun
cc8a76
Requires:             /usr/bin/systemctl
cc8a76
cc8a76
%description
cc8a76
dbus-broker is an implementation of a message bus as defined by the D-Bus
cc8a76
specification. Its aim is to provide high performance and reliability, while
cc8a76
keeping compatibility to the D-Bus reference implementation. It is exclusively
cc8a76
written for Linux systems, and makes use of many modern features provided by
cc8a76
recent Linux kernel releases.
cc8a76
cc8a76
%prep
cc8a76
%autosetup -p1
cc8a76
cc8a76
%build
cc8a76
%meson -Dselinux=true -Daudit=true -Ddocs=true -Dsystem-console-users=gdm -Dlinux-4-17=true
cc8a76
%meson_build
cc8a76
cc8a76
%install
cc8a76
%meson_install
cc8a76
cc8a76
%check
cc8a76
%meson_test
cc8a76
cc8a76
%pre
cc8a76
# create dbus user and group
cc8a76
getent group dbus >/dev/null || groupadd -f -g %{dbus_user_id} -r dbus
cc8a76
if ! getent passwd dbus >/dev/null ; then
cc8a76
    if ! getent passwd %{dbus_user_id} >/dev/null ; then
cc8a76
      useradd -r -u %{dbus_user_id} -g %{dbus_user_id} -d '/' -s /sbin/nologin -c "System message bus" dbus
cc8a76
    else
cc8a76
      useradd -r -g %{dbus_user_id} -d '/' -s /sbin/nologin -c "System message bus" dbus
cc8a76
    fi
cc8a76
fi
cc8a76
exit 0
cc8a76
cc8a76
%post
cc8a76
%systemd_post dbus-broker.service
cc8a76
%systemd_user_post dbus-broker.service
cc8a76
%journal_catalog_update
cc8a76
cc8a76
%preun
cc8a76
%systemd_preun dbus-broker.service
cc8a76
%systemd_user_preun dbus-broker.service
cc8a76
cc8a76
%postun
cc8a76
%systemd_postun dbus-broker.service
cc8a76
%systemd_user_postun dbus-broker.service
cc8a76
cc8a76
%triggerpostun -- dbus-daemon
cc8a76
if [ $2 -eq 0 ] ; then
cc8a76
        # The `dbus-daemon` package used to provide the default D-Bus
cc8a76
        # implementation. We continue to make sure that if you uninstall it, we
cc8a76
        # re-evaluate whether to enable dbus-broker to replace it. If we didnt,
cc8a76
        # you might end up without any bus implementation active.
cc8a76
        systemctl --no-reload          preset dbus-broker.service || :
cc8a76
        systemctl --no-reload --global preset dbus-broker.service || :
cc8a76
fi
cc8a76
cc8a76
%files
cc8a76
%license AUTHORS
cc8a76
%license LICENSE
cc8a76
%{_bindir}/dbus-broker
cc8a76
%{_bindir}/dbus-broker-launch
cc8a76
%{_journalcatalogdir}/dbus-broker.catalog
cc8a76
%{_journalcatalogdir}/dbus-broker-launch.catalog
cc8a76
%{_mandir}/man1/dbus-broker.1*
cc8a76
%{_mandir}/man1/dbus-broker-launch.1*
cc8a76
%{_unitdir}/dbus-broker.service
cc8a76
%{_userunitdir}/dbus-broker.service
cc8a76
cc8a76
%changelog
ec1610
* Mon Aug 22 2022 Frantisek Sumsal <fsumsal@redhat.com> - 28-7
ec1610
- Add coverage for CVE-2022-31213 and other config-file-related issues
ec1610
Related: CVE-2022-31213
ec1610
ec1610
* Tue Aug 02 2022 Jakub Martisko <jamartis@redhat.com> - 28-6
74177a
- Fix a stack buffer over-read in the c-shquote library
74177a
- Fix null pointer reference when supplying a malformed XML config file
74177a
Resolves: CVE-2022-31212
74177a
Resolves: CVE-2022-31213
74177a
cc8a76
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 28-5
cc8a76
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
cc8a76
  Related: rhbz#1991688
cc8a76
cc8a76
* Thu Apr 15 2021 Mohan Boddu <mboddu@redhat.com> - 28-4
cc8a76
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
cc8a76
cc8a76
* Thu Mar 18 2021 David Rheinsberg <david.rheinsberg@gmail.com> - 28-3
cc8a76
- Apply another fix for incorrect at_console range assertion.
cc8a76
cc8a76
* Thu Mar 18 2021 David Rheinsberg <david.rheinsberg@gmail.com> - 28-2
cc8a76
- Apply fix for incorrect at_console range assertion.
cc8a76
cc8a76
* Thu Mar 18 2021 David Rheinsberg <david.rheinsberg@gmail.com> - 28-1
cc8a76
- Update to upstream v28.
cc8a76
- Drop unused c-util based bundling annotations.
cc8a76
cc8a76
* Wed Feb 17 2021 David Rheinsberg <david.rheinsberg@gmail.com> - 27-2
cc8a76
- Apply activation-tracking bugfixes from upstream.
cc8a76
cc8a76
* Mon Feb 15 2021 David Rheinsberg <david.rheinsberg@gmail.com> - 27-1
cc8a76
- Update to upstream v27.
cc8a76
cc8a76
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 26-2
cc8a76
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
cc8a76
cc8a76
* Wed Jan 20 2021 David Rheinsberg <david.rheinsberg@gmail.com> - 26-1
cc8a76
- Update to upstream v26.
cc8a76
cc8a76
* Wed Jan  6 2021 Jeff Law <law@redhat.com> - 24-2
cc8a76
- Bump NVR to force rebuild with gcc-11
cc8a76
cc8a76
* Fri Sep  4 2020 David Rheinsberg <david.rheinsberg@gmail.com> - 24-1
cc8a76
- Update to upstream v24. Only minor changes to the diagnostic messages as
cc8a76
  well as audit-events.
cc8a76
cc8a76
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 23-3
cc8a76
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
cc8a76
cc8a76
* Mon May 11 2020 Adam Williamson <awilliam@redhat.com> - 23-2
cc8a76
- Fix missing % in macro invocations in %post
cc8a76
cc8a76
* Mon May 11 2020 David Rheinsberg <david.rheinsberg@gmail.com> - 23-1
cc8a76
- Update to upstream v23.
cc8a76
cc8a76
* Mon May  4 2020 David Rheinsberg <david.rheinsberg@gmail.com> - 22-3
cc8a76
- Drop dbus-daemon -> dbus-broker live system conversion. New setups will
cc8a76
  automatically pick up dbus-broker as default implementation. If you upgrade
cc8a76
  from pre-F30, you will not get any auto upgrade anymore. Deinstalling the
cc8a76
  dbus-daemon package will, however, automatically pick up dbus-broker.
cc8a76
cc8a76
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 21-7
cc8a76
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
cc8a76
cc8a76
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 21-6
cc8a76
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
cc8a76
cc8a76
* Sun Jul 14 2019 Neal Gompa <ngompa13@gmail.com> - 21-5
cc8a76
- Fix reference to dbus_user_id macro in scriptlet
cc8a76
cc8a76
* Wed Jul 10 2019 Jonathan Brielmaier <jbrielmaier@suse.de> - 21-4
cc8a76
- Make creation of dbus user/group more robust, fixes #1717925
cc8a76
cc8a76
* Thu May  9 2019 Tom Gundersen <teg@jklm.no> - 21-2
cc8a76
- Gracefully handle missing FDs in received messages, #1706883
cc8a76
- Minor bugfixes
cc8a76
cc8a76
* Fri May  3 2019 Tom Gundersen <teg@jklm.no> - 21-1
cc8a76
- Don't fail on EACCESS when reading config, fixes #1704920
cc8a76
cc8a76
* Thu May  2 2019 Tom Gundersen <teg@jklm.no> - 21-1
cc8a76
- Minor bugfixes related to config reload for #1704488
cc8a76
cc8a76
* Wed Apr 17 2019 Tom Gundersen <teg@jklm.no> - 20-4
cc8a76
- Fix assert due to failing reload #1700514
cc8a76
cc8a76
* Tue Apr 16 2019 Adam Williamson <awilliam@redhat.com> - 20-3
cc8a76
- Rebuild with Meson fix for #1699099
cc8a76
cc8a76
* Thu Apr 11 2019 Tom Gundersen <teg@jklm.no> - 20-2
cc8a76
- Fix the c_assert macro
cc8a76
cc8a76
* Wed Apr 10 2019 Tom Gundersen <teg@jklm.no> - 20-1
cc8a76
- Improve handling of broken or deprecated configuration
cc8a76
- Avoid at_console workaround if possible
cc8a76
cc8a76
* Tue Apr  9 2019 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 19-2
cc8a76
- Add a temporary generator to fix switching from dbus-daemon to
cc8a76
  dbus-broker (#1674045)
cc8a76
cc8a76
* Thu Mar 28 2019 Tom Gundersen <teg@jklm.no> - 19-1
cc8a76
- Minor bug fixes
cc8a76
cc8a76
* Thu Feb 21 2019 Tom Gundersen <teg@jklm.no> - 18-1
cc8a76
- Minor bug fixes
cc8a76
cc8a76
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 17-4
cc8a76
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
cc8a76
cc8a76
* Mon Jan 14 2019 Tom Gundersen <teg@jklm.no> - 17-3
cc8a76
- run in the root network namespace
cc8a76
cc8a76
* Sat Jan 12 2019 Tom Gundersen <teg@jklm.no> - 17-2
cc8a76
- ignore config files that cannot be opened (fix rhbz #1665450)
cc8a76
cc8a76
* Wed Jan 2 2019 Tom Gundersen <teg@jklm.no> - 17-1
cc8a76
- apply more sandboxing through systemd
cc8a76
- improve logging on disconnect
cc8a76
- don't send FDs to clients who don't declare support
cc8a76
cc8a76
* Wed Nov 28 2018 Tom Gundersen <teg@jklm.no> - 16-8
cc8a76
- don't apply presets on updates to dbus-daemon
cc8a76
cc8a76
* Mon Nov 26 2018 Tom Gundersen <teg@jklm.no> - 16-7
cc8a76
- enable service file correctly at install
cc8a76
cc8a76
* Mon Nov 26 2018 Tom Gundersen <teg@jklm.no> - 16-5
cc8a76
- use full paths when calling binaries from rpm scripts
cc8a76
cc8a76
* Sun Nov 25 2018 Tom Gundersen <teg@jklm.no> - 16-4
cc8a76
- fix SELinux bug
cc8a76
cc8a76
* Tue Oct 30 2018 Tom Gundersen <teg@jklm.no> - 16-3
cc8a76
- add explicit systemctl dependency
cc8a76
cc8a76
* Tue Oct 23 2018 David Herrmann <dh.herrmann@gmail.com> - 16-2
cc8a76
- create dbus user and group if non-existant
cc8a76
- add explicit %%postlets to switch over to the broker as default
cc8a76
cc8a76
* Fri Oct 12 2018 Tom Gundersen <teg@jklm.no> - 16-1
cc8a76
- make resource limits configurable
cc8a76
- rerun presets in case dbus-daemon is disabled
cc8a76
cc8a76
* Thu Aug 30 2018 Tom Gundersen <teg@jklm.no> - 15-4
cc8a76
- depend on dbus-common rather than dbus
cc8a76
cc8a76
* Wed Aug 29 2018 Tom Gundersen <teg@jklm.no> - 15-3
cc8a76
- run %%systemd_user rpm macros
cc8a76
cc8a76
* Mon Aug 27 2018 Tom Gundersen <teg@jklm.no> - 15-2
cc8a76
- add back --verbose switch for backwards compatibility
cc8a76
cc8a76
* Wed Aug 08 2018 Tom Gundersen <teg@jklm.no> - 15-1
cc8a76
- fix audit support
cc8a76
- make logging about invalid config less verbose
cc8a76
cc8a76
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 14-2
cc8a76
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
cc8a76
cc8a76
* Tue Jul 03 2018 Tom Gundersen <teg@jklm.no> - 14-1
cc8a76
- use inotify to reload config automatically
cc8a76
- run as the right user
cc8a76
- new compatibility features, bugfixes and performance enhancements
cc8a76
cc8a76
* Mon Apr 23 2018 Tom Gundersen <teg@jklm.no> - 13-1
cc8a76
- Namespace transient systemd units per launcher instance
cc8a76
- Reduce reliance on NSS
cc8a76
- Fix deadlock with nss-systemd
cc8a76
cc8a76
* Wed Feb 21 2018 Tom Gundersen <teg@jklm.no> - 11-1
cc8a76
- The 'gdm' user is now considered at_console=true
cc8a76
- Bugfixes and performance enhancements
cc8a76
cc8a76
* Wed Feb 07 2018 Tom Gundersen <teg@jklm.no> - 10-1
cc8a76
- Bugfixes and performance enhancements
cc8a76
cc8a76
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 9-2
cc8a76
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
cc8a76
cc8a76
* Thu Nov 30 2017 Tom Gundersen <teg@jklm.no> - 9-1
cc8a76
- Avoid nss deadlock at start-up
cc8a76
- Support ExecReload
cc8a76
- Respect User= in service files
cc8a76
cc8a76
* Tue Oct 17 2017 Tom Gundersen <teg@jklm.no> - 8-1
cc8a76
- Dont clean-up children of activated services by default
cc8a76
- Dont use audit from the user instance
cc8a76
- Support the ReloadConfig() API
cc8a76
cc8a76
* Tue Oct 17 2017 Tom Gundersen <teg@jklm.no> - 7-1
cc8a76
- Upstream bugfix release
cc8a76
cc8a76
* Mon Oct 16 2017 Tom Gundersen <teg@jklm.no> - 6-1
cc8a76
- Upstream bugfix release
cc8a76
cc8a76
* Tue Oct 10 2017 Tom Gundersen <teg@jklm.no> - 5-1
cc8a76
- Drop downstream SELinux module
cc8a76
- Support (in a limited way) at_console= policies
cc8a76
- Order dbus-broker before basic.target
cc8a76
cc8a76
* Fri Sep 08 2017 Tom Gundersen <teg@jklm.no> - 4-1
cc8a76
- Use audit for SELinux logging
cc8a76
- Support full search-paths for service files
cc8a76
- Log policy failures
cc8a76
cc8a76
* Fri Aug 18 2017 Tom Gundersen <teg@jklm.no> - 3-1
cc8a76
- Add manpages
cc8a76
cc8a76
* Wed Aug 16 2017 Tom Gundersen <teg@jklm.no> - 2-2
cc8a76
- Add license to package
cc8a76
cc8a76
* Wed Aug 16 2017 Tom Gundersen <teg@jklm.no> - 2-1
cc8a76
- Add SELinux support
cc8a76
cc8a76
* Sun Aug 13 2017 Tom Gundersen <teg@jklm.no> - 1-1
cc8a76
- Initial RPM release
cc8a76