Merge pull request #1312 from runcom/fix-selinux-labels
libcontainer: selinux: fix DupSecOpt and DisableSecOpt
This commit is contained in:
commit
b263a43430
|
@ -536,14 +536,14 @@ func DupSecOpt(src string) []string {
|
||||||
con["level"] == "" {
|
con["level"] == "" {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
return []string{"label=user:" + con["user"],
|
return []string{"user:" + con["user"],
|
||||||
"label=role:" + con["role"],
|
"role:" + con["role"],
|
||||||
"label=type:" + con["type"],
|
"type:" + con["type"],
|
||||||
"label=level:" + con["level"]}
|
"level:" + con["level"]}
|
||||||
}
|
}
|
||||||
|
|
||||||
// DisableSecOpt returns a security opt that can be used to disabling SELinux
|
// DisableSecOpt returns a security opt that can be used to disabling SELinux
|
||||||
// labeling support for future container processes
|
// labeling support for future container processes
|
||||||
func DisableSecOpt() []string {
|
func DisableSecOpt() []string {
|
||||||
return []string{"label=disable"}
|
return []string{"disable"}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue