Gitiles
Code Review
Sign In
gerrit.openbmc.org
/
openbmc
/
openbmc
/
7e0e3c0c6a2cd4e76ebca17ed16a37155992025e
/
.
/
meta-security
/
meta-hardening
/
recipes-extended
/
sudo
/
sudo_%.bbappend
blob: 2860e8aa4214b05ef1aa6fc87d7abda121757fcd [
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
}