Bug 2222015

Summary: not able to change ownership of /dev/null
Product: Red Hat Enterprise Linux 8 Reporter: Paulo Andrade <pandrade>
Component: runcAssignee: Giuseppe Scrivano <gscrivan>
Status: ASSIGNED --- QA Contact: atomic-bugs <atomic-bugs>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 8.7CC: gscrivan, kir
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Paulo Andrade 2023-07-11 14:04:19 UTC
Ownership of /dev/null is changed and cannot be changed.

  We believe this is related to:
https://github.com/opencontainers/runc/issues/3674
[permanent changes in ownership of /dev/null]

with patch
https://github.com/opencontainers/runc/pull/3707/commits/7e5e017dbab0f6ecb2c4b63c29c5ac44fc4e6ec6
[libcontainer: skip chown of /dev/null caused by fd redirection]

  Package installed is runc-1.1.4-1.module+el8.8.0+18060+3f21f2cc.x86_64

Comment 2 Giuseppe Scrivano 2023-07-24 10:24:21 UTC
Kir, do we need to backport 7e5e017dbab0f6ecb2c4b63c29c5ac44fc4e6ec6 to 1.1.4?

Comment 3 Kir Kolyshkin 2023-07-25 00:27:00 UTC
Yes; this was fixed in runc 1.1.5, here's the backport PR: https://github.com/opencontainers/runc/pull/3731

While at it, we can upgrade to the latest runc 1.1 (which now happens to be 1.1.8).

Comment 4 Giuseppe Scrivano 2023-07-25 06:48:59 UTC
Thanks.

Tom, we will need to upgrade runc to 1.1.5.