2011-02-17 22:19:42 +00:00
|
|
|
Name: rtkit
|
2012-05-15 13:50:36 +00:00
|
|
|
Version: 0.11
|
2018-10-09 12:33:25 +00:00
|
|
|
Release: 20%{?dist}
|
2011-02-17 22:19:42 +00:00
|
|
|
Summary: Realtime Policy and Watchdog Daemon
|
2009-06-19 15:31:35 +00:00
|
|
|
# The daemon itself is GPLv3+, the reference implementation for the client BSD
|
2011-02-17 22:19:42 +00:00
|
|
|
License: GPLv3+ and BSD
|
2015-11-04 13:43:43 +00:00
|
|
|
URL: http://git.0pointer.net/rtkit.git/
|
2011-02-17 22:19:42 +00:00
|
|
|
Requires: dbus
|
|
|
|
Requires: polkit
|
2018-10-09 12:33:25 +00:00
|
|
|
BuildRequires: systemd
|
2011-02-17 22:19:42 +00:00
|
|
|
BuildRequires: dbus-devel >= 1.2
|
|
|
|
BuildRequires: libcap-devel
|
|
|
|
BuildRequires: polkit-devel
|
2013-08-22 20:51:05 +00:00
|
|
|
BuildRequires: autoconf automake libtool
|
2012-05-15 13:50:36 +00:00
|
|
|
Source0: http://0pointer.de/public/%{name}-%{version}.tar.xz
|
2013-11-17 04:31:08 +00:00
|
|
|
Patch1: rtkit-mq_getattr.patch
|
2013-09-23 21:34:55 +00:00
|
|
|
Patch2: 0001-SECURITY-Pass-uid-of-caller-to-polkit.patch
|
2013-11-17 04:45:14 +00:00
|
|
|
Patch3: rtkit-controlgroup.patch
|
2009-06-19 15:31:35 +00:00
|
|
|
|
2017-05-12 17:30:02 +00:00
|
|
|
# Temporarily disable -Werror=format-security since it breaks the build
|
|
|
|
Patch4: format-security.patch
|
|
|
|
|
2018-10-09 12:33:25 +00:00
|
|
|
%systemd_requires
|
|
|
|
|
2009-06-19 15:31:35 +00:00
|
|
|
%description
|
|
|
|
RealtimeKit is a D-Bus system service that changes the
|
|
|
|
scheduling policy of user processes/threads to SCHED_RR (i.e. realtime
|
|
|
|
scheduling mode) on request. It is intended to be used as a secure
|
|
|
|
mechanism to allow real-time scheduling to be used by normal user
|
|
|
|
processes.
|
|
|
|
|
|
|
|
%prep
|
2018-10-09 12:33:25 +00:00
|
|
|
%autosetup -p1
|
2009-06-19 15:31:35 +00:00
|
|
|
|
|
|
|
%build
|
2013-08-22 20:51:05 +00:00
|
|
|
autoreconf -fvi
|
2012-05-15 13:50:36 +00:00
|
|
|
%configure --with-systemdsystemunitdir=/usr/lib/systemd/system
|
2017-05-12 17:30:02 +00:00
|
|
|
make V=1 %{?_smp_mflags}
|
2009-06-19 15:31:35 +00:00
|
|
|
./rtkit-daemon --introspect > org.freedesktop.RealtimeKit1.xml
|
|
|
|
|
|
|
|
%install
|
2015-11-04 13:42:47 +00:00
|
|
|
%make_install
|
|
|
|
install -Dm0644 org.freedesktop.RealtimeKit1.xml %{buildroot}%{_datadir}/dbus-1/interfaces/org.freedesktop.RealtimeKit1.xml
|
2009-06-19 15:31:35 +00:00
|
|
|
|
|
|
|
%pre
|
2010-06-29 19:39:43 +00:00
|
|
|
getent group rtkit >/dev/null 2>&1 || groupadd \
|
|
|
|
-r \
|
2011-02-17 22:19:42 +00:00
|
|
|
-g 172 \
|
|
|
|
rtkit
|
2010-06-29 19:39:43 +00:00
|
|
|
getent passwd rtkit >/dev/null 2>&1 || useradd \
|
|
|
|
-r -l \
|
2011-02-17 22:19:42 +00:00
|
|
|
-u 172 \
|
|
|
|
-g rtkit \
|
2010-06-29 19:39:43 +00:00
|
|
|
-d /proc \
|
2011-02-17 22:19:42 +00:00
|
|
|
-s /sbin/nologin \
|
2010-06-29 19:39:43 +00:00
|
|
|
-c "RealtimeKit" \
|
2011-02-17 22:19:42 +00:00
|
|
|
rtkit
|
2010-06-29 19:39:43 +00:00
|
|
|
:;
|
2009-06-19 15:31:35 +00:00
|
|
|
|
|
|
|
%post
|
2012-09-14 16:12:38 +00:00
|
|
|
%systemd_post rtkit-daemon.service
|
2009-06-19 15:31:35 +00:00
|
|
|
dbus-send --system --type=method_call --dest=org.freedesktop.DBus / org.freedesktop.DBus.ReloadConfig >/dev/null 2>&1 || :
|
2010-06-29 19:46:55 +00:00
|
|
|
|
|
|
|
%preun
|
2012-09-14 16:12:38 +00:00
|
|
|
%systemd_preun rtkit-daemon.service
|
2009-06-19 15:31:35 +00:00
|
|
|
|
2011-02-17 22:19:42 +00:00
|
|
|
%postun
|
2012-09-14 16:12:38 +00:00
|
|
|
%systemd_postun
|
2011-02-17 22:19:42 +00:00
|
|
|
|
2009-06-19 15:31:35 +00:00
|
|
|
%files
|
|
|
|
%doc README GPL LICENSE rtkit.c rtkit.h
|
|
|
|
%attr(0755,root,root) %{_sbindir}/rtkitctl
|
|
|
|
%attr(0755,root,root) %{_libexecdir}/rtkit-daemon
|
|
|
|
%{_datadir}/dbus-1/system-services/org.freedesktop.RealtimeKit1.service
|
|
|
|
%{_datadir}/dbus-1/interfaces/org.freedesktop.RealtimeKit1.xml
|
|
|
|
%{_datadir}/polkit-1/actions/org.freedesktop.RealtimeKit1.policy
|
2010-06-29 19:39:43 +00:00
|
|
|
%config(noreplace) %{_sysconfdir}/dbus-1/system.d/org.freedesktop.RealtimeKit1.conf
|
2012-05-15 13:50:36 +00:00
|
|
|
%{_prefix}/lib/systemd/system/rtkit-daemon.service
|
2010-06-29 19:39:43 +00:00
|
|
|
%{_mandir}/man8/*
|
2009-06-19 15:31:35 +00:00
|
|
|
|
|
|
|
%changelog
|
2018-10-09 12:33:25 +00:00
|
|
|
* Tue Oct 9 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.11-20
|
|
|
|
- Modernize a bit and fix BuildRequires (#1637496)
|
|
|
|
|
2018-07-14 03:47:17 +00:00
|
|
|
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.11-19
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
2018-02-09 13:23:54 +00:00
|
|
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.11-18
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
2017-08-03 07:49:57 +00:00
|
|
|
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.11-17
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
|
|
2017-07-27 13:19:54 +00:00
|
|
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.11-16
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
2017-05-12 17:30:02 +00:00
|
|
|
* Fri May 12 2017 Stephen Gallagher <sgallagh@redhat.com> - 0.11-15
|
|
|
|
- Temporarily disable -Werror=format-security to unbreak the build
|
|
|
|
- Build with verbose command-line visible in the logs
|
|
|
|
- Resolves: rhbz#1424270
|
|
|
|
|
2017-02-11 11:53:55 +00:00
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.11-14
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2016-02-04 22:21:47 +00:00
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.11-13
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2015-11-04 13:42:47 +00:00
|
|
|
* Wed Nov 4 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.11-12
|
|
|
|
- Make dbus interface file non-executable (#1245938)
|
|
|
|
|
2015-06-18 22:36:35 +00:00
|
|
|
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-11
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
2014-08-18 00:25:29 +00:00
|
|
|
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-10
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
|
2014-06-08 03:04:38 +00:00
|
|
|
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-9
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2013-11-17 04:31:08 +00:00
|
|
|
* Sat Nov 16 2013 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.11-8
|
|
|
|
- Use a simpler patch for -lrt.
|
2013-11-17 04:45:14 +00:00
|
|
|
- Remove ControlGroup setting from the service file
|
|
|
|
Resolves: #1010534
|
2013-11-17 04:51:59 +00:00
|
|
|
- Turn on hardening flags
|
|
|
|
Resolves: #996735, #1008399
|
2013-11-17 04:31:08 +00:00
|
|
|
|
2013-09-23 21:34:55 +00:00
|
|
|
* Mon Sep 23 2013 Colin Walters <walters@verbum.org> - 0.11-7
|
|
|
|
- CVE-2013-4326
|
|
|
|
Resolves: #1009543
|
|
|
|
|
2013-08-22 20:51:05 +00:00
|
|
|
* Thu Aug 22 2013 Colin Walters <walters@verbum.org> - 0.11-6
|
|
|
|
- Add patch to make this build again
|
|
|
|
|
2013-08-04 13:06:45 +00:00
|
|
|
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
2013-02-14 21:58:11 +00:00
|
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
2012-09-14 16:12:38 +00:00
|
|
|
* Fri Sep 14 2012 Lennart Poettering <lpoetter@redhat.com> - 0.11-3
|
|
|
|
- Make use of the new systemd macros
|
|
|
|
|
2012-07-21 17:13:29 +00:00
|
|
|
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-05-15 13:50:36 +00:00
|
|
|
* Tue May 15 2012 Lennart Poettering <lpoetter@redhat.com> - 0.11-1
|
|
|
|
- New upstream release
|
|
|
|
|
2012-01-14 02:58:09 +00:00
|
|
|
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
2011-02-17 22:19:42 +00:00
|
|
|
* Thu Feb 17 2011 Lennart Poettering <lpoetter@redhat.com> - 0.10-1
|
|
|
|
- new upstream release
|
|
|
|
|
2011-02-09 08:57:10 +00:00
|
|
|
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
2010-08-04 01:47:58 +00:00
|
|
|
* Wed Aug 4 2010 Lennart Poettering <lpoetter@redhat.com> - 0.9-2
|
|
|
|
- Convert systemd-install to systemctl
|
|
|
|
|
2010-07-13 18:40:26 +00:00
|
|
|
* Tue Jul 13 2010 Lennart Poettering <lpoetter@redhat.com> - 0.9-1
|
|
|
|
- New upstream release
|
|
|
|
|
2010-06-29 19:39:43 +00:00
|
|
|
* Tue Jun 29 2010 Lennart Poettering <lpoetter@redhat.com> - 0.8-1
|
|
|
|
- New upstream release
|
|
|
|
|
2009-12-18 10:58:01 +00:00
|
|
|
* Fri Dec 18 2009 Lennart Poettering <lpoetter@redhat.com> - 0.5-1
|
|
|
|
- New release
|
|
|
|
- By default don't demote unknown threads
|
|
|
|
- Make messages less cute
|
|
|
|
- Fixes 530582
|
|
|
|
|
2009-08-05 01:48:49 +00:00
|
|
|
* Wed Aug 5 2009 Lennart Poettering <lpoetter@redhat.com> - 0.4-1
|
|
|
|
- New release
|
|
|
|
|
2009-07-27 03:18:39 +00:00
|
|
|
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
2009-07-02 00:51:14 +00:00
|
|
|
* Thu Jul 2 2009 Lennart Poettering <lpoetter@redhat.com> - 0.3-1
|
|
|
|
- New release
|
|
|
|
|
2013-11-17 04:31:08 +00:00
|
|
|
* Wed Jun 17 2009 Lennart Poettering <lpoetter@redhat.com> - 0.2-1
|
2009-06-19 15:31:35 +00:00
|
|
|
- Initial packaging
|