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

hooks: move pam.d files into /usr/lib/pam.d #272

Draft
wants to merge 2 commits into
base: core24
Choose a base branch
from

Conversation

Meulengracht
Copy link
Member

@Meulengracht Meulengracht commented Nov 7, 2024

Leave /etc/pam.d empty for Core Desktop to experiment with their own per-snap profiles.

A little info surrounding profile loading, also see the man-pages

There are three directories, in which PAM is looking for the service files in the following order:

  • /etc/pam.d
  • /usr/lib/pam.d

If a file is not found in /etc/pam.d, it will be searched in /usr/lib/pam.d and afterwards in /usr/etc/pam.d.

Considering this function in the source: https://github.com/linux-pam/linux-pam/blob/37b416c152ed833dcc55c84068c77eb713748d24/libpam/pam_handlers.c#L293
it looks like this should be no issues

UPDATE It turned out that include files from pam.d files do only check in /etc/pam.d, which on the surface looks like to be a misalignment with the man-pages. Filed bug https://bugs.launchpad.net/ubuntu/+source/pam/+bug/2087827

REF: SNAPDENG-34125

…y for Core Desktop to experiment with their own per-snap profiles
…something desktop must take into account when mounting on top
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

Successfully merging this pull request may close these issues.

1 participant