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.
Bug 1969317 - various commands failing to access fuse.portal filesystems [rhel-9]
Summary: various commands failing to access fuse.portal filesystems [rhel-9]
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: coreutils
Version: 9.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: beta
: 9.0 Beta
Assignee: Kamil Dudka
QA Contact: Vojtech Eichler
URL:
Whiteboard:
Depends On: 1913358
Blocks: 1952714
TreeView+ depends on / blocked
 
Reported: 2021-06-08 07:57 UTC by Kamil Dudka
Modified: 2021-12-07 21:48 UTC (History)
3 users (show)

Fixed In Version: coreutils-8.32-27.el9
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1952714
Environment:
Last Closed: 2021-12-07 21:44:43 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Kamil Dudka 2021-06-08 07:57:26 UTC
+++ This bug was initially created as a clone of Bug #1952714 +++

Description of problem:
fuse.portal is not marked as a dummy fs, so various utilities fail with EPERM when attempting to read them. 

How reproducible:
Always

Steps to reproduce error:
$ systemctl start --user xdg-document-portal   # Make sure xdg-document-portal is running.
# find /run/user/1000/doc -ignore_readdir_race -xdev -type f
find: ‘/run/user/1000/doc’: Permission denied

Temporary workaround:
$ systemctl mask --user xdg-document-portal

Actual results:
Permission denied

Expected results:
find, and other utilities should not attempt to access fuse.portal filesystems. 

Additional info:
Issue is not limited to find, but find is the specific example provided in this instance. Upstream discussions are more towards df, and the fix seems to be marking fuse.portal as squashfs

Several upstream discussions of this:

df (and other commands) fail on /root/.cache/doc · Issue #512 · flatpak/xdg-desktop-portal · GitHub
https://github.com/flatpak/xdg-desktop-portal/issues/512

mountlist.c: Define fuse.portal mounts as dummy by dbonner · Pull Request #11 · coreutils/gnulib · GitHub
https://github.com/coreutils/gnulib/pull/11

Suggested fix to mountlist.c: Define fuse.portal, devtmpfs and squashfs
https://lists.gnu.org/archive/html/bug-gnulib/2021-02/msg00053.html

--- Additional comment from Kamil Dudka on 2021-04-23 10:57:27 CEST ---

Thank you for filing the bug!  This was previously reported on Fedora:

    bug #1913358

Comment 1 Kamil Dudka 2021-06-09 08:53:51 UTC
Reproducer:

# yum install -y xdg-desktop-portal
# systemctl --user start xdg-document-portal.service
# mount | grep portal
portal on /run/user/0/doc type fuse.portal (rw,nosuid,nodev,relatime,user_id=0,group_id=0)

# df > /dev/null
df: /run/user/0/doc: Operation not permitted


Note You need to log in before you can comment on or make changes to this bug.