blob: 97c5f492bd9b9a1ed6723caf92cff302f13fcd30 [file] [log] [blame]
Andrew Geisslercc589282020-09-18 13:34:40 -05001
Patrick Williams213cb262021-08-07 19:21:33 -05002PACKAGECONFIG:append_harden = " pam-wheel"
3do_install:append_harden () {
Andrew Geisslercc589282020-09-18 13:34:40 -05004 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}