1
0
mirror of synced 2026-05-02 22:42:51 +00:00

Do not copy host sudoers in guest.

As noticed by Dmitry Nedospasov (Cf. [1]), sudoers file should not be
copied by default.

Move this hook to a role, and add a warning about this in role.

[1] http://xen-tools.org/pipermail/xen-tools-dev/2010-July/000146.html
This commit is contained in:
Stéphane Jourdois
2010-07-23 22:10:29 +02:00
committed by Dmitry Nedospasov
parent 97ecedde5f
commit 77a3876cbe
10 changed files with 46 additions and 337 deletions

View File

@@ -31,29 +31,6 @@ cp /etc/timezone ${prefix}/etc
cp /etc/localtime ${prefix}/etc
#
# If the host has sudo then copy the configuration file, and install
# the package
#
if [ -e /etc/sudoers ]; then
logMessage Installing SUDO too.
#
# Copy file and fixup permissions.
#
cp /etc/sudoers ${prefix}/etc
chown root:root ${prefix}/etc/sudoers
chmod 440 ${prefix}/etc/sudoers
#
# Install sudo
#
installDebianPackage ${prefix} sudo
fi
#
# Log our finish
#