mirror of
https://github.com/rancher/os.git
synced 2025-06-19 03:31:55 +00:00
12 lines
236 B
Go
12 lines
236 B
Go
|
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
|
||
|
}
|