GNU bug report logs - #21142
Sshfs-fuse requires fuse

Previous Next

Package: guix;

Reported by: Andreas Enge <andreas <at> enge.fr>

Date: Mon, 27 Jul 2015 15:06:02 UTC

Severity: normal

Tags: wontfix

Fixed in version 0.9.0

Done: ludo <at> gnu.org (Ludovic Courtès)

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 21142 in the body.
You can then email your comments to 21142 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#21142; Package guix. (Mon, 27 Jul 2015 15:06:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Andreas Enge <andreas <at> enge.fr>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Mon, 27 Jul 2015 15:06:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Andreas Enge <andreas <at> enge.fr>
To: bug-guix <at> gnu.org
Subject: Sshfs-fuse requires fuse
Date: Mon, 27 Jul 2015 17:05:32 +0200
Hello,

when trying to execute sshfs from the sshfs-fuse package, I obtain
   fuse: failed to exec fusermount: No such file or directory

I think that fuse should be a propagated input of sshfs-fuse.

Andreas





Information forwarded to bug-guix <at> gnu.org:
bug#21142; Package guix. (Mon, 27 Jul 2015 17:24:02 GMT) Full text and rfc822 format available.

Message #8 received at 21142 <at> debbugs.gnu.org (full text, mbox):

From: Claes Wallin (韋嘉誠)
 <gnu <at> clacke.user.lysator.liu.se>
To: Andreas Enge <andreas <at> enge.fr>
Cc: 21142 <at> debbugs.gnu.org
Subject: Re: bug#21142: Sshfs-fuse requires fuse
Date: Mon, 27 Jul 2015 19:23:20 +0200
[Message part 1 (text/plain, inline)]
On 27-Jul-2015 5:06 pm, "Andreas Enge" <andreas <at> enge.fr> wrote:
>
> Hello,
>
> when trying to execute sshfs from the sshfs-fuse package, I obtain
>    fuse: failed to exec fusermount: No such file or directory
>
> I think that fuse should be a propagated input of sshfs-fuse.

