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
This commit is contained in:
Wolfgang Engel 2017-07-17 10:09:37 +00:00 committed by Git OBS Bridge
commit ee78d1de27
7 changed files with 216 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -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

16
pam_dbus-0.2.1.3.dif Normal file
View File

@ -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">
<busconfig>
- <!-- <policy at_console="true">-->
- <policy context="default">
+ <policy at_console="true">
<allow own="de.nomeata.pam_dbus"/>
</policy>
<policy user="root">

3
pam_dbus-0.2.1.3.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b609c2d46e15892e30f0e2e5725d711e51df8a9300529e2636951d9f3c79ea71
size 12770

3
pam_dbus-rpmlintrc Normal file
View File

@ -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.*")

80
pam_dbus.8 Normal file
View File

@ -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 <mail@joachim-breitner\&.de>

14
pam_dbus.changes Normal file
View File

@ -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

77
pam_dbus.spec Normal file
View File

@ -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