From 31407f24afc423dde985de381930bdb0213d4daf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Graber?= Date: Mon, 12 Feb 2024 16:12:06 -0500 Subject: [PATCH] incus-agent: Fix SELinux MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Graber --- generators/incus-agent.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/generators/incus-agent.go b/generators/incus-agent.go index f12e59d7..992a5967 100644 --- a/generators/incus-agent.go +++ b/generators/incus-agent.go @@ -77,6 +77,9 @@ if [ ! -e "${PREFIX}/incus-agent" ] && [ -e "${PREFIX}/lxd-agent" ]; then ln -s lxd-agent "${PREFIX}"/incus-agent fi +# Attempt to restore SELinux labels. +restorecon -R "${PREFIX}" >/dev/null 2>&1 || true + exit 0 `