Commit 902e1196 authored by Victor Marmol's avatar Victor Marmol

Merge pull request #6867 from pmorie/libcontainer-bug

Remove workaround for libcontainer Getfilecon bug
parents 3565a086 68f22a40
......@@ -31,17 +31,5 @@ func (kl *Kubelet) getRootDirContext() (string, error) {
}
// Get the SELinux context of the rootDir.
rootContext, err := selinux.Getfilecon(kl.getRootDir())
if err != nil {
return "", err
}
// There is a libcontainer bug where the null byte is not stripped from
// the result of reading some selinux xattrs; strip it.
//
// TODO: remove when https://github.com/docker/libcontainer/issues/499
// is fixed
rootContext = rootContext[:len(rootContext)-1]
return rootContext, nil
return selinux.Getfilecon(kl.getRootDir())
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment