Bug 1947898

Summary: podman logs command fails for rootful user with --root option
Product: Red Hat Enterprise Linux 8 Reporter: Tom Sweeney <tsweeney>
Component: container-selinuxAssignee: Daniel Walsh <dwalsh>
Status: CLOSED NOTABUG QA Contact: atomic-bugs <atomic-bugs>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 8.3CC: dwalsh, gscrivan, jnovy, leiwang, pthomas, tsweeney, ypu
Target Milestone: betaKeywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-05-12 19:35:51 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:

Comment 2 Daniel Walsh 2021-05-12 19:35:51 UTC
This works for me, but my underlying labels are different,  I don't know where the container_var_run_t label is coming from, but I have a feeling this is in the tests.

In order to successfully get labels correct, you should setup SELinux labeling before doing something like this.

# semanage fcontext -a -e /var/lib/containers /tmp/test
# restorecon -R -v /tmp/test/