Группа :: Система/Настройка/Прочее
Пакет: pve-lxc
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: lxc-alt-remove-dependency-on-policycoreutils.patch
Скачать
Скачать
From 688b1f29bcc95674e709a086609ee2f0e4644db6 Mon Sep 17 00:00:00 2001
From: Andrew A. Vasilyev <andy@altlinux.org>
Date: Thu, 9 Jan 2020 19:26:14 +0300
Subject: [PATCH] remove dependency on policycoreutils
---
lxc/config/init/common/lxc-net.in | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git lxc/config/init/common/lxc-net.in lxc/config/init/common/lxc-net.in
index df9f118..6f53849 100644
--- lxc/config/init/common/lxc-net.in
+++ lxc/config/init/common/lxc-net.in
@@ -24,6 +24,8 @@ LXC_IPV6_MASK=""
LXC_IPV6_NETWORK=""
LXC_IPV6_NAT="false"
+RESTORECON="/sbin/restorecon"
+
[ ! -f $distrosysconfdir/lxc ] || . $distrosysconfdir/lxc
use_iptables_lock="-w"
@@ -84,8 +86,8 @@ start() {
# can't write its pid into, so we restorecon it (to var_run_t)
if [ ! -d "${varrun}" ]; then
mkdir -p "${varrun}"
- if which restorecon >/dev/null 2>&1; then
- restorecon "${varrun}"
+ if [ -x ${RESTORECON} ]; then
+ ${RESTORECON} "${varrun}"
fi
fi
--
libgit2 0.28.4