Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sudo: PAM unable to resolve symbol: pam_sm_authenticate #27

Open
Idriel opened this issue Dec 16, 2024 · 1 comment
Open

sudo: PAM unable to resolve symbol: pam_sm_authenticate #27

Idriel opened this issue Dec 16, 2024 · 1 comment

Comments

@Idriel
Copy link

Idriel commented Dec 16, 2024

Hi,

I tried to test build and got following error.
go build -buildmode=c-shared -o test-sudo.so

In /etc/pam.d/sudo I add
auth sufficient /home/user/test-sudo/test-sudo.so

When executing: sudo echo "test" in /var/log/auth.log I am getting error.

sudo: PAM unable to resolve symbol: pam_sm_authenticate
sudo: PAM unable to resolve symbol: pam_sm_setcred

Do you have any idea what it could be?

Thank you.

@msteinert
Copy link
Owner

It looks like those symbols are defined in the pam_deny.so module. Try loading that module or linking your test module with it.

https://github.com/linux-pam/linux-pam/blob/a2fb0dd306db943e4165f530534b01d00298065f/modules/pam_deny/pam_deny.c#L13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants