mirror of
https://github.com/containers/podman.git
synced 2025-05-20 16:47:39 +08:00
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:
@ -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", "")
|
||||
|
Reference in New Issue
Block a user