1
0
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:
Josh Curl
2016-10-19 16:21:35 -07:00
parent 1f4d23bf50
commit 691f7cb42c
16 changed files with 1567 additions and 38 deletions

View File

@@ -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
}