Ensure we chcon for redhat like distros

Change-Id: I1660cacefabd416934b41177d65b42a42a269686
This commit is contained in:
Joshua Harlow 2013-08-05 17:39:27 -07:00
parent 10348eaa50
commit 7090f2ca9f
2 changed files with 12 additions and 1 deletions

11
smithy
View File

@ -138,6 +138,17 @@ for pkg in packages:
fi
}
bootstrap_selinux()
{
# See if selinux is on.
if [ `getenforce` == "Enforcing" ]; then
# Ensure all yum api interacting binaries are ok to be used
echo "Enabling selinux for yum like binaries."
chcon -h "system_u:object_r:rpm_exec_t:s0" "$YUMFIND_CMD"
chcon -h "system_u:object_r:rpm_exec_t:s0" "$PWD/tools/yyoom"
fi
}
bootstrap_python_rpms()
{
local package_map=$(python -c "import yaml

View File

@ -1,5 +1,5 @@
# -*- sh -*-
STEPS="epel rpm_packages python_rpms"
STEPS="selinux epel rpm_packages python_rpms"
EPEL_RPM_URL="http://mirrors.kernel.org/fedora-epel/6/i386/epel-release-6-8.noarch.rpm"
DISTRO_CONFIG=conf/distros/rhel.yaml