Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 752027 - sys-auth/pambase-20201026[caps] PAM unable to resolve symbol: pam_sm_open_session due to sys-libs/libcap-2.44 doesn't provide the function (PATCH)
Summary: sys-auth/pambase-20201026[caps] PAM unable to resolve symbol: pam_sm_open_ses...
Status: RESOLVED DUPLICATE of bug 751946
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sam James
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2020-10-31 14:20 UTC by Attila Tóth
Modified: 2020-11-01 00:20 UTC (History)
3 users (show)

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


Attachments
libcap-ignore-non-relevant-functions.patch (libcap-ignore-non-relevant-functions.patch,1.79 KB, patch)
2020-10-31 14:27 UTC, Attila Tóth
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Attila Tóth 2020-10-31 14:20:43 UTC
sys-auth/pambase-20201020 started to propose the use of pam_cap.so (https://bugs.gentoo.org/750524) and error messages started to appear in logs upon any login, like these:
sshd[12345]: PAM unable to resolve symbol: pam_sm_open_session
sshd[12345]: PAM unable to resolve symbol: pam_sm_close_session
The underlying reason is that libcap's pam_cap.so doesn't provide functions pam looks for.

Reproducible: Always
Comment 1 Attila Tóth 2020-10-31 14:27:27 UTC
Created attachment 669428 [details, diff]
libcap-ignore-non-relevant-functions.patch

Proposed patch to silence the log messages about missing symbols.
Libcap currently implements pam_sm_authenticate and pam_sm_setcred.
The patch adds the others (pam_sm_acct_mgmt, pam_sm_chauthtok, pam_sm_close_session and pam_sm_open_session) returning PAM_IGNORE.
Handy until libcap would start implementing other functions.
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-11-01 00:20:56 UTC
I'll mark this as a duplicate of the other because I think (not had a chance to check yet), changing the realm in pambase for libcap was a regression but I need to investigate.

Thank you for the patch, we may end up using it depending on what the actual issue is!

*** This bug has been marked as a duplicate of bug 751946 ***