1
0
mirror of https://github.com/rancher/os.git synced 2025-09-05 00:37:12 +00:00

Repair build for arm

and make sure CI breaks if arm is broken
This commit is contained in:
Ivan Mikushin
2016-02-25 11:17:21 -08:00
parent a60d9059d4
commit ac1b6a6797
5 changed files with 11 additions and 5 deletions

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
}