Provide a sysusers.d file to get user() and group() provides
This commit is contained in:
parent
154a2a9427
commit
94bd84ee17
@ -1,3 +1,7 @@
|
|||||||
|
* Mon Oct 02 2023 Daan De Meyer <daan.j.demeyer@gmail.com> - 0.11-30
|
||||||
|
- Provide a sysusers.d file to get user() and group() provides
|
||||||
|
(see https://fedoraproject.org/wiki/Changes/Adopting_sysusers.d_format).
|
||||||
|
|
||||||
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.11-29
|
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.11-29
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||||
|
|
||||||
|
19
rtkit.spec
19
rtkit.spec
@ -12,11 +12,14 @@ Requires: dbus
|
|||||||
Requires: polkit
|
Requires: polkit
|
||||||
BuildRequires: make
|
BuildRequires: make
|
||||||
BuildRequires: systemd-devel
|
BuildRequires: systemd-devel
|
||||||
|
BuildRequires: systemd-rpm-macros
|
||||||
BuildRequires: dbus-devel >= 1.2
|
BuildRequires: dbus-devel >= 1.2
|
||||||
BuildRequires: libcap-devel
|
BuildRequires: libcap-devel
|
||||||
BuildRequires: polkit-devel
|
BuildRequires: polkit-devel
|
||||||
BuildRequires: autoconf automake libtool
|
BuildRequires: autoconf automake libtool
|
||||||
|
%{?sysusers_requires_compat}
|
||||||
Source0: http://0pointer.de/public/%{name}-%{version}.tar.xz
|
Source0: http://0pointer.de/public/%{name}-%{version}.tar.xz
|
||||||
|
Source1: rtkit.sysusers
|
||||||
Patch: rtkit-mq_getattr.patch
|
Patch: rtkit-mq_getattr.patch
|
||||||
Patch: 0001-SECURITY-Pass-uid-of-caller-to-polkit.patch
|
Patch: 0001-SECURITY-Pass-uid-of-caller-to-polkit.patch
|
||||||
Patch: rtkit-controlgroup.patch
|
Patch: rtkit-controlgroup.patch
|
||||||
@ -49,21 +52,10 @@ autoreconf -fvi
|
|||||||
%install
|
%install
|
||||||
%make_install
|
%make_install
|
||||||
install -Dm0644 org.freedesktop.RealtimeKit1.xml %{buildroot}%{_datadir}/dbus-1/interfaces/org.freedesktop.RealtimeKit1.xml
|
install -Dm0644 org.freedesktop.RealtimeKit1.xml %{buildroot}%{_datadir}/dbus-1/interfaces/org.freedesktop.RealtimeKit1.xml
|
||||||
|
install -Dpm 0644 %{SOURCE1} %{buildroot}%{_sysusersdir}/rtkit.conf
|
||||||
|
|
||||||
%pre
|
%pre
|
||||||
getent group rtkit >/dev/null 2>&1 || groupadd \
|
%sysusers_create_compat %{SOURCE1}
|
||||||
-r \
|
|
||||||
-g 172 \
|
|
||||||
rtkit
|
|
||||||
getent passwd rtkit >/dev/null 2>&1 || useradd \
|
|
||||||
-r -l \
|
|
||||||
-u 172 \
|
|
||||||
-g rtkit \
|
|
||||||
-d /proc \
|
|
||||||
-s /sbin/nologin \
|
|
||||||
-c "RealtimeKit" \
|
|
||||||
rtkit
|
|
||||||
:;
|
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%systemd_post rtkit-daemon.service
|
%systemd_post rtkit-daemon.service
|
||||||
@ -85,6 +77,7 @@ dbus-send --system --type=method_call --dest=org.freedesktop.DBus / org.freedesk
|
|||||||
%config(noreplace) %{_sysconfdir}/dbus-1/system.d/org.freedesktop.RealtimeKit1.conf
|
%config(noreplace) %{_sysconfdir}/dbus-1/system.d/org.freedesktop.RealtimeKit1.conf
|
||||||
%{_prefix}/lib/systemd/system/rtkit-daemon.service
|
%{_prefix}/lib/systemd/system/rtkit-daemon.service
|
||||||
%{_mandir}/man8/*
|
%{_mandir}/man8/*
|
||||||
|
%{_sysusersdir}/rtkit.conf
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
%autochangelog
|
%autochangelog
|
||||||
|
2
rtkit.sysusers
Normal file
2
rtkit.sysusers
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
#Type Name ID GECOS Home directory Shell
|
||||||
|
u rtkit 172 "RealtimeKit" / /sbin/nologin
|
Loading…
Reference in New Issue
Block a user