git » dnss » commit 4444c22

README: Add instructions to configure SELinux

author gptlang
2024-02-05 08:31:18 UTC
committer Alberto Bertogli
2024-02-09 09:20:54 UTC
parent bf9ef4d0789636be69ecaf23a198514c2e636df4

README: Add instructions to configure SELinux

Amended-by: Alberto Bertogli <albertito@blitiri.com.ar>
  Adjusted commit message, adjusted wording in the docs.

README.md +8 -0

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