diff options
-rw-r--r-- | meson.build | 3 | ||||
-rw-r--r-- | pam/meson.build | 9 | ||||
-rw-r--r-- | pam/start-stop-daemon | 6 | ||||
-rw-r--r-- | pam/supervise-daemon | 6 |
4 files changed, 24 insertions, 0 deletions
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 |