Bug 2125648

Summary: Error: runc: exec failed: unable to start container process: open /dev/pts/0: operation not permitted: OCI permission denied [RHEL 8.7] [rhel-8.7.0.z]
Product: Red Hat Enterprise Linux 8 Reporter: RHEL Program Management Team <pgm-rhel-tools>
Component: runcAssignee: Jindrich Novy <jnovy>
Status: CLOSED ERRATA QA Contact: Alex Jia <ajia>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 8.7CC: ajia, dornelas, fandrieu, gscrivan, jnovy, kir, mamccoma, mheon, qzhang, rcarrier, snangare, toneata, tsweeney, ypu
Target Milestone: rcKeywords: Regression, Triaged, ZStream
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: runc-1.1.4-1.el8_7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 2124699 Environment:
Last Closed: 2022-11-08 11:30:44 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2117928, 2124699    
Bug Blocks:    

Comment 4 Alex Jia 2022-10-19 11:13:35 UTC
This bug has been verified on podman-4.2.0-2.module+el8.7.0+16894+3f997fa3.

[root@test-8-7-0-bz2130236 ~]# cat /etc/redhat-release 
Red Hat Enterprise Linux release 8.7 (Ootpa)

[root@test-8-7-0-bz2130236 ~]# rpm -q podman runc systemd kernel
podman-4.2.0-2.module+el8.7.0+16894+3f997fa3.x86_64
runc-1.1.4-1.module+el8.7.0+16894+3f997fa3.x86_64
systemd-239-68.el8.x86_64
kernel-4.18.0-425.3.1.el8.x86_64

[root@test-8-7-0-bz2130236 ~]# podman run -d --name exec-test -p 8578:80 quay.io/redhattraining/httpd-parent
Trying to pull quay.io/redhattraining/httpd-parent:latest...
Getting image source signatures
Copying blob a3ed95caeb02 done  
Copying blob 787f47dbeaac done  
Copying blob 6a5240d60dc4 done  
Copying blob a3ed95caeb02 done  
Copying blob a3ed95caeb02 done  
Copying blob 08b8c9fdec44 done  
Copying blob a3ed95caeb02 skipped: already exists  
Copying blob a3ed95caeb02 skipped: already exists  
Copying blob a3ed95caeb02 skipped: already exists  
Copying blob 408208567b9a done  
Writing manifest to image destination
Storing signatures
ae08dfff5bc4cacac8ace9ab62cb0c2a6063ce513df3456298d455b36ee0ea40

[root@test-8-7-0-bz2130236 ~]# podman ps | grep exec-test
ae08dfff5bc4  quay.io/redhattraining/httpd-parent:latest  /bin/sh -c /usr/s...  16 seconds ago  Up 16 seconds ago  0.0.0.0:8578->80/tcp  exec-test

[root@test-8-7-0-bz2130236 ~]# systemctl daemon-reload
[root@test-8-7-0-bz2130236 ~]# podman exec -it exec-test sh
sh-4.4# exit
exit
[root@test-8-7-0-bz2130236 ~]# echo $?
0

Comment 9 errata-xmlrpc 2022-11-08 11:30:44 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Low: container-tools:rhel8 security, bug fix, and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2022:7822