From a25ccbd8f2d5198e1b9f63d6ae944635e2ff64e7 Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Wed, 8 Sep 2021 15:05:46 -0500 Subject: [PATCH] build: install pam files --- meson.build | 3 +++ pam/meson.build | 9 +++++++++ pam/start-stop-daemon | 6 ++++++ pam/supervise-daemon | 6 ++++++ 4 files changed, 24 insertions(+) create mode 100644 pam/meson.build create mode 100644 pam/start-stop-daemon create mode 100644 pam/supervise-daemon diff --git a/meson.build b/meson.build index 51adee4a..3b787086 100644 --- a/meson.build +++ b/meson.build @@ -164,6 +164,9 @@ subdir('etc') subdir('init.d') subdir('local.d') subdir('man') +if get_option('pam') +subdir('pam') + endif if get_option('pkgconfig') subdir('pkgconfig') endif diff --git a/pam/meson.build b/pam/meson.build new file mode 100644 index 00000000..81c019ea --- /dev/null +++ b/pam/meson.build @@ -0,0 +1,9 @@ +pam_dir = get_option('sysconfdir') / 'pam.d' + +pam_files = [ + 'start-stop-daemon', + 'supervise-daemon', + ] + +install_data(pam_files, + install_dir : pam_dir) diff --git a/pam/start-stop-daemon b/pam/start-stop-daemon new file mode 100644 index 00000000..a1bada22 --- /dev/null +++ b/pam/start-stop-daemon @@ -0,0 +1,6 @@ +#%PAM-1.0 + +auth required pam_permit.so +account required pam_permit.so +password required pam_deny.so +session optional pam_limits.so diff --git a/pam/supervise-daemon b/pam/supervise-daemon new file mode 100644 index 00000000..a1bada22 --- /dev/null +++ b/pam/supervise-daemon @@ -0,0 +1,6 @@ +#%PAM-1.0 + +auth required pam_permit.so +account required pam_permit.so +password required pam_deny.so +session optional pam_limits.so