mirror of
https://github.com/rancher/os.git
synced 2025-07-02 01:31:48 +00:00
11 lines
243 B
Go
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
|
|
}
|