From 592a292c7bd29edadabbcb7a644d16e2da096e59 Mon Sep 17 00:00:00 2001 From: Idar Lund Date: Wed, 21 Aug 2024 10:34:53 +0200 Subject: [PATCH] add instructions about SELinux distributions --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index bc3d6f6b9c5..a0c3a469f33 100644 --- a/README.md +++ b/README.md @@ -1459,6 +1459,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