1
0
mirror of https://github.com/rancher/os.git synced 2025-07-06 19:38:37 +00:00
os/selinux/selinux.go
2016-02-19 16:11:32 -08:00

14 lines
253 B
Go

// +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
}