From b84edfd253f7c4ded0bd476046648f36e5b55d99 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Sat, 30 Dec 2023 15:41:16 +0100 Subject: [PATCH] readme: add hint for selinux context --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index c73b090..1abccf9 100644 --- a/README.md +++ b/README.md @@ -161,6 +161,12 @@ curl -o /etc/systemd/system/wg-netns@.service https://raw.githubusercontent.com/ systemctl enable --now wg-netns@example.service ~~~ +If you are using SELinux, you have to change the SELinux context label, e.g. to `bin_t`, otherwise the service will not find the executable. + +~~~ bash +chcon -t bin_t /root/.local/bin/wg-netns +~~~ + ### Podman Integration A podman container can be easily attached to a network namespace created by `wg-netns`.