This commit is contained in:
Patrick Schleizer 2025-11-10 02:10:25 -05:00
parent f2b7658542
commit ae1e2e3b52
No known key found for this signature in database
GPG key ID: CB8D50BB77BB3C48

View file

@ -22,10 +22,10 @@ fi
if [[ "$kernel_cmdline" =~ 'boot-role=sysmaint' ]]; then if [[ "$kernel_cmdline" =~ 'boot-role=sysmaint' ]]; then
if [ "$PAM_USER" != 'sysmaint' ]; then if [ "$PAM_USER" != 'sysmaint' ]; then
printf '%s\n' 'ERROR: Rejecting non-sysmaint account in sysmaint mode!' printf '%s\n' 'ERROR: Rejecting non-sysmaint account in sysmaint session!'
exit 1 exit 1
fi fi
true 'INFO: Running in sysmaint mode and logging into sysmaint account, allowing authentication to proceed.' true 'INFO: Running in sysmaint session and logging into sysmaint account, allowing authentication to proceed.'
exit 0 exit 0
else else
if ! output="$(/usr/libexec/helper-scripts/get-user-list)"; then if ! output="$(/usr/libexec/helper-scripts/get-user-list)"; then
@ -56,7 +56,7 @@ else
fi fi
if [ "$PAM_USER" = 'sysmaint' ]; then if [ "$PAM_USER" = 'sysmaint' ]; then
printf '%s\n' 'ERROR: Rejecting sysmaint account in user mode!' printf '%s\n' 'ERROR: Rejecting sysmaint account in user session!'
exit 1 exit 1
fi fi