Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem:
Running a command like
`podman run -p 22:22 --name rsync6e -m 512m -h rsync --uidmap 0:100000:500000 -v $RSYNC_BASE/home:/home:Z,ro -v $RSYNC_BASE/etc/ssh/:/etc/ssh:Z,ro -v $RSYNC_DATA:/mnt/data2:Z rsync6 `
as root, the files in $RSYNC_DATA got relabeld as expected, except symbol links, e.g.:
```
[root@ship ~]# ls -lZ /srv/rsync/data/bak/xxx/Programme/xxx/jre/lib/i386/client/
total 18916
-r--r--r--. 87 101001 101001 system_u:object_r:container_file_t:s0:c277,c298 14008320 Sep 15 2011 classes.jsa
lrwxrwxrwx. 87 101001 101001 system_u:object_r:container_file_t:s0:c527,c785 13 Sep 15 2011 libjsig.so -> ../libjsig.so
-rwxr-xr-x. 87 101001 101001 system_u:object_r:container_file_t:s0:c277,c298 5355014 Mar 25 2008 libjvm.so
-rw-r--r--. 87 101001 101001 system_u:object_r:container_file_t:s0:c277,c298 1423 Mar 25 2008 Xusage.txt
```
and from inside the container:
```
root@rsync:/mnt/data2/bak/xxx# ls -lsh /mnt/data2/bak/xxx/Programme/xxx/jre/lib/i386/client/
ls: cannot access '/mnt/data2/bak/xxx/Programme/xxx/jre/lib/i386/client/libjsig.so': Permission denied
total 19M
4.0K -rw-r--r--. 87 xxx xxx 1.4K Mar 25 2008 Xusage.txt
14M -r--r--r--. 87 xxx xxx 14M Sep 15 2011 classes.jsa
? l?????????? ? ? ? ? ? libjsig.so
5.2M -rwxr-xr-x. 87 xxx xxx 5.2M Mar 25 2008 libjvm.so
```
Version-Release number of selected component (if applicable):
podman-4.0.2-6.module+el8.6.0+14877+f643d2d6.x86_64
How reproducible:
only happend a single time
Actual results:
The container has no permissions to access symbolic links.
Expected results:
The container has permissions to access symbolic links.
Additional info:
Setting the context manually worked as expected:
` chcon -R system_u:object_r:container_file_t:s0:c277,c298 /srv/rsync/data/bak`
No relevant information in journalctl
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 (Moderate: 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:7457
Comment 12Red Hat Bugzilla
2023-09-18 04:43:38 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days