From ca96d2bc6bbcf860d12b9d610509c155029fe3cc Mon Sep 17 00:00:00 2001 From: Sam James Date: Thu, 6 Aug 2020 22:46:40 +0000 Subject: pambase.py: rename system-service -> system-services Some of e.g. OpenRC's installed pam files assume 'system-services': ./supervise-daemon:2:session include system-services ./start-stop-daemon:2:session include system-services Signed-off-by: Sam James --- pambase.py | 2 +- templates/system-service.tpl | 4 ---- templates/system-services.tpl | 4 ++++ 3 files changed, 5 insertions(+), 5 deletions(-) delete mode 100644 templates/system-service.tpl create mode 100644 templates/system-services.tpl diff --git a/pambase.py b/pambase.py index 8f04870..d021b81 100755 --- a/pambase.py +++ b/pambase.py @@ -78,7 +78,7 @@ def parse_templates(processed_args): "su", "system-auth", "system-login", - "system-service" + "system-services" ] for template_name in templates: diff --git a/templates/system-service.tpl b/templates/system-service.tpl deleted file mode 100644 index cbfab6f..0000000 --- a/templates/system-service.tpl +++ /dev/null @@ -1,4 +0,0 @@ -auth sufficient pam_permit.so -account include system-auth -session optional pam_loginuid.so -{% include "templates/system-session.tpl" %} diff --git a/templates/system-services.tpl b/templates/system-services.tpl new file mode 100644 index 0000000..cbfab6f --- /dev/null +++ b/templates/system-services.tpl @@ -0,0 +1,4 @@ +auth sufficient pam_permit.so +account include system-auth +session optional pam_loginuid.so +{% include "templates/system-session.tpl" %} -- cgit v1.2.3-65-gdbad