aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--swaylock/CMakeLists.txt6
-rw-r--r--swaylock/pam/swaylock6
2 files changed, 12 insertions, 0 deletions
diff --git a/swaylock/CMakeLists.txt b/swaylock/CMakeLists.txt
index 69fe4252..977cc2f7 100644
--- a/swaylock/CMakeLists.txt
+++ b/swaylock/CMakeLists.txt
@@ -27,3 +27,9 @@ install(
DESTINATION bin
COMPONENT runtime
)
+
+install(
+ FILES ${CMAKE_CURRENT_SOURCE_DIR}/pam/swaylock
+ DESTINATION /etc/pam.d/
+ COMPONENT data
+)
diff --git a/swaylock/pam/swaylock b/swaylock/pam/swaylock
new file mode 100644
index 00000000..7ea7a608
--- /dev/null
+++ b/swaylock/pam/swaylock
@@ -0,0 +1,6 @@
+#
+# PAM configuration file for the swaylock screen locker. By default, it includes
+# the 'system-auth' configuration file (see /etc/pam.d/login)
+#
+
+auth include system-auth