Bug 2124699

Summary: Error: runc: exec failed: unable to start container process: open /dev/pts/0: operation not permitted: OCI permission denied [RHEL 8.7]
Product: Red Hat Enterprise Linux 8 Reporter: Tom Sweeney <tsweeney>
Component: runcAssignee: Jindrich Novy <jnovy>
Status: CLOSED DUPLICATE 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: 2117928
: 2125648 (view as bug list) Environment:
Last Closed: 2022-10-24 14:40:37 UTC 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:
Bug Depends On: 2124700    
Bug Blocks: 2125648    

Comment 6 Alex Jia 2022-10-19 14:03:59 UTC
Tested with runc-1.1.4-1.module+el8.7.0+16894+3f997fa3, and test result as expected.

[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 7 Derrick Ornelas 2022-10-24 14:40:37 UTC

*** This bug has been marked as a duplicate of bug 2117928 ***