mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-06-07 13:52:40 -04:00
fix
This commit is contained in:
parent
f023651c98
commit
a969fa350e
1 changed files with 6 additions and 0 deletions
|
@ -46,9 +46,14 @@ https://github.com/rspamd/rspamd/issues/5137" >&2
|
|||
exit 1
|
||||
fi
|
||||
|
||||
command -v pam_faillock_output &>/dev/null
|
||||
|
||||
## Named constants.
|
||||
pam_faillock_state_dir="/var/lib/security-misc/faillock"
|
||||
|
||||
[[ -v PAM_USER ]] || PAM_USER=""
|
||||
[[ -v SUDO_USER ]] || SUDO_USER=""
|
||||
|
||||
## Debugging.
|
||||
who_ami="$(whoami)"
|
||||
true "$0: who_ami: $who_ami"
|
||||
|
@ -72,6 +77,7 @@ if [ ! "$grep_result" = "" ]; then
|
|||
|
||||
## https://forums.whonix.org/t/etc-security-hardening-console-lockdown/8592
|
||||
|
||||
console_allowed=""
|
||||
if id --name --groups --zero -- "$PAM_USER" | grep --quiet --null-data --line-regexp --fixed-strings -- "console"; then
|
||||
console_allowed=true
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue