1
0
mirror of https://github.com/rancher/os.git synced 2025-07-02 01:31:48 +00:00
os/vendor/github.com/rancher/docker-from-scratch/selinux/selinux_amd64.go
2016-02-23 16:56:27 -08:00

11 lines
243 B
Go

package selinux
// #cgo pkg-config: libselinux
// #include <selinux/selinux.h>
import "C"
func SetFileContext(path string, context string) (int, error) {
ret, err := C.setfilecon(C.CString(path), C.CString(context))
return int(ret), err
}