mirror of
https://github.com/rancher/os.git
synced 2025-09-01 14:48:55 +00:00
Move in code from netconf and docker-from-scratch
This commit is contained in:
@@ -9,3 +9,8 @@ func InitializeSelinux() (int, error) {
|
||||
ret, err := C.selinux_init_load_policy(&enforce)
|
||||
return int(ret), err
|
||||
}
|
||||
|
||||
func SetFileContext(path string, context string) (int, error) {
|
||||
ret, err := C.setfilecon(C.CString(path), C.CString(context))
|
||||
return int(ret), err
|
||||
}
|
||||
|
Reference in New Issue
Block a user