SELinux policy module, deploy script and instructions

This commit is contained in:
Viktor Berke
2018-01-17 23:08:44 +01:00
parent ad054d2f80
commit 3400b9a0ab
3 changed files with 67 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
#!/bin/sh
set -e
MODULE=${1}
# this will create a .mod file
checkmodule -M -m -o ${MODULE}.mod ${MODULE}.te
# this will create a compiled semodule
semodule_package -m ${MODULE}.mod -o ${MODULE}.pp
# this will install the module
semodule -i ${MODULE}.pp