Skip to content

Commit 5b275d4

Browse files
mrunalpopenshift-cherrypick-robot
authored andcommitted
Restore sandbox selinux labels directly from config.json
Signed-off-by: Mrunal Patel <[email protected]>
1 parent 82e7a61 commit 5b275d4

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

lib/container_server.go

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -333,15 +333,8 @@ func (c *ContainerServer) LoadSandbox(id string) error {
333333
return err
334334
}
335335

336-
dupLabels, err := label.DupSecOpt(m.Process.SelinuxLabel)
337-
if err != nil {
338-
return err
339-
}
340-
341-
processLabel, mountLabel, err := label.InitLabels(dupLabels)
342-
if err != nil {
343-
return err
344-
}
336+
processLabel := m.Process.SelinuxLabel
337+
mountLabel := m.Linux.MountLabel
345338

346339
spp := m.Annotations[annotations.SeccompProfilePath]
347340

0 commit comments

Comments
 (0)