replace deprecated selinux/label calls

These functions were removed in github.com/opencontainers/selinux
v1.12.0.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
Paul Holzinger
2025-03-24 16:57:23 +01:00
parent e65687291a
commit 999a11c8b1
6 changed files with 16 additions and 19 deletions

View File

@ -31,9 +31,7 @@ func TestLabelVolumePath(t *testing.T) {
mLabel := "system_u:object_r:container_file_t:s0:c1,c2"
return pLabel, mLabel, nil
}
lvpReleaseLabel = func(label string) error {
return nil
}
lvpReleaseLabel = func(label string) {}
// LabelVolumePath should not return an error if the operation is unsupported.
err := LabelVolumePath("/foo/bar", "")