Ensure we chcon for redhat like distros
Change-Id: I1660cacefabd416934b41177d65b42a42a269686
This commit is contained in:
parent
10348eaa50
commit
7090f2ca9f
11
smithy
11
smithy
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user