Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 750524 - sys-auth/pambase-20201020: pam.d/system-auth has pam_libcap.so but sys-libs/libcap +pam provides pam_cap.so
Summary: sys-auth/pambase-20201020: pam.d/system-auth has pam_libcap.so but sys-libs/l...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mikle Kolyada (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-21 07:39 UTC by Bernd Feige
Modified: 2020-10-30 08:06 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bernd Feige 2020-10-21 07:39:54 UTC
For some time now, sys-auth/pambase installs a pam.d/system-auth file containing the line
-session        optional        pam_libcap.so

However, the pam file installed by sys-libs/libcap +pam is called pam_cap.so, not pam_libcap.so. Could you please check?

Reproducible: Always
Comment 1 Arfrever Frehtes Taifersar Arahesis 2020-10-26 12:41:20 UTC
Commit 405452a4aa5a9ae06169b0aa1c394a4cae9c1c5c (https://gitweb.gentoo.org/proj/pambase.git/commit/?id=405452a4aa5a9ae06169b0aa1c394a4cae9c1c5c) present in >=sys-auth/pambase-20200804 introduced this regression:

--- a/system-auth.in
+++ /dev/null
...
-#if HAVE_LIBCAP
-auth           optional        pam_cap.so
-#endif

--- /dev/null
+++ b/templates/system-auth.tpl
...
+{% if libcap -%}
+-session        optional        pam_libcap.so
+{% endif -%}
Comment 2 Larry the Git Cow gentoo-dev 2020-10-26 22:49:54 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/pambase.git/commit/?id=47a7d6f7477ac279b271babd970d2b4b6839fdb5

commit 47a7d6f7477ac279b271babd970d2b4b6839fdb5
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2020-10-26 21:15:18 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2020-10-26 22:48:39 +0000

    templates/system-auth.tpl: fix libcap module name
    
    Bug: https://bugs.gentoo.org/750524
    Signed-off-by: Sam James <sam@gentoo.org>

 templates/system-auth.tpl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 3 Larry the Git Cow gentoo-dev 2020-10-27 00:17:15 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=72038665ef97d89a5e96a7752e4d147b75f0a06c

commit 72038665ef97d89a5e96a7752e4d147b75f0a06c
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2020-10-27 00:16:18 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2020-10-27 00:17:07 +0000

    sys-auth/pambase: bump to 20201026
    
    Sam James (3):
          templates/system-login.tpl: always need faillock
          templates/system-auth.tpl: skip pam_unix with krb5
          templates/system-auth.tpl: fix libcap module name
    
    Bug: https://bugs.gentoo.org/750524
    Bug: https://bugs.gentoo.org/748405
    Package-Manager: Portage-3.0.8, Repoman-3.0.2
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-auth/pambase/Manifest                |  1 +
 sys-auth/pambase/pambase-20201026.ebuild | 99 ++++++++++++++++++++++++++++++++
 2 files changed, 100 insertions(+)
Comment 4 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2020-10-30 08:06:29 UTC
Fix is in stable now.