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.

Bug 1881557

Summary: Fuse3 does not support pre-mounting
Product: Red Hat Enterprise Linux 8 Reporter: Jakob Blomer <jblomer>
Component: fuseAssignee: Pavel Reichl <preichl>
Status: CLOSED ERRATA QA Contact: Zorro Lang <zlang>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.2CC: barsnick, dwd, esandeen, jblomer, kenneth.hoste, miklos, mszeredi, preichl, xzhou, zlang
Target Milestone: rcFlags: pm-rhel: mirror+
Target Release: 8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: fuse-2.9.7-14.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-05-10 15:31:16 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: 2047237    
Bug Blocks:    
Attachments:
Description Flags
Fuse premount tester from CernVM-FS none

Description Jakob Blomer 2020-09-22 17:16:32 UTC
Created attachment 1715738 [details]
Fuse premount tester from CernVM-FS

Description of problem:
EL 8 ships with libfuse 3.2, which does not support "pre-mounting".  Premounting, i.e. passing /dev/fd/%u as an open file descriptor to /dev/fuse instead of the mount path, was added only in libfuse 3.3:

https://github.com/libfuse/libfuse/blob/master/ChangeLog.rst#libfuse-330-2018-11-06

Unlike other fuse features, this is not a backwards compatible optimization but file systems relying on that feature are stuck.  That is the case, for instance, for the CernVM File System when being mounted by the Singularity container runtime with the --fusemount option.  In general, pre-mounting is important in to delegate permission to access /dev/fuse to a trusted helper program other than fusermount3.

Note that the fuse3 libraries for EL6 and EL7 from EPEL do provide a recent enough libfuse3.

Version-Release number of selected component (if applicable): 3.2


How reproducible:
The behavior can be triggered with a libfuse example fuse module.

Steps to Reproduce:

    git clone https://github.com/libfuse/libfuse
    cd libfuse/example
    gcc -Wall hello.c `pkg-config fuse3 --cflags --libs` -o hello
    gcc -o fuse_premount fuse_premount.c
    sudo chown root fuse_premount && sudo chmod 4755 fuse_premount
    # As non-root user:
    mkdir -p test
    ./fuse_premount ./hello test


Actual results:
Error message "fusermount3: mountpoint /dev/fuse is not a directory or a regular file"


Expected results:
The hello fuse module should be mounted under test


Additional info:

Comment 1 Dave Dykstra 2020-09-22 18:32:36 UTC
Perhaps this bug should be on the fuse3 component rather than fuse.

A possible solution would be to remove fuse3 from the base OS and move it to an application stream instead.  That may be better than backporting this feature.

Comment 3 barsnick 2021-02-15 21:54:17 UTC
I agree:
- Wrong component (should be fuse3).
- The question is: Why are RHEL6 and RHEL7 on fuse 3.6, while RHEL8 is on fuse 3.2?

Comment 4 Eric Sandeen 2022-01-18 18:21:34 UTC
(In reply to barsnick from comment #3)
> I agree:
> - Wrong component (should be fuse3).

There is no fuse3 BZ component for RHEL8, because the RHEL8 fuse src.rpm builds both fuse(2) and fuse3. It literally references both the fuse(2) and fuse3 tarballs.

> - The question is: Why are RHEL6 and RHEL7 on fuse 3.6, while RHEL8 is on
> fuse 3.2?

EPEL is orthogonal to RHEL, and is not controlled by RHEL or Red Hat in general. I presume that because fuse3 was not provided in any way in RHEL6/RHEL7, it got picked up and shipped in EPEL, and the EPEL maintainer chose to ship much newer versions. I agree that it's not ideal, but it's literally two different repositories, managed by two different organizations, each with their own motivations, requirements, and rules.

So the question for /this/ bug is whether it makes sense at this point to either backport the requested functionality, or rebase the fuse3 package in RHEL8 to 3.3 or higher.

Miklos, any thoughts?

-Eric

Comment 5 Miklos Szeredi 2022-01-20 08:36:12 UTC
(In reply to Eric Sandeen from comment #4)
> (In reply to barsnick from comment #3)
> > I agree:
> > - Wrong component (should be fuse3).
> 
> There is no fuse3 BZ component for RHEL8, because the RHEL8 fuse src.rpm
> builds both fuse(2) and fuse3. It literally references both the fuse(2) and
> fuse3 tarballs.
> 
> > - The question is: Why are RHEL6 and RHEL7 on fuse 3.6, while RHEL8 is on
> > fuse 3.2?
> 
> EPEL is orthogonal to RHEL, and is not controlled by RHEL or Red Hat in
> general. I presume that because fuse3 was not provided in any way in
> RHEL6/RHEL7, it got picked up and shipped in EPEL, and the EPEL maintainer
> chose to ship much newer versions. I agree that it's not ideal, but it's
> literally two different repositories, managed by two different
> organizations, each with their own motivations, requirements, and rules.
> 
> So the question for /this/ bug is whether it makes sense at this point to
> either backport the requested functionality, or rebase the fuse3 package in
> RHEL8 to 3.3 or higher.
> 
> Miklos, any thoughts?

I don't closely follow libfuse upstream.  However it looks like the requested feature is the biggest update in 3.3, and apparently fuse-3.2.1, which is in RHEL8 is missing some security fixes added later in the 3.2.z series.

So I'm leaning towards a version bump to 3.3 as the simplest and safest option.

Pavel, can you please help again with the mechanics of a package update?

Comment 6 Pavel Reichl 2022-01-20 12:40:46 UTC
Hi Miklos, sure, I'll start dealing with it ASAP. I guess first I should file a BZ for rebase of fuse-3 in rhel-8.6, right?

Comment 17 errata-xmlrpc 2022-05-10 15:31:16 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 (fuse 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/RHBA-2022:2107