Gitiles
Code Review
Sign In
gerrit.openbmc.org
/
mdmillerii
/
openbmc
/
40d8f44b51f83548f7ca8df062dd7435b784c0a8
/
.
/
meta-security
/
meta-hardening
/
recipes-extended
/
sudo
/
sudo_%.bbappend
blob: a31c081feb701c814dc8f7697e81d86dad410a69 [
file
] [
log
] [
blame
]
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
}