Skip to content

Commit

Permalink
meson: Support "openembedded" OS for PAM configuration
Browse files Browse the repository at this point in the history
In Openembedded, same as Suse/Solaris: PAM files are common-*:
* PAM_FILE_INCLUDE_AUTH: common-auth
* PAM_FILE_INCLUDE_ACCOUNT: common-account
* PAM_FILE_INCLUDE_PASSWORD: common-password
* PAM_FILE_INCLUDE_SESSION: common-session

Signed-off-by: Yoann Congal <[email protected]>
  • Loading branch information
ycongal-smile committed Sep 5, 2024
1 parent e0c6725 commit 4913d8a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ endif

pam_include = get_option('pam_include')
if pam_include == ''
if ['suse', 'solaris'].contains(os_type)
if ['suse', 'solaris', 'openembedded'].contains(os_type)
pam_conf = {
'PAM_FILE_INCLUDE_AUTH': 'common-auth',
'PAM_FILE_INCLUDE_ACCOUNT': 'common-account',
Expand Down
2 changes: 1 addition & 1 deletion meson_options.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ option('polkitd_uid', type: 'string', value: '-', description: 'Fixed UID for us
option('privileged_group', type: 'string', value: 'wheel', description: 'Group to use for default privileged access')

option('authfw', type: 'combo', choices: ['pam', 'shadow', 'bsdauth'], value: 'pam', description: 'Authentication framework (pam/shadow)')
option('os_type', type: 'combo', choices: ['redhat', 'suse', 'gentoo', 'pardus', 'solaris', 'netbsd', 'lfs', ''], value: '', description: 'distribution or OS')
option('os_type', type: 'combo', choices: ['redhat', 'suse', 'gentoo', 'pardus', 'solaris', 'netbsd', 'lfs', 'openembedded', ''], value: '', description: 'distribution or OS')

option('pam_include', type: 'string', value: '', description: 'pam file to include')
option('pam_module_dir', type: 'string', value: '', description: 'directory to install PAM security module')
Expand Down

0 comments on commit 4913d8a

Please sign in to comment.