|
|
f36c4d |
%global _hardened_build 1
|
|
|
f36c4d |
|
|
|
f36c4d |
Name: rtkit
|
|
|
f36c4d |
Version: 0.11
|
|
|
f36c4d |
Release: 10%{?dist}
|
|
|
f36c4d |
Summary: Realtime Policy and Watchdog Daemon
|
|
|
f36c4d |
Group: System Environment/Base
|
|
|
f36c4d |
# The daemon itself is GPLv3+, the reference implementation for the client BSD
|
|
|
f36c4d |
License: GPLv3+ and BSD
|
|
|
f36c4d |
URL: http://git.0pointer.de/?p=rtkit.git
|
|
|
f36c4d |
Requires: dbus
|
|
|
f36c4d |
Requires: polkit
|
|
|
f36c4d |
Requires(post): systemd
|
|
|
f36c4d |
Requires(preun): systemd
|
|
|
f36c4d |
Requires(postun): systemd
|
|
|
f36c4d |
BuildRequires: dbus-devel >= 1.2
|
|
|
f36c4d |
BuildRequires: libcap-devel
|
|
|
f36c4d |
BuildRequires: polkit-devel
|
|
|
f36c4d |
BuildRequires: autoconf automake libtool
|
|
|
f36c4d |
Source0: http://0pointer.de/public/%{name}-%{version}.tar.xz
|
|
|
f36c4d |
Patch1: 0001-build-Link-against-lrt.patch
|
|
|
f36c4d |
Patch2: 0001-SECURITY-Pass-uid-of-caller-to-polkit.patch
|
|
|
f36c4d |
Patch3: 0001-systemd-remove-unsupported-option-ControlGroup.patch
|
|
|
f36c4d |
|
|
|
f36c4d |
%description
|
|
|
f36c4d |
RealtimeKit is a D-Bus system service that changes the
|
|
|
f36c4d |
scheduling policy of user processes/threads to SCHED_RR (i.e. realtime
|
|
|
f36c4d |
scheduling mode) on request. It is intended to be used as a secure
|
|
|
f36c4d |
mechanism to allow real-time scheduling to be used by normal user
|
|
|
f36c4d |
processes.
|
|
|
f36c4d |
|
|
|
f36c4d |
%prep
|
|
|
f36c4d |
%setup -q
|
|
|
f36c4d |
%patch1 -p1
|
|
|
f36c4d |
%patch2 -p1
|
|
|
f36c4d |
%patch3 -p1
|
|
|
f36c4d |
|
|
|
f36c4d |
%build
|
|
|
f36c4d |
autoreconf -fvi
|
|
|
f36c4d |
%configure --with-systemdsystemunitdir=/usr/lib/systemd/system
|
|
|
f36c4d |
make %{?_smp_mflags}
|
|
|
f36c4d |
./rtkit-daemon --introspect > org.freedesktop.RealtimeKit1.xml
|
|
|
f36c4d |
|
|
|
f36c4d |
%install
|
|
|
f36c4d |
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
f36c4d |
install -D org.freedesktop.RealtimeKit1.xml $RPM_BUILD_ROOT/%{_datadir}/dbus-1/interfaces/org.freedesktop.RealtimeKit1.xml
|
|
|
f36c4d |
|
|
|
f36c4d |
%pre
|
|
|
f36c4d |
getent group rtkit >/dev/null 2>&1 || groupadd \
|
|
|
f36c4d |
-r \
|
|
|
f36c4d |
-g 172 \
|
|
|
f36c4d |
rtkit
|
|
|
f36c4d |
getent passwd rtkit >/dev/null 2>&1 || useradd \
|
|
|
f36c4d |
-r -l \
|
|
|
f36c4d |
-u 172 \
|
|
|
f36c4d |
-g rtkit \
|
|
|
f36c4d |
-d /proc \
|
|
|
f36c4d |
-s /sbin/nologin \
|
|
|
f36c4d |
-c "RealtimeKit" \
|
|
|
f36c4d |
rtkit
|
|
|
f36c4d |
:;
|
|
|
f36c4d |
|
|
|
f36c4d |
%post
|
|
|
f36c4d |
%systemd_post rtkit-daemon.service
|
|
|
f36c4d |
dbus-send --system --type=method_call --dest=org.freedesktop.DBus / org.freedesktop.DBus.ReloadConfig >/dev/null 2>&1 || :
|
|
|
f36c4d |
|
|
|
f36c4d |
%preun
|
|
|
f36c4d |
%systemd_preun rtkit-daemon.service
|
|
|
f36c4d |
|
|
|
f36c4d |
%postun
|
|
|
f36c4d |
%systemd_postun
|
|
|
f36c4d |
|
|
|
f36c4d |
%files
|
|
|
f36c4d |
%defattr(0644,root,root,0755)
|
|
|
f36c4d |
%doc README GPL LICENSE rtkit.c rtkit.h
|
|
|
f36c4d |
%attr(0755,root,root) %{_sbindir}/rtkitctl
|
|
|
f36c4d |
%attr(0755,root,root) %{_libexecdir}/rtkit-daemon
|
|
|
f36c4d |
%{_datadir}/dbus-1/system-services/org.freedesktop.RealtimeKit1.service
|
|
|
f36c4d |
%{_datadir}/dbus-1/interfaces/org.freedesktop.RealtimeKit1.xml
|
|
|
f36c4d |
%{_datadir}/polkit-1/actions/org.freedesktop.RealtimeKit1.policy
|
|
|
f36c4d |
%config(noreplace) %{_sysconfdir}/dbus-1/system.d/org.freedesktop.RealtimeKit1.conf
|
|
|
f36c4d |
%{_prefix}/lib/systemd/system/rtkit-daemon.service
|
|
|
f36c4d |
%{_mandir}/man8/*
|
|
|
f36c4d |
|
|
|
f36c4d |
%changelog
|
|
|
f36c4d |
* Thu Sep 11 2014 Michal Sekletar <msekleta@redhat.com> - 0.11-10
|
|
|
f36c4d |
- turn on hardening flags (#1092529)
|
|
|
f36c4d |
|
|
|
f36c4d |
* Tue Sep 09 2014 Michal Sekletar <msekleta@redhat.com> - 0.11-9
|
|
|
f36c4d |
- remove unsupported option ControlGroup for systemd unit file (#1095607)
|
|
|
f36c4d |
|
|
|
f36c4d |
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 0.11-8
|
|
|
f36c4d |
- Mass rebuild 2014-01-24
|
|
|
f36c4d |
|
|
|
f36c4d |
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.11-7
|
|
|
f36c4d |
- Mass rebuild 2013-12-27
|
|
|
f36c4d |
|
|
|
f36c4d |
* Mon Sep 23 2013 Colin Walters <walters@redhat.com> - 0.11-6
|
|
|
f36c4d |
- CVE-2013-4326
|
|
|
f36c4d |
Resolves: #1005140
|
|
|
f36c4d |
|
|
|
f36c4d |
* Thu Aug 22 2013 Colin Walters <walters@verbum.org> - 0.11-5
|
|
|
f36c4d |
- Add patch to make this build again
|
|
|
f36c4d |
|
|
|
f36c4d |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-4
|
|
|
f36c4d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
f36c4d |
|
|
|
f36c4d |
* Fri Sep 14 2012 Lennart Poettering <lpoetter@redhat.com> - 0.11-3
|
|
|
f36c4d |
- Make use of the new systemd macros
|
|
|
f36c4d |
|
|
|
f36c4d |
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-2
|
|
|
f36c4d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
f36c4d |
|
|
|
f36c4d |
* Tue May 15 2012 Lennart Poettering <lpoetter@redhat.com> - 0.11-1
|
|
|
f36c4d |
- New upstream release
|
|
|
f36c4d |
|
|
|
f36c4d |
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10-2
|
|
|
f36c4d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
f36c4d |
|
|
|
f36c4d |
* Thu Feb 17 2011 Lennart Poettering <lpoetter@redhat.com> - 0.10-1
|
|
|
f36c4d |
- new upstream release
|
|
|
f36c4d |
|
|
|
f36c4d |
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-3
|
|
|
f36c4d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
f36c4d |
|
|
|
f36c4d |
* Wed Aug 4 2010 Lennart Poettering <lpoetter@redhat.com> - 0.9-2
|
|
|
f36c4d |
- Convert systemd-install to systemctl
|
|
|
f36c4d |
|
|
|
f36c4d |
* Tue Jul 13 2010 Lennart Poettering <lpoetter@redhat.com> - 0.9-1
|
|
|
f36c4d |
- New upstream release
|
|
|
f36c4d |
|
|
|
f36c4d |
* Tue Jun 29 2010 Lennart Poettering <lpoetter@redhat.com> - 0.8-1
|
|
|
f36c4d |
- New upstream release
|
|
|
f36c4d |
|
|
|
f36c4d |
* Fri Dec 18 2009 Lennart Poettering <lpoetter@redhat.com> - 0.5-1
|
|
|
f36c4d |
- New release
|
|
|
f36c4d |
- By default don't demote unknown threads
|
|
|
f36c4d |
- Make messages less cute
|
|
|
f36c4d |
- Fixes 530582
|
|
|
f36c4d |
|
|
|
f36c4d |
* Wed Aug 5 2009 Lennart Poettering <lpoetter@redhat.com> - 0.4-1
|
|
|
f36c4d |
- New release
|
|
|
f36c4d |
|
|
|
f36c4d |
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3-2
|
|
|
f36c4d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
f36c4d |
|
|
|
f36c4d |
* Thu Jul 2 2009 Lennart Poettering <lpoetter@redhat.com> - 0.3-1
|
|
|
f36c4d |
- New release
|
|
|
f36c4d |
|
|
|
f36c4d |
* Thu Jun 17 2009 Lennart Poettering <lpoetter@redhat.com> - 0.2-1
|
|
|
f36c4d |
- Initial packaging
|