Gitiles
Code Review
Sign In
gerrit.openbmc.org
/
mdmillerii
/
openbmc
/
33c678b6f12eba8c5b4653e74fa76987d5d30ce0
/
.
/
meta-security
/
meta-hardening
/
recipes-extended
/
sudo
/
sudo_%.bbappend
blob: 97c5f492bd9b9a1ed6723caf92cff302f13fcd30 [
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
}