From ee78d1de27bfc7e5e00b22b9160e57506508ee096edc5d2ec420f56909d0a4dd Mon Sep 17 00:00:00 2001 From: Wolfgang Engel Date: Mon, 17 Jul 2017 10:09:37 +0000 Subject: [PATCH] Accepting request 509370 from home:WernerFink:Factory New package compare with bug boo#1047964 OBS-URL: https://build.opensuse.org/request/show/509370 OBS-URL: https://build.opensuse.org/package/show/Linux-PAM/pam_dbus?expand=0&rev=1 --- .gitattributes | 23 ++++++++++++ pam_dbus-0.2.1.3.dif | 16 +++++++++ pam_dbus-0.2.1.3.tar.gz | 3 ++ pam_dbus-rpmlintrc | 3 ++ pam_dbus.8 | 80 +++++++++++++++++++++++++++++++++++++++++ pam_dbus.changes | 14 ++++++++ pam_dbus.spec | 77 +++++++++++++++++++++++++++++++++++++++ 7 files changed, 216 insertions(+) create mode 100644 .gitattributes create mode 100644 pam_dbus-0.2.1.3.dif create mode 100644 pam_dbus-0.2.1.3.tar.gz create mode 100644 pam_dbus-rpmlintrc create mode 100644 pam_dbus.8 create mode 100644 pam_dbus.changes create mode 100644 pam_dbus.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/pam_dbus-0.2.1.3.dif b/pam_dbus-0.2.1.3.dif new file mode 100644 index 0000000..24cd7f2 --- /dev/null +++ b/pam_dbus-0.2.1.3.dif @@ -0,0 +1,16 @@ +--- + data/pam_dbus.conf | 3 +-- + 1 file changed, 1 insertion(+), 2 deletions(-) + +--- data/pam_dbus.conf ++++ data/pam_dbus.conf 2017-07-11 08:43:18.343905071 +0000 +@@ -3,8 +3,7 @@ + "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd"> + + +- +- ++ + + + diff --git a/pam_dbus-0.2.1.3.tar.gz b/pam_dbus-0.2.1.3.tar.gz new file mode 100644 index 0000000..41e4726 --- /dev/null +++ b/pam_dbus-0.2.1.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b609c2d46e15892e30f0e2e5725d711e51df8a9300529e2636951d9f3c79ea71 +size 12770 diff --git a/pam_dbus-rpmlintrc b/pam_dbus-rpmlintrc new file mode 100644 index 0000000..99da7ba --- /dev/null +++ b/pam_dbus-rpmlintrc @@ -0,0 +1,3 @@ +from Config import * +addFilter(".*I:.*dbus-policy-allow-receive.*/etc/dbus-1/system.d/pam_dbus.conf.*") +addFilter(".*W:.*incorrect-fsf-address.*") diff --git a/pam_dbus.8 b/pam_dbus.8 new file mode 100644 index 0000000..ed0af7c --- /dev/null +++ b/pam_dbus.8 @@ -0,0 +1,80 @@ +.TH "PAM_DBUS" "8" "2017/05/18" "Linux-PAM Manual" "Linux-PAM Manual" +.SH "NAME" +pam_dbus \- PAM module for asking the logged in user for confirmation +.SH "SYNOPSIS" +.HP \w'\fBpam_dbus\&.so\fR\ 'u +\fBpam_dbus\&.so\fR +.SH "DESCRIPTION" +.PP +The simple PAM module +\fIpam_dbus\fR +will, when being used to authenticate a +(typically remote) user, use D-Bus to ask any currently logged +in (typically local) user if that is OK. +.SH "RETURN VALUES" +.PP +PAM_AUTH_ERR +.RS 4 +Access denied\&. +.RE +.PP +PAM_SUCCESS +.RS 4 +Access allowed\&. +.RE +.SH "FILES" +.PP +/etc/dbus-1/system.d/pam_dbus.conf +.RS 4 +Configuration of the policy for the PAM module \fIpam_dbus\fR\&. +.RE +.PP +/etc/xdg/autostart/pam-dbus-notify.desktop +.RS 4 +The Desktop Entry for the \fIpam-dbus\fR handler which +answers authentication requests done by PAM module \fIpam_dbus\fR\o&. +.RE +.SH "EXAMPLE" +To use \fBpam_dbus\fR a line +.RS 4 +.PP +.I auth\ \ \ \ \ required\ \ \ \ \ pam_dbus\&.so +.PP +.RE +as replacement or as addon line before the line +.RS 4 +.PP +.I auth\ \ \ \ \ include\ \ \ \ \ \ common\-auth +.PP +.RE +in one of the PAM configuration files +.IR sshd ,\ su ,\ su-l ,\ and\ sudo +below +.IR /etc/pam.d/ . +After +.I /usr/share/pam_dbus/pam-dbus-notify +had been started by +.I /etc/xdg/autostart/pam-dbus-notify.desktop +at login of a local user, this local user gets +notified on usage of +.IR sshd ,\ su ,\ su-l ,\ or\ sudo . +.SH "NOTES" +The system administrator is aware that every modified file below +.I /etc/pam.d/ +is on his own obligation. For this: after an update of one of the pam +packages, system upgrade, or system update, the system administrator +may check the pam configuration by comparing the modified files +with files having suffixes +.IR .rpmsave\ or\ .rpmnew +for required supplements in the modified pam configuration files. +.SH "BUGS" +Please read section +.BR NOTES . +.SH "SEE ALSO" +.PP +\fBpam.conf\fR(5), +\fBpam.d\fR(5), +\fBpam\fR(8) +.SH "AUTHOR" +.PP +\fIpam_dbus\fR was written by Joachim Breitner diff --git a/pam_dbus.changes b/pam_dbus.changes new file mode 100644 index 0000000..5126bb2 --- /dev/null +++ b/pam_dbus.changes @@ -0,0 +1,14 @@ +------------------------------------------------------------------- +Tue Jul 11 08:34:49 UTC 2017 - werner@suse.de + +- Add manual page with examples as well as notes how to use + and how to take care of pam_dbus configuration (boo#1039709) +- Add patch pam_dbus-0.2.1.3.dif to switch context policy + from "default" to at_console="true" (boo#1039709) + +------------------------------------------------------------------- +Thu May 18 10:56:17 UTC 2017 - werner@suse.de + +- Initial package pam_dbus 0.2.1.3 + PAM module asking the logged in user for confirmation + diff --git a/pam_dbus.spec b/pam_dbus.spec new file mode 100644 index 0000000..60186b3 --- /dev/null +++ b/pam_dbus.spec @@ -0,0 +1,77 @@ +# +# spec file for package pam_dbus +# +# Copyright (c) specCURRENT_YEAR SUSE LINUX Products GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + +%define commit 1d32154 +Name: pam_dbus +Version: 0.2.1.3 +Release: 0 +License: GPL-2.0+ +Summary: PAM module asking the logged in user for confirmation +Url: http://git.nomeata.de/?p=darcs-mirror-pam-dbus.debian.git;a=summary +Group: Productivity/Networking +Source0: http://git.nomeata.de/?p=darcs-mirror-pam-dbus.debian.git;a=snapshot;h=1d32154;sf=tgz#/%{name}-%{version}.tar.gz +Source1: pam_dbus.8 +Source2: pam_dbus-rpmlintrc +Patch0: pam_dbus-0.2.1.3.dif +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: dbus-1-devel +BuildRequires: dbus-1-glib-devel +BuildRequires: dbus-1-python +BuildRequires: gcc-c++ +BuildRequires: glib2-devel +BuildRequires: libtool +BuildRequires: pam-devel +Requires: python +Requires: python-base +Requires: python-gtk +Requires: python-notify +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%description +This simple pam module will, when being used to authenticate a +(typically remote) user, use D-Bus to ask any currently logged +in (typically local) user if that is ok. + +%prep +test -h %{name}-%{version} || ln -sf darcs-mirror-pam-dbus.debian-%{commit} %{name}-%{version} +%setup -q -D +%patch0 +sed -ri '/^PAM_MODDIR/{ s@/lib/@/%{_lib}/@p }' configure.ac +autoreconf -fis + +%build +%configure --disable-static +make %{?_smp_mflags} + +%install +make install DESTDIR=%{buildroot} +rm -vf %{buildroot}/%{_lib}/security/*.la +install -d %{buildroot}%{_mandir}/man8 +install -m 0644 %{S:1} %{buildroot}%{_mandir}/man8 + +%files +%defattr(-,root,root) +%doc README LICENSE +%config(noreplace) %{_sysconfdir}/dbus-1/system.d/%{name}.conf +%config(noreplace) %{_sysconfdir}/xdg/autostart/pam-dbus-notify.desktop +%attr(0755, root, root) /%{_lib}/security/%{name}.so +%dir %{_datadir}/%{name}/ +%attr(0755, root, root) %{_datadir}/%{name}/pam-dbus-notify +%{_mandir}/man8/%{name}.8* + +%changelog