Skip to content

Commit b263a43

Browse files
author
Mrunal Patel
authored
Merge pull request #1312 from runcom/fix-selinux-labels
libcontainer: selinux: fix DupSecOpt and DisableSecOpt
2 parents 7350cd8 + 75acc7c commit b263a43

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

libcontainer/selinux/selinux.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -536,14 +536,14 @@ func DupSecOpt(src string) []string {
536536
con["level"] == "" {
537537
return nil
538538
}
539-
return []string{"label=user:" + con["user"],
540-
"label=role:" + con["role"],
541-
"label=type:" + con["type"],
542-
"label=level:" + con["level"]}
539+
return []string{"user:" + con["user"],
540+
"role:" + con["role"],
541+
"type:" + con["type"],
542+
"level:" + con["level"]}
543543
}
544544

545545
// DisableSecOpt returns a security opt that can be used to disabling SELinux
546546
// labeling support for future container processes
547547
func DisableSecOpt() []string {
548-
return []string{"label=disable"}
548+
return []string{"disable"}
549549
}

0 commit comments

Comments
 (0)