forked from pool/system-users
Accepting request 478630 from Base:System
- Add hardware access groups: kmem, lock, tty, audio, cdrom, dialout, disk, input, tape, video - Add group wheel OBS-URL: https://build.opensuse.org/request/show/478630 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/system-users?expand=0&rev=2
This commit is contained in:
commit
b1d31ba6c9
13
system-group-hardware.conf
Normal file
13
system-group-hardware.conf
Normal file
@ -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 - - -
|
2
system-group-wheel.conf
Normal file
2
system-group-wheel.conf
Normal file
@ -0,0 +1,2 @@
|
||||
# Type Name ID GECOS [HOME]
|
||||
g wheel -
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user