From da8e6cf85d1975e0db36f7291484e7dc64bf50ec41d9f7d09345dcd76e4d4369 Mon Sep 17 00:00:00 2001 From: Stanislav Brabec Date: Fri, 12 Sep 2014 17:54:43 +0000 Subject: [PATCH] Accepting request 248084 from home:sbrabec:branches:Base:System - Install runuser and runuser-l PAM file (runuser.pamd, bnc#892079). OBS-URL: https://build.opensuse.org/request/show/248084 OBS-URL: https://build.opensuse.org/package/show/Base:System/util-linux?expand=0&rev=262 --- python-libmount.changes | 6 ++++++ python-libmount.spec | 5 +++++ runuser.pamd | 5 +++++ util-linux-systemd.changes | 6 ++++++ util-linux-systemd.spec | 5 +++++ util-linux.changes | 6 ++++++ util-linux.spec | 5 +++++ 7 files changed, 38 insertions(+) create mode 100644 runuser.pamd diff --git a/python-libmount.changes b/python-libmount.changes index f388bb8..0afc358 100644 --- a/python-libmount.changes +++ b/python-libmount.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Sep 8 21:04:34 CEST 2014 - sbrabec@suse.cz + +- Install runuser and runuser-l PAM file + (runuser.pamd, bnc#892079). + ------------------------------------------------------------------- Wed Sep 3 16:21:57 CEST 2014 - sbrabec@suse.cz diff --git a/python-libmount.spec b/python-libmount.spec index f67afdd..cb38091 100644 --- a/python-libmount.spec +++ b/python-libmount.spec @@ -141,6 +141,7 @@ Source10: su.pamd Source11: su.default Source12: ftp://ftp.kernel.org/pub/linux/utils/util-linux/v2.25/%{_name}-%{version}.tar.sign Source13: %{_name}.keyring +Source14: runuser.pamd # TODO: split to separate package Source40: klogconsole.tar.bz2 # XXX: Run a program in a new session and with controlling tty @@ -626,6 +627,8 @@ mkdir -p %{buildroot}{%{_sysconfdir}/{init.d,pam.d,default},%{_mandir}/man{1,8}, install -m 644 %{SOURCE51} %{buildroot}%{_sysconfdir}/blkid.conf install -m 644 %{SOURCE8} %{buildroot}%{_sysconfdir}/pam.d/login install -m 644 %{SOURCE9} %{buildroot}%{_sysconfdir}/pam.d/remote +install -m 644 %{SOURCE14} %{buildroot}%{_sysconfdir}/pam.d/runuser +install -m 644 %{SOURCE14} %{buildroot}%{_sysconfdir}/pam.d/runuser-l %if %{with enable_su} install -m 644 %{SOURCE10} %{buildroot}%{_sysconfdir}/pam.d/su install -m 644 %{SOURCE10} %{buildroot}%{_sysconfdir}/pam.d/su-l @@ -885,6 +888,8 @@ fi %config(noreplace) %{_sysconfdir}/blkid.conf %config(noreplace) %{_sysconfdir}/pam.d/login %config(noreplace) %{_sysconfdir}/pam.d/remote +%config(noreplace) %{_sysconfdir}/pam.d/runuser +%config(noreplace) %{_sysconfdir}/pam.d/runuser-l %if %{with enable_su} %config(noreplace) %{_sysconfdir}/pam.d/su %config(noreplace) %{_sysconfdir}/pam.d/su-l diff --git a/runuser.pamd b/runuser.pamd new file mode 100644 index 0000000..15d79c9 --- /dev/null +++ b/runuser.pamd @@ -0,0 +1,5 @@ +#%PAM-1.0 +# Note that runuser requires only "session" setting (and for example "auth sufficient pam_rootok.so" dummy line). +auth sufficient pam_rootok.so +session include common-session +session optional pam_xauth.so diff --git a/util-linux-systemd.changes b/util-linux-systemd.changes index f388bb8..0afc358 100644 --- a/util-linux-systemd.changes +++ b/util-linux-systemd.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Sep 8 21:04:34 CEST 2014 - sbrabec@suse.cz + +- Install runuser and runuser-l PAM file + (runuser.pamd, bnc#892079). + ------------------------------------------------------------------- Wed Sep 3 16:21:57 CEST 2014 - sbrabec@suse.cz diff --git a/util-linux-systemd.spec b/util-linux-systemd.spec index c7e7a82..f65182a 100644 --- a/util-linux-systemd.spec +++ b/util-linux-systemd.spec @@ -141,6 +141,7 @@ Source10: su.pamd Source11: su.default Source12: ftp://ftp.kernel.org/pub/linux/utils/util-linux/v2.25/%{_name}-%{version}.tar.sign Source13: %{_name}.keyring +Source14: runuser.pamd # TODO: split to separate package Source40: klogconsole.tar.bz2 # XXX: Run a program in a new session and with controlling tty @@ -626,6 +627,8 @@ mkdir -p %{buildroot}{%{_sysconfdir}/{init.d,pam.d,default},%{_mandir}/man{1,8}, install -m 644 %{SOURCE51} %{buildroot}%{_sysconfdir}/blkid.conf install -m 644 %{SOURCE8} %{buildroot}%{_sysconfdir}/pam.d/login install -m 644 %{SOURCE9} %{buildroot}%{_sysconfdir}/pam.d/remote +install -m 644 %{SOURCE14} %{buildroot}%{_sysconfdir}/pam.d/runuser +install -m 644 %{SOURCE14} %{buildroot}%{_sysconfdir}/pam.d/runuser-l %if %{with enable_su} install -m 644 %{SOURCE10} %{buildroot}%{_sysconfdir}/pam.d/su install -m 644 %{SOURCE10} %{buildroot}%{_sysconfdir}/pam.d/su-l @@ -885,6 +888,8 @@ fi %config(noreplace) %{_sysconfdir}/blkid.conf %config(noreplace) %{_sysconfdir}/pam.d/login %config(noreplace) %{_sysconfdir}/pam.d/remote +%config(noreplace) %{_sysconfdir}/pam.d/runuser +%config(noreplace) %{_sysconfdir}/pam.d/runuser-l %if %{with enable_su} %config(noreplace) %{_sysconfdir}/pam.d/su %config(noreplace) %{_sysconfdir}/pam.d/su-l diff --git a/util-linux.changes b/util-linux.changes index f388bb8..0afc358 100644 --- a/util-linux.changes +++ b/util-linux.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Sep 8 21:04:34 CEST 2014 - sbrabec@suse.cz + +- Install runuser and runuser-l PAM file + (runuser.pamd, bnc#892079). + ------------------------------------------------------------------- Wed Sep 3 16:21:57 CEST 2014 - sbrabec@suse.cz diff --git a/util-linux.spec b/util-linux.spec index 4bf720a..9406d50 100644 --- a/util-linux.spec +++ b/util-linux.spec @@ -141,6 +141,7 @@ Source10: su.pamd Source11: su.default Source12: ftp://ftp.kernel.org/pub/linux/utils/util-linux/v2.25/%{_name}-%{version}.tar.sign Source13: %{_name}.keyring +Source14: runuser.pamd # TODO: split to separate package Source40: klogconsole.tar.bz2 # XXX: Run a program in a new session and with controlling tty @@ -626,6 +627,8 @@ mkdir -p %{buildroot}{%{_sysconfdir}/{init.d,pam.d,default},%{_mandir}/man{1,8}, install -m 644 %{SOURCE51} %{buildroot}%{_sysconfdir}/blkid.conf install -m 644 %{SOURCE8} %{buildroot}%{_sysconfdir}/pam.d/login install -m 644 %{SOURCE9} %{buildroot}%{_sysconfdir}/pam.d/remote +install -m 644 %{SOURCE14} %{buildroot}%{_sysconfdir}/pam.d/runuser +install -m 644 %{SOURCE14} %{buildroot}%{_sysconfdir}/pam.d/runuser-l %if %{with enable_su} install -m 644 %{SOURCE10} %{buildroot}%{_sysconfdir}/pam.d/su install -m 644 %{SOURCE10} %{buildroot}%{_sysconfdir}/pam.d/su-l @@ -885,6 +888,8 @@ fi %config(noreplace) %{_sysconfdir}/blkid.conf %config(noreplace) %{_sysconfdir}/pam.d/login %config(noreplace) %{_sysconfdir}/pam.d/remote +%config(noreplace) %{_sysconfdir}/pam.d/runuser +%config(noreplace) %{_sysconfdir}/pam.d/runuser-l %if %{with enable_su} %config(noreplace) %{_sysconfdir}/pam.d/su %config(noreplace) %{_sysconfdir}/pam.d/su-l