Skip to content

Commit 854f494

Browse files
committed
Reserve the MCS Level if the caller overrides the default.
Fix https://bugzilla.redhat.com/show_bug.cgi?id=1511442 Signed-off-by: Antonio Murdaca <runcom@redhat.com>
1 parent d6f7b83 commit 854f494

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

vendor/src/github.com/opencontainers/runc/libcontainer/label/label_selinux.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,10 @@ func InitLabels(options []string) (string, string, error) {
4949
mcon[con[0]] = con[1]
5050
}
5151
}
52+
_ = ReleaseLabel(processLabel)
5253
processLabel = pcon.Get()
5354
mountLabel = mcon.Get()
55+
_ = ReserveLabel(processLabel)
5456
}
5557
return processLabel, mountLabel, nil
5658
}

0 commit comments

Comments
 (0)