mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-11-28 06:00:26 -05:00
Don't break passwordless sudo in unrestricted admin mode
This commit is contained in:
parent
d267cf6761
commit
936c799cb5
1 changed files with 7 additions and 0 deletions
|
|
@ -8,6 +8,8 @@ set -o nounset
|
|||
set -o errtrace
|
||||
set -o pipefail
|
||||
|
||||
source /usr/libexec/helper-scripts/package_installed_check.sh
|
||||
|
||||
if [ -z "${PAM_USER:-}" ]; then
|
||||
true "$0: ERROR: Environment variable 'PAM_USER' is unset!"
|
||||
## 'exit 0' here to let the appropriate PAM module handle this.
|
||||
|
|
@ -19,6 +21,11 @@ if [ -z "${PAM_SERVICE:-}" ]; then
|
|||
exit 0
|
||||
fi
|
||||
|
||||
if ! pkg_installed 'user-sysmaint-split' ; then
|
||||
true "$0: INFO: user-sysmaint-split not installed. Proceeding, ok."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
kernel_cmdline=''
|
||||
if [ -r /proc/cmdline ]; then
|
||||
kernel_cmdline="$(cat /proc/cmdline)"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue