Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 255037 - sys-fs/copyfs-1.0: fmount fails if FUSE isn't compiled as a loadable module.
Summary: sys-fs/copyfs-1.0: fmount fails if FUSE isn't compiled as a loadable module.
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords: NeedPatch
Depends on:
Blocks:
 
Reported: 2009-01-15 13:45 UTC by André Gillibert
Modified: 2012-06-05 07:49 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description André Gillibert 2009-01-15 13:45:04 UTC
/usr/bin/fmount, the shell script that mounts copyfs file systems complains Could not load fuse kernel module !" because I don't have compiled fuse as a loadable module even though I've compiled it in the kernel!


Reproducible: Always

Steps to Reproduce:
1. Compile your kernel with FUSE built in (not as a loadable module).
2. Log in as root user.
3. mkdir /tmp/src;mkdir /tmp/dst;fmount /tmp/src /tmp/dst

Actual Results:  
This outputs:
Could not load fuse kernel module !
And it doesn't mount the CopyFS file system.

Expected Results:  
It should have mounted the CopyFS file system.

/usr/bin/fmount is a shell script.
It greps /proc/modules for the 'fuse' string and if it doesn't contain that string, it calls "modprobe fuse".
This check should be removed.
Moreover it checks that the UID is 0 (root user) which is might be a bad thing if the user isn't root but has enough capabilities (see man 7 capabilities) to mount the file system.

Current workaround: Manually delete the "Check fuse module" part of the fmount script.
Comment 1 Pacho Ramos gentoo-dev 2012-06-05 07:49:27 UTC
Please recheck with latest version:

*copyfs-1.0.1 (20 Sep 2010)

  20 Sep 2010; Jeroen Roovers <jer@gentoo.org> +copyfs-1.0.1.ebuild,
  +files/copyfs-1.0.1-gentoo.patch, files/copyfs-1.0-unlink.patch:
  Version bump. Respect LDFLAGS (bug #336538), CC, CFLAGS. Set RDEPEND.