1
0
mirror of https://github.com/rancher/os.git synced 2025-06-19 03:31:55 +00:00
os/selinux/selinux_linux.go

12 lines
236 B
Go
Raw Normal View History

2016-02-20 00:11:32 +00:00
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
}