This will guide you in setting up fapolicyd
to work with the mattermost binary, and how to setup a system with fapolicyd
enabled.
You can find the official RHEL guide here under chapter 15.4.
- Install Mattermost on a rhel 8 box
- Install
fapolicyd
withsudo yum install fapolicyd
. Then start it withsystemctl start fapolicyd
- Add a rules file for Mattermost
sudo touch /etc/fapolicyd/rules.d/80-mattermost.rules
sudo nano /etc/fapolicyd/rules.d/80-mattermost.rules
- Add some rules for Mattermost.
allow perm=execute exe=/user/bin/sudo trust=1 : dir=/opt/mattermost/ all trust=0 allow perm=execute exe=/user/lib/systemd/systemd trust=1 : dir=/opt/mattermost/ all trust=0
- Check the rules took and add them
sudo fagenrules --check /usr/sbin/fagenrules: Rules have changed and should be updated sudo fagenrules --load
- At this stage you should be able to start Mattermost like normal, the plugins will fail.