From 51e5f9ca26546233617fc53d8d8fe33766dd317f Mon Sep 17 00:00:00 2001 From: Idar Lund Date: Mon, 7 Oct 2024 21:08:05 +0200 Subject: [PATCH] add instructions about SELinux distributions (#3673) --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index a9401a9c..a7626ced 100644 --- a/README.md +++ b/README.md @@ -1708,6 +1708,13 @@ WantedBy=multi-user.target EOF ``` +If SELinux is enabled (for instance in case of RedHat, Rocky, CentOS++), add correct security context: + +```sh +semanage fcontext -a -t bin_t /usr/local/bin/mediamtx +restorecon -Fv /usr/local/bin/mediamtx +``` + Enable and start the service: ```sh