Files
OpenBMC/meta-security/meta-hardening/recipes-extended/sudo/sudo_%.bbappend
T
2026-04-23 17:07:55 +08:00

8 lines
260 B
Plaintext

PACKAGECONFIG:append:harden = " pam-wheel"
do_install:append:harden () {
if [ "${@bb.utils.contains('DISABLE_ROOT', 'True', 'yes', 'no', d)}" = "yes" ]; then
sed -i -e 's:root ALL=(ALL) ALL:#root ALL=(ALL) ALL:' ${D}${sysconfdir}/sudoers
fi
}