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

login warns about absent pam_lastlog.so #3789

Closed
zeha opened this issue Jan 11, 2025 · 1 comment · Fixed by #3815
Closed

login warns about absent pam_lastlog.so #3789

zeha opened this issue Jan 11, 2025 · 1 comment · Fixed by #3815
Labels
board/generic-aarch64 Generic aarch64 machine bug

Comments

@zeha
Copy link

zeha commented Jan 11, 2025

Describe the issue you are experiencing

When logging in on the local console, PAM warns about an outdated config referencing pam_lastlog.so. I imagine this is because the PAM config has not been updated, but PAM itself was.

What operating system image do you use?

generic-aarch64 (Generic UEFI capable aarch64 systems)

What version of Home Assistant Operating System is installed?

14.1

Did the problem occur after upgrading the Operating System?

No

Hardware details

aarch64 VM

Steps to reproduce the issue

  1. boot OS
  2. switch to terminal 2
  3. login as root
  4. journalctl -f

observe:

login[39471: PAM unable to dlopen(/lib/security/pam_lastlog.so): /lib/security/pam_lastlog.so: cannot open shared object file: No such file or directory
login[3947]: PAM adding faulty nodule: /lib/security/pam_lastlog.so

Anything in the Supervisor logs that might be useful for us?

not relevant

Anything in the Host logs that might be useful for us?

not relevant

System information

No response

Additional information

No response

@zeha zeha added the bug label Jan 11, 2025
sairon added a commit that referenced this issue Jan 21, 2025
Build of pam_lastlog.so was disabled by updating to v1.5.3 [1] yet the line
wasn't removed from the login modules. In upstream this was resolved by adding
a config option for turning the lastlog module and dynamic disabling of the
line including it. These changes neither a fix removing the config line were
not applied to 2024.02, so cherry-pick them here to fix the issue.

[1] https://github.com/linux-pam/linux-pam/releases/tag/v1.5.3

Fixes #3789
sairon added a commit that referenced this issue Jan 21, 2025
Build of pam_lastlog.so was disabled by updating to v1.5.3 [1] yet the line
wasn't removed from the login modules. In upstream this was resolved by adding
a config option for turning the lastlog module and dynamic disabling of the
line including it. These changes neither a fix removing the config line were
not applied to 2024.02, so cherry-pick them here to fix the issue.

* buildroot ff563b383d...3784884466 (2):
  > package/linux-pam: adjust login pam file for lastlog
  > package/linux-pam: add menuconfig option to build pam_lastlog.so

Fixes #3789

[1] https://github.com/linux-pam/linux-pam/releases/tag/v1.5.3
@sairon
Copy link
Member

sairon commented Jan 21, 2025

Thanks, I added a PR that should resolve the issue.

@sairon sairon added the board/generic-aarch64 Generic aarch64 machine label Jan 21, 2025
sairon added a commit that referenced this issue Jan 21, 2025
Build of pam_lastlog.so was disabled by updating to v1.5.3 [1] yet the line
wasn't removed from the login modules. In upstream this was resolved by adding
a config option for turning the lastlog module and dynamic disabling of the
line including it. These changes neither a fix removing the config line were
not applied to 2024.02, so cherry-pick them here to fix the issue.

* buildroot ff563b383d...3784884466 (2):
  > package/linux-pam: adjust login pam file for lastlog
  > package/linux-pam: add menuconfig option to build pam_lastlog.so

Fixes #3789

[1] https://github.com/linux-pam/linux-pam/releases/tag/v1.5.3
sairon added a commit that referenced this issue Jan 21, 2025
Build of pam_lastlog.so was disabled by updating to v1.5.3 [1] yet the line
wasn't removed from the login modules. In upstream this was resolved by adding
a config option for turning the lastlog module and dynamic disabling of the
line including it. These changes neither a fix removing the config line were
not applied to 2024.02, so cherry-pick them here to fix the issue.

* buildroot ff563b383d...3784884466 (2):
  > package/linux-pam: adjust login pam file for lastlog
  > package/linux-pam: add menuconfig option to build pam_lastlog.so

Fixes #3789

[1] https://github.com/linux-pam/linux-pam/releases/tag/v1.5.3

(cherry picked from commit af7b36e)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
board/generic-aarch64 Generic aarch64 machine bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants