mirror of
https://github.com/containers/podman.git
synced 2025-06-19 16:33:24 +08:00
vendor: update selinux
inherit a change for not failing a recursive relabelling if the file is removed between the directory is read and the lsetxattr syscall. Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
6
vendor/github.com/opencontainers/selinux/go-selinux/selinux_linux.go
generated
vendored
6
vendor/github.com/opencontainers/selinux/go-selinux/selinux_linux.go
generated
vendored
@ -687,7 +687,11 @@ func Chcon(fpath string, label string, recurse bool) error {
|
||||
return err
|
||||
}
|
||||
callback := func(p string, info os.FileInfo, err error) error {
|
||||
return SetFileLabel(p, label)
|
||||
e := SetFileLabel(p, label)
|
||||
if os.IsNotExist(e) {
|
||||
return nil
|
||||
}
|
||||
return e
|
||||
}
|
||||
|
||||
if recurse {
|
||||
|
Reference in New Issue
Block a user