Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
902e1196
Commit
902e1196
authored
Apr 15, 2015
by
Victor Marmol
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6867 from pmorie/libcontainer-bug
Remove workaround for libcontainer Getfilecon bug
parents
3565a086
68f22a40
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
13 deletions
+1
-13
root_context_linux.go
pkg/kubelet/root_context_linux.go
+1
-13
No files found.
pkg/kubelet/root_context_linux.go
View file @
902e1196
...
...
@@ -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
())
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment