forked from Controls/gitea-pages
more SELinux details
This commit is contained in:
@@ -76,6 +76,14 @@ ausearch -ts 14:28 --raw | audit2allow -M my-application
|
||||
|
||||
This will create a `my-application.te` policy file with the source code (e.g. to be modified and distributed with Ansible or Puppet) and the copiled `my-application.pp` policy file.
|
||||
|
||||
If you just need the TE source code as output (e.g. for Puppet), then do
|
||||
|
||||
```bash
|
||||
ausearch -ts 14:28 --raw | audit2allow -r -m my-application
|
||||
```
|
||||
|
||||
See [SELinux Configuration](../configuration/selinux_configuration)` how to add such a module to Hiera for Puppet.
|
||||
|
||||
To install the new SELinux policy file run
|
||||
```bash
|
||||
semodule --install my-application.pp
|
||||
|
||||
Reference in New Issue
Block a user