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.
This commit is contained in:
parent
01e7492d70
commit
2376a9c5d7
13
meson.build
13
meson.build
@ -24,7 +24,16 @@ executable(
|
|||||||
install: true
|
install: true
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if is_freebsd
|
||||||
install_data(
|
install_data(
|
||||||
'pam/swaylock',
|
'pam/swaylock.freebsd',
|
||||||
install_dir: sysconfdir + '/pam.d/'
|
install_dir: sysconfdir + '/pam.d/',
|
||||||
|
rename: 'swaylock'
|
||||||
)
|
)
|
||||||
|
else
|
||||||
|
install_data(
|
||||||
|
'pam/swaylock.linux',
|
||||||
|
install_dir: sysconfdir + '/pam.d/',
|
||||||
|
rename: 'swaylock'
|
||||||
|
)
|
||||||
|
endif
|
||||||
|
6
pam/swaylock.freebsd
Normal file
6
pam/swaylock.freebsd
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
#
|
||||||
|
# PAM configuration file for the swaylock screen locker. By default, it includes
|
||||||
|
# the 'passwd' configuration file (see /etc/pam.d/passwd)
|
||||||
|
#
|
||||||
|
|
||||||
|
auth include passwd
|
Loading…
Reference in New Issue
Block a user