lib: abstract out selinux call

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
Vincent Batts 2018-01-22 16:52:31 -05:00
parent 8ea79e755f
commit e53b0a055a
Signed by: vbatts
GPG key ID: 10937E57733F1362
3 changed files with 17 additions and 2 deletions

9
lib/config_linux.go Normal file
View file

@ -0,0 +1,9 @@
// +build linux
package lib
import selinux "github.com/opencontainers/selinux/go-selinux"
func selinuxEnabled() bool {
return selinux.GetEnabled()
}