Skip to content

Commit

Permalink
selinux
Browse files Browse the repository at this point in the history
add security context to binary
  • Loading branch information
idarlund authored Aug 21, 2024
1 parent 3700d5e commit 1c8f035
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1459,6 +1459,13 @@ WantedBy=multi-user.target
EOF
```

For SELinux distros (RedHat, Rocky, CentOS++), add correct security context:

```
semanage fcontext -a -t bin_t /usr/local/bin/mediamtx
restorecon -Fv /usr/local/bin/mediamtx
```

Enable and start the service:

```sh
Expand Down

0 comments on commit 1c8f035

Please sign in to comment.