1
0
mirror of https://github.com/rancher/os.git synced 2025-09-07 01:31:06 +00:00

Enable SELinux

This commit is contained in:
Josh Curl
2016-02-19 16:11:32 -08:00
parent 90c8de9c0a
commit f28d463504
12 changed files with 71 additions and 2 deletions

13
selinux/selinux.go Normal file
View File

@@ -0,0 +1,13 @@
// +build linux
package selinux
// #cgo pkg-config: libselinux libsepol
// #include <selinux/selinux.h>
import "C"
func InitializeSelinux() (int, error) {
enforce := C.int(0)
ret, err := C.selinux_init_load_policy(&enforce)
return int(ret), err
}