Maybe it's less intrusive toward the user to wrap sshfs to add fuse to its
PATH?
[Message part 2 (text/html, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#21142; Package guix. (Tue, 28 Jul 2015 14:22:02 GMT) Full text and rfc822 format available.

Message #11 received at 21142 <at> debbugs.gnu.org (full text, mbox):

From: Mark H Weaver <mhw <at> netris.org>
To: Claes Wallin (韋嘉誠) <gnu <at> clacke.user.lysator.liu.se>
Cc: Andreas Enge <andreas <at> enge.fr>, 21142 <at> debbugs.gnu.org
Subject: Re: bug#21142: Sshfs-fuse requires fuse
Date: Tue, 28 Jul 2015 10:20:50 -0400
Claes Wallin (韋嘉誠) <gnu <at> clacke.user.lysator.liu.se> writes:

> On 27-Jul-2015 5:06 pm, "Andreas Enge" <andreas <at> enge.fr> wrote:
>>
>> Hello,
>>
>> when trying to execute sshfs from the sshfs-fuse package, I obtain
>> fuse: failed to exec fusermount: No such file or directory
>>
>> I think that fuse should be a propagated input of sshfs-fuse.
>
> Maybe it's less intrusive toward the user to wrap sshfs to add fuse to
> its PATH?

Or patch the reference to 'fusermount' to be an absolute path?

I haven't looked into this, so I don't know the feasibility of these
approaches, but in general I think that 'propagated-inputs' should be
avoided whenever there is a reasonable alternative.

What do you think?

      Mark




Information forwarded to bug-guix <at> gnu.org:
bug#21142; Package guix. (Tue, 28 Jul 2015 19:28:02 GMT) Full text and rfc822 format available.

Message #14 received at 21142 <at> debbugs.gnu.org (full text, mbox):

From: Claes Wallin (韋嘉誠)
 <gnu <at> clacke.user.lysator.liu.se>
To: Mark H Weaver <mhw <at> netris.org>
Cc: Andreas Enge <andreas <at> enge.fr>, 21142 <at> debbugs.gnu.org
Subject: Re: bug#21142: Sshfs-fuse requires fuse
Date: Tue, 28 Jul 2015 21:27:13 +0200
[Message part 1 (text/plain, inline)]
On Jul 28, 2015 4:21 PM, "Mark H Weaver" <mhw <at> netris.org> wrote:
> Claes Wallin (韋嘉誠) <gnu <at> clacke.user.lysator.liu.se> writes:
> > On 27-Jul-2015 5:06 pm, "Andreas Enge" <andreas <at> enge.fr> wrote:
> >>
> >> Hello,
> >>
> >> when trying to execute sshfs from the sshfs-fuse package, I obtain
> >> fuse: failed to exec fusermount: No such file or directory
> >>
> >> I think that fuse should be a propagated input of sshfs-fuse.
> >
> > Maybe it's less intrusive toward the user to wrap sshfs to add fuse to
> > its PATH?
>
> Or patch the reference to 'fusermount' to be an absolute path?

That's even better!

> I haven't looked into this, so I don't know the feasibility of these
> approaches, but in general I think that 'propagated-inputs' should be
> avoided whenever there is a reasonable alternative.
>
> What do you think?

Yeah, installing a package should cause the minimum amount of surprise.
[Message part 2 (text/html, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#21142; Package guix. (Sun, 29 Nov 2015 11:20:02 GMT) Full text and rfc822 format available.

Message #17 received at 21142 <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: Mark H Weaver <mhw <at> netris.org>
Cc: "Claes Wallin \(韋嘉誠\)"
 <gnu <at> clacke.user.lysator.liu.se>, 21142 <at> debbugs.gnu.org,
 Andreas Enge <andreas <at> enge.fr>
Subject: Re: bug#21142: Sshfs-fuse requires fuse
Date: Sun, 29 Nov 2015 12:18:45 +0100
Mark H Weaver <mhw <at> netris.org> skribis:

> Claes Wallin (韋嘉誠) <gnu <at> clacke.user.lysator.liu.se> writes:
>
>> On 27-Jul-2015 5:06 pm, "Andreas Enge" <andreas <at> enge.fr> wrote:
>>>
>>> Hello,
>>>
>>> when trying to execute sshfs from the sshfs-fuse package, I obtain
>>> fuse: failed to exec fusermount: No such file or directory
>>>
>>> I think that fuse should be a propagated input of sshfs-fuse.
>>
>> Maybe it's less intrusive toward the user to wrap sshfs to add fuse to
>> its PATH?
>
> Or patch the reference to 'fusermount' to be an absolute path?

This what libfuse does by default in lib/mount.c:

--8<---------------cut here---------------start------------->8---
static void exec_fusermount(const char *argv[])
{
	execv(FUSERMOUNT_DIR "/" FUSERMOUNT_PROG, (char **) argv);
	execvp(FUSERMOUNT_PROG, (char **) argv);
}
--8<---------------cut here---------------end--------------->8---

However, we explicitly patch it because in practice the ‘fusermount’
binary must be at least set-user-gid to fuse, per mount.fuse(8):

--8<---------------cut here---------------start------------->8---
    ;; This hack leads libfuse to search for 'fusermount' in
    ;; $PATH, where it may find a setuid-root binary, instead of
    ;; trying solely $out/sbin/fusermount and failing because
    ;; it's not setuid.
    (substitute* "lib/Makefile"
      (("-DFUSERMOUNT_DIR=[[:graph:]]+")
       "-DFUSERMOUNT_DIR=\\\"/var/empty\\\""))
--8<---------------cut here---------------end--------------->8---

On GuixSD, this is addressed by having ‘fusermount’ setuid-root in
/run/setuid-programs, so things just work.

On foreign distros, there’s not much we can do: Users have to set add a
setuid ‘fusermount’ in their PATH.

Closing this bug as “wontfix.”

Ludo’.




bug marked as fixed in version 0.9.0, send any further explanations to 21142 <at> debbugs.gnu.org and Andreas Enge <andreas <at> enge.fr> Request was from ludo <at> gnu.org (Ludovic Courtès) to control <at> debbugs.gnu.org. (Sun, 29 Nov 2015 11:20:03 GMT) Full text and rfc822 format available.

Added tag(s) wontfix. Request was from ludo <at> gnu.org (Ludovic Courtès) to control <at> debbugs.gnu.org. (Sun, 29 Nov 2015 11:20:04 GMT) Full text and rfc822 format available.

Information forwarded to bug-guix <at> gnu.org:
bug#21142; Package guix. (Sun, 29 Nov 2015 11:53:01 GMT) Full text and rfc822 format available.

Message #24 received at 21142 <at> debbugs.gnu.org (full text, mbox):

From: Claes Wallin (韋嘉誠)
 <gnu <at> clacke.user.lysator.liu.se>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: Mark H Weaver <mhw <at> netris.org>, Andreas Enge <andreas <at> enge.fr>,
 21142 <at> debbugs.gnu.org
Subject: Re: bug#21142: Sshfs-fuse requires fuse
Date: Sun, 29 Nov 2015 12:52:26 +0100
[Message part 1 (text/plain, inline)]
On 29-Nov-2015 12:19 pm, "Ludovic Courtès" <ludo <at> gnu.org> wrote:

> However, we explicitly patch it because in practice the ‘fusermount’
> binary must be at least set-user-gid to fuse, per mount.fuse(8):
[ . . . ]
> On GuixSD, this is addressed by having ‘fusermount’ setuid-root in
> /run/setuid-programs, so things just work.
>
> On foreign distros, there’s not much we can do: Users have to set add a
> setuid ‘fusermount’ in their PATH.
>
> Closing this bug as “wontfix.”

Ok, that's pretty clear then. Is this clear somewhere in the documentation?
Otherwise I suppose we should fix that.

-- 
   /c
[Message part 2 (text/html, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#21142; Package guix. (Sun, 29 Nov 2015 14:59:02 GMT) Full text and rfc822 format available.

Message #27 received at 21142 <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: Claes Wallin (韋嘉誠)
 <gnu <at> clacke.user.lysator.liu.se>
Cc: Mark H Weaver <mhw <at> netris.org>, Andreas Enge <andreas <at> enge.fr>,
 21142 <at> debbugs.gnu.org
Subject: Re: bug#21142: Sshfs-fuse requires fuse
Date: Sun, 29 Nov 2015 15:58:04 +0100
"Claes Wallin (韋嘉誠)" <gnu <at> clacke.user.lysator.liu.se> skribis:

> On 29-Nov-2015 12:19 pm, "Ludovic Courtès" <ludo <at> gnu.org> wrote:
>
>> However, we explicitly patch it because in practice the ‘fusermount’
>> binary must be at least set-user-gid to fuse, per mount.fuse(8):
> [ . . . ]
>> On GuixSD, this is addressed by having ‘fusermount’ setuid-root in
>> /run/setuid-programs, so things just work.
>>
>> On foreign distros, there’s not much we can do: Users have to set add a
>> setuid ‘fusermount’ in their PATH.
>>
>> Closing this bug as “wontfix.”
>
> Ok, that's pretty clear then. Is this clear somewhere in the documentation?
> Otherwise I suppose we should fix that.

Regarding foreign distros, I suppose we could add a paragraph about FUSE
under “Application Setup”?  Would you like to submit a patch against
guix.texi?

Thanks,
Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#21142; Package guix. (Sun, 29 Nov 2015 16:42:02 GMT) Full text and rfc822 format available.

Message #30 received at 21142 <at> debbugs.gnu.org (full text, mbox):

From: Claes Wallin (韋嘉誠)
 <gnu <at> clacke.user.lysator.liu.se>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: Mark H Weaver <mhw <at> netris.org>, Andreas Enge <andreas <at> enge.fr>,
 21142 <at> debbugs.gnu.org
Subject: Re: bug#21142: Sshfs-fuse requires fuse
Date: Sun, 29 Nov 2015 17:41:20 +0100
[Message part 1 (text/plain, inline)]
On Nov 29, 2015 3:58 PM, "Ludovic Courtès" <ludo <at> gnu.org> wrote:

> >> However, we explicitly patch it because in practice the ‘fusermount’
> >> binary must be at least set-user-gid to fuse, per mount.fuse(8):
> > [ . . . ]
> >> On GuixSD, this is addressed by having ‘fusermount’ setuid-root in
> >> /run/setuid-programs, so things just work.

You mean under GuixSD this works automagically? Or only if fuse is
installed globally and indicated as setuid? (I forget how that works, but
I'll look into it, no need to describe in detail here)

> > Ok, that's pretty clear then. Is this clear somewhere in the
documentation?
> > Otherwise I suppose we should fix that.
>
> Regarding foreign distros, I suppose we could add a paragraph about FUSE
> under “Application Setup”?  Would you like to submit a patch against
> guix.texi?

I would like to. I'll see when I get around to it, hopefully around New
Year's.

-- 
   /c
[Message part 2 (text/html, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#21142; Package guix. (Sun, 29 Nov 2015 17:02:02 GMT) Full text and rfc822 format available.

Message #33 received at 21142 <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: Claes Wallin (韋嘉誠)
 <gnu <at> clacke.user.lysator.liu.se>
Cc: Mark H Weaver <mhw <at> netris.org>, Andreas Enge <andreas <at> enge.fr>,
 21142 <at> debbugs.gnu.org
Subject: Re: bug#21142: Sshfs-fuse requires fuse
Date: Sun, 29 Nov 2015 18:01:07 +0100
"Claes Wallin (韋嘉誠)" <gnu <at> clacke.user.lysator.liu.se> skribis:

> On Nov 29, 2015 3:58 PM, "Ludovic Courtès" <ludo <at> gnu.org> wrote:
>
>> >> However, we explicitly patch it because in practice the ‘fusermount’
>> >> binary must be at least set-user-gid to fuse, per mount.fuse(8):
>> > [ . . . ]
>> >> On GuixSD, this is addressed by having ‘fusermount’ setuid-root in
>> >> /run/setuid-programs, so things just work.
>
> You mean under GuixSD this works automagically?

Yes.  ‘fusermount’ is part of ‘%setuid-programs’:

  http://www.gnu.org/software/guix/manual/html_node/Setuid-Programs.html

Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#21142; Package guix. (Sun, 29 Nov 2015 17:25:01 GMT) Full text and rfc822 format available.

Message #36 received at 21142 <at> debbugs.gnu.org (full text, mbox):

From: Claes Wallin (韋嘉誠)
 <gnu <at> clacke.user.lysator.liu.se>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: Mark H Weaver <mhw <at> netris.org>, Andreas Enge <andreas <at> enge.fr>,
 21142 <at> debbugs.gnu.org
Subject: Re: bug#21142: Sshfs-fuse requires fuse
Date: Sun, 29 Nov 2015 18:24:50 +0100
[Message part 1 (text/plain, inline)]
On Nov 29, 2015 6:01 PM, "Ludovic Courtès" <ludo <at> gnu.org> wrote:

> >> >> On GuixSD, this is addressed by having ‘fusermount’ setuid-root in
> >> >> /run/setuid-programs, so things just work.
> >
> > You mean under GuixSD this works automagically?
>
> Yes.  ‘fusermount’ is part of ‘%setuid-programs’:

Still, fuse needs to be installed on the OS if a user wants to install and
run sshfs. When I take a look at the docs, I'll keep this in mind.

-- 
   /c
[Message part 2 (text/html, inline)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 28 Dec 2015 12:24:04 GMT) Full text and rfc822 format available.

bug unarchived. Request was from outlook user <RACP <at> outlook.fr> to control <at> debbugs.gnu.org. (Sat, 09 Nov 2024 16:01:01 GMT) Full text and rfc822 format available.

Information forwarded to bug-guix <at> gnu.org:
bug#21142; Package guix. (Sat, 09 Nov 2024 16:16:02 GMT) Full text and rfc822 format available.

Message #43 received at submit <at> debbugs.gnu.org (full text, mbox):

From: outlook user <RACP <at> outlook.fr>
To: "ludo <at> gnu.org" <ludo <at> gnu.org>, "bug-guix <at> gnu.org" <bug-guix <at> gnu.org>
Subject: RE: bug#21142: Sshfs-fuse requires fuse
Date: Sat, 9 Nov 2024 16:15:19 +0000
That workaround worked in 2014, but now "libfuse" seems to search under "/usr/bin" and not "/run/setuid-programs". The `DFUSERMOUNT_DIR` modification doesn't seem to work anymore. I think to reproduce all what is needed is `strace` with follow forks to see the software seeking "/usr/bin." And personally, I use an "AppImage" to invoke fuse that will seek for `fusermount3`

The author of libfuse will push an update in the future for libfuse to give up upon searching binaries by itself and only relying on $PATH simply, but that's not for now...



Information forwarded to bug-guix <at> gnu.org:
bug#21142; Package guix. (Sat, 09 Nov 2024 17:39:01 GMT) Full text and rfc822 format available.

Message #46 received at submit <at> debbugs.gnu.org (full text, mbox):

From: outlook user <RACP <at> outlook.fr>
To: "ludo <at> gnu.org" <ludo <at> gnu.org>, "bug-guix <at> gnu.org" <bug-guix <at> gnu.org>,
 "73842 <at> debbugs.gnu.org" <73842 <at> debbugs.gnu.org>
Subject: RE: bug#21142: Sshfs-fuse requires fuse
Date: Sat, 9 Nov 2024 17:33:30 +0000
[Message part 1 (text/plain, inline)]
That workaround worked in 2014, but now "libfuse" seems to search under "/usr/bin" and not "/run/setuid-programs". The `DFUSERMOUNT_DIR` modification doesn't seem to work anymore. I think to reproduce all what is needed is `strace` with follow forks to see the software seeking "/usr/bin." And personally, I use an "AppImage" to invoke fuse that will seek for `fusermount3`

The author of libfuse will push an update in the future for libfuse to give up upon searching binaries by itself and only relying on $PATH simply, but that's not for now...
[Message part 2 (text/html, inline)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 08 Dec 2024 12:24:08 GMT) Full text and rfc822 format available.

This bug report was last modified 197 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.