blob: 2860e8aa4214b05ef1aa6fc87d7abda121757fcd [file] [log] [blame]
Andrew Geisslercc589282020-09-18 13:34:40 -05001
Andrew Geissler7e0e3c02022-02-25 20:34:39 +00002PACKAGECONFIG: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}