summaryrefslogtreecommitdiffstats
path: root/swaylock/pam
diff options
context:
space:
mode:
authorLibravatar sghctoma <sghctoma@gmail.com>2018-08-30 09:58:57 +0200
committerLibravatar sghctoma <sghctoma@gmail.com>2018-08-30 09:58:57 +0200
commit6de777a986e1b8d38e5030106f2abb937eca6232 (patch)
tree2fd9292d719ddb849e3a244c567fe9015524848d /swaylock/pam
parentFix SYSCONFDIR to include "prefix" (diff)
downloadsway-6de777a986e1b8d38e5030106f2abb937eca6232.tar.gz
sway-6de777a986e1b8d38e5030106f2abb937eca6232.tar.zst
sway-6de777a986e1b8d38e5030106f2abb937eca6232.zip
Add FreeBSD-specific PAM configuration
The "login" PAM configuration means somathing entirely different on FreeBSD than on Linux: if you try to authenticate as the calling user, it OKs the request without prompting for password. The "passwd" config implements the desired functionality, therefore it should be used by swaylock.
Diffstat (limited to 'swaylock/pam')
-rw-r--r--swaylock/pam/swaylock.freebsd6
-rw-r--r--swaylock/pam/swaylock.linux (renamed from swaylock/pam/swaylock)0
2 files changed, 6 insertions, 0 deletions
diff --git a/swaylock/pam/swaylock.freebsd b/swaylock/pam/swaylock.freebsd
new file mode 100644
index 00000000..603fc185
--- /dev/null
+++ b/swaylock/pam/swaylock.freebsd
@@ -0,0 +1,6 @@
1#
2# PAM configuration file for the swaylock screen locker. By default, it includes
3# the 'passwd' configuration file (see /etc/pam.d/passwd)
4#
5
6auth include passwd
diff --git a/swaylock/pam/swaylock b/swaylock/pam/swaylock.linux
index 6a36b0d6..6a36b0d6 100644
--- a/swaylock/pam/swaylock
+++ b/swaylock/pam/swaylock.linux