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

passwd/unix_chkpwd fails with PAM 1.6.0 and linux-hardened kernel #92

Open
hd-gb opened this issue Feb 15, 2024 · 1 comment
Open

passwd/unix_chkpwd fails with PAM 1.6.0 and linux-hardened kernel #92

hd-gb opened this issue Feb 15, 2024 · 1 comment

Comments

@hd-gb
Copy link

hd-gb commented Feb 15, 2024

Hi,

I originally created this issue in PAM, see https://github.com/linux-pam/linux-pam/issues/768. But they pointed out that this might be possibly caused by the restricted access to unix_chkpwd when using the hardened kernel. So I was hoping that maybe you guys could help me to figure it out. :)


I am using Arch Linux with the latest linux-hardened kernel.

Since pam 1.6.0, I get the following error when running passwd as root:

[root@archlinux ~]# uname -a 
Linux archlinux 6.7.4-hardened1-1-hardened #1 SMP PREEMPT_DYNAMIC Tue, 13 Feb 2024 19:05:48 +0000 x86_64 GNU/Linux
[root@archlinux ~]# pacman -Q | grep -w pam
pam 1.6.0-4
[root@archlinux ~]# passwd
passwd: Authentication failure
passwd: password unchanged

Non-root users are not affected. Downgrading to PAM 1.5.3 solves the issue. Also this does not occur when using the stock linux kernel.

I attached the strace output here for further analysis.

Would be grateful for any help :)

@hd-gb
Copy link
Author

hd-gb commented Mar 27, 2024

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

1 participant