From dff4632ab2dd0e61a6cb83d5804d73cde441d4718605130d4eb80151991a01ab Mon Sep 17 00:00:00 2001 From: Thorsten Kukuk Date: Sat, 11 Mar 2017 08:35:23 +0000 Subject: [PATCH] - Add hardware access groups: kmem, lock, tty, audio, cdrom, dialout, disk, input, tape, video - Add group wheel OBS-URL: https://build.opensuse.org/package/show/Base:System/system-users?expand=0&rev=5 --- system-group-hardware.conf | 13 +++++++++++++ system-group-wheel.conf | 2 ++ system-users.changes | 7 +++++++ system-users.spec | 33 +++++++++++++++++++++++++++++++++ 4 files changed, 55 insertions(+) create mode 100644 system-group-hardware.conf create mode 100644 system-group-wheel.conf diff --git a/system-group-hardware.conf b/system-group-hardware.conf new file mode 100644 index 0000000..38fab59 --- /dev/null +++ b/system-group-hardware.conf @@ -0,0 +1,13 @@ +# Type Name ID GECOS [HOME] +# Access to certain kernel and userspace facilities +g kmem - - - +g lock - - - +g tty 5 - - +# Hardware access groups +g audio - - - +g cdrom - - - +g dialout - - - +g disk - - - +g input - - - +g tape - - - +g video - - - diff --git a/system-group-wheel.conf b/system-group-wheel.conf new file mode 100644 index 0000000..8aaa779 --- /dev/null +++ b/system-group-wheel.conf @@ -0,0 +1,2 @@ +# Type Name ID GECOS [HOME] +g wheel - diff --git a/system-users.changes b/system-users.changes index 4bd4294..b65a707 100644 --- a/system-users.changes +++ b/system-users.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Sat Mar 11 09:29:37 CET 2017 - kukuk@suse.de + +- Add hardware access groups: kmem, lock, tty, audio, cdrom, + dialout, disk, input, tape, video +- Add group wheel + ------------------------------------------------------------------- Tue Feb 21 15:13:07 CET 2017 - kukuk@suse.de diff --git a/system-users.spec b/system-users.spec index 066229c..6d42f5d 100644 --- a/system-users.spec +++ b/system-users.spec @@ -30,6 +30,8 @@ Source5: system-user-man.conf Source6: system-user-news.conf Source7: system-group-trusted.conf Source8: system-group-obsolete.conf +Source9: system-group-hardware.conf +Source10: system-group-wheel.conf BuildRequires: systemd BuildRequires: sysuser-tools BuildArch: noarch @@ -108,6 +110,23 @@ Group: System/Fhs %description -n system-group-obsolete This package provides some obsolete system groups. +%package -n system-group-hardware +Summary: Hardware related system groups +Group: System/Fhs +%{sysusers_requires} + +%description -n system-group-hardware +This package provides some hardware related system groups. + +%package -n system-group-wheel +Summary: System group 'wheel' +Group: System/Fhs +%{sysusers_requires} + +%description -n system-group-wheel +This package provides the system group 'wheel'. + + %prep %setup -q -c -T @@ -120,6 +139,8 @@ This package provides some obsolete system groups. %sysusers_generate_pre %{SOURCE6} news %sysusers_generate_pre %{SOURCE7} trusted %sysusers_generate_pre %{SOURCE8} obsolete +%sysusers_generate_pre %{SOURCE9} hardware +%sysusers_generate_pre %{SOURCE10} wheel %install mkdir -p %{buildroot}%{_sysusersdir} @@ -135,6 +156,8 @@ install -m 644 %{SOURCE5} %{buildroot}%{_sysusersdir}/system-user-man.conf install -m 644 %{SOURCE6} %{buildroot}%{_sysusersdir}/system-user-news.conf install -m 644 %{SOURCE7} %{buildroot}%{_sysusersdir}/system-group-trusted.conf install -m 644 %{SOURCE8} %{buildroot}%{_sysusersdir}/system-group-obsolete.conf +install -m 644 %{SOURCE9} %{buildroot}%{_sysusersdir}/system-group-hardware.conf +install -m 644 %{SOURCE10} %{buildroot}%{_sysusersdir}/system-group-wheel.conf %pre -n system-user-uucp -f uucp.pre %pre -n system-user-games -f games.pre @@ -144,6 +167,8 @@ install -m 644 %{SOURCE8} %{buildroot}%{_sysusersdir}/system-group-obsolete.conf %pre -n system-user-news -f news.pre %pre -n system-group-trusted -f trusted.pre %pre -n system-group-obsolete -f obsolete.pre +%pre -n system-group-hardware -f hardware.pre +%pre -n system-group-wheel -f wheel.pre %files -n system-user-uucp %defattr(-,root,root) @@ -181,4 +206,12 @@ install -m 644 %{SOURCE8} %{buildroot}%{_sysusersdir}/system-group-obsolete.conf %defattr(-,root,root) %{_sysusersdir}/system-group-obsolete.conf +%files -n system-group-hardware +%defattr(-,root,root) +%{_sysusersdir}/system-group-hardware.conf + +%files -n system-group-wheel +%defattr(-,root,root) +%{_sysusersdir}/system-group-wheel.conf + %changelog