Files
meta-security/meta-hardening/recipes-extended/sudo/sudo_%.bbappend
Armin Kuster 352e6498a4 meta-hardening: Convert to new override syntax
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2021-08-01 08:47:08 -07: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
}