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

Support SELinux on arm/arm64

This commit is contained in:
Ivan Mikushin
2016-03-16 10:52:05 -07:00
parent aae4d086c9
commit a8dfd7089e
6 changed files with 7 additions and 16 deletions

11
selinux/selinux_linux.go Normal file
View File

@@ -0,0 +1,11 @@
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
}