blob: a31c081feb701c814dc8f7697e81d86dad410a69 [file] [log] [blame]
Andrew Geisslercc589282020-09-18 13:34:40 -05001
2PACKAGECONFIG_append_harden = " pam-wheel"
3do_install_append_harden () {
4 if [ "${@bb.utils.contains('DISABLE_ROOT', 'True', 'yes', 'no', d)}" = "yes" ]; then
5 sed -i -e 's:root ALL=(ALL) ALL:#root ALL=(ALL) ALL:' ${D}${sysconfdir}/sudoers
6 fi
7}