From 148837f0e8826d67ad393474a41877a7f21ae2a0 Mon Sep 17 00:00:00 2001 From: gptlang <121417512+gptlang@users.noreply.github.com> Date: Mon, 5 Feb 2024 08:31:18 +0000 Subject: [PATCH] README.md: Add instructions to configure SELinux Amended-by: Alberto Bertogli Adjusted commit message, adjusted wording in the docs. --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 982bf52..7af5085 100644 --- a/README.md +++ b/README.md @@ -61,6 +61,14 @@ sudo cp etc/systemd/dns-to-https/* /etc/systemd/system/ sudo systemctl dnss enable ``` +On systems with SELinux, like Fedora, you might see hidden errors. In that +case, run this to set the security context for the binary: + +```sh +sudo semanage fcontext -a -t bin_t "/usr/local/bin/dnss" +sudo restorecon -v /usr/local/bin/dnss +``` + ## Examples