Merge pull request #7207 from zouyee/relabel

replace with selinux label
This commit is contained in:
Fu Wei 2022-07-28 00:05:31 +08:00 committed by GitHub
commit 116af9d1cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -193,7 +193,7 @@ func (c *criService) containerSpec(
} }
defer func() { defer func() {
if retErr != nil { if retErr != nil {
_ = label.ReleaseLabel(processLabel) selinux.ReleaseLabel(processLabel)
} }
}() }()

View File

@ -193,7 +193,7 @@ func (c *criService) containerSpec(
} }
defer func() { defer func() {
if retErr != nil { if retErr != nil {
_ = label.ReleaseLabel(processLabel) selinux.ReleaseLabel(processLabel)
} }
}() }()