teknoraver / rpms / systemd

Forked from rpms/systemd 2 months ago
Clone

Blame 0001-pam-align-second-and-third-columns.patch

09f814
From 9efb224443d819b7d64ec76cb94c8aa625a8abf2 Mon Sep 17 00:00:00 2001
09f814
From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
09f814
Date: Wed, 23 Nov 2022 16:05:48 +0100
09f814
Subject: [PATCH 1/2] pam: align second and third columns
09f814
09f814
In our template file, we have jinja2 template markers, so the file
09f814
looks fairly messy. But once it's rendered, it looks pretty clean, except
09f814
that the columns are unaligned becuase of "-" in some lines in the first
09f814
column. Let's make them aligned.
09f814
---
09f814
 src/login/systemd-user.in | 18 +++++++++---------
09f814
 1 file changed, 9 insertions(+), 9 deletions(-)
09f814
09f814
diff --git a/src/login/systemd-user.in b/src/login/systemd-user.in
09f814
index 39bcbd71fe..d5597d28cb 100644
09f814
--- a/src/login/systemd-user.in
09f814
+++ b/src/login/systemd-user.in
09f814
@@ -4,18 +4,18 @@
09f814
 # Used by systemd --user instances.
09f814
 
09f814
 {% if ENABLE_HOMED %}
09f814
--account sufficient pam_systemd_home.so
09f814
+-account  sufficient pam_systemd_home.so
09f814
 {% endif %}
09f814
-account sufficient pam_unix.so no_pass_expiry
09f814
-account required pam_permit.so
09f814
+account  sufficient pam_unix.so no_pass_expiry
09f814
+account  required pam_permit.so
09f814
 
09f814
 {% if HAVE_SELINUX %}
09f814
-session required pam_selinux.so close
09f814
-session required pam_selinux.so nottys open
09f814
+session  required pam_selinux.so close
09f814
+session  required pam_selinux.so nottys open
09f814
 {% endif %}
09f814
-session required pam_loginuid.so
09f814
-session optional pam_keyinit.so force revoke
09f814
+session  required pam_loginuid.so
09f814
+session  optional pam_keyinit.so force revoke
09f814
 {% if ENABLE_HOMED %}
09f814
--session optional pam_systemd_home.so
09f814
+-session  optional pam_systemd_home.so
09f814
 {% endif %}
09f814
-session optional pam_systemd.so
09f814
+session  optional pam_systemd.so
09f814
-- 
09f814
2.38.1
09f814