mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-05-04 18:34:58 -04:00
21 lines
588 B
Bash
Executable file
21 lines
588 B
Bash
Executable file
#!/bin/bash
|
|
|
|
## Copyright (C) 2019 - 2024 ENCRYPTED SUPPORT LP <adrelanos@whonix.org>
|
|
## See the file COPYING for copying conditions.
|
|
|
|
## https://serverfault.com/questions/134471/success-n-control-syntax-in-pam-conf-pam-d-files
|
|
|
|
set -x
|
|
|
|
true "PAM_SERVICE: $PAM_SERVICE"
|
|
|
|
if [ "$PAM_SERVICE" = "login" ]; then
|
|
## FIXME:
|
|
## Creates unwanted journal log entry.
|
|
## pam_exec(login:account): /usr/libexec/security-misc/pam_only_if_login failed: exit code 1
|
|
exit 1
|
|
else
|
|
## exit success so [success=1 default=ignore] will result in skipping the
|
|
## next pam module.
|
|
exit 0
|
|
fi
|