CVE-2023-27561: Bump runc go module v1.1.4 -> v1.1.5
This commit is contained in:
5
vendor/github.com/opencontainers/runc/libcontainer/init_linux.go
generated
vendored
5
vendor/github.com/opencontainers/runc/libcontainer/init_linux.go
generated
vendored
@@ -411,8 +411,9 @@ func fixStdioPermissions(u *user.ExecUser) error {
|
||||
return &os.PathError{Op: "fstat", Path: file.Name(), Err: err}
|
||||
}
|
||||
|
||||
// Skip chown if uid is already the one we want.
|
||||
if int(s.Uid) == u.Uid {
|
||||
// Skip chown if uid is already the one we want or any of the STDIO descriptors
|
||||
// were redirected to /dev/null.
|
||||
if int(s.Uid) == u.Uid || s.Rdev == null.Rdev {
|
||||
continue
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user