Fuse mount issue

I recently took over the maintenance of the rclone snap package and have encountered some issues while using the rclone mount feature.

rclone mount allows user to mount any of Rclone’s cloud storage systems as a file system with FUSE.

Currently, I’ve added these plugs in my local test snap package.

  • home
  • network
  • network-bind
  • fuse-support
  • mount-observe

According to the fuse-support doc mountpoint can only exist in snap-specific writable directories:

SNAP_USER_{DATA,COMMON}: /home/$USER/snap/rclone/{current,common} SNAP_{DATA,COMMON}: /var/snap/rclone/{common,current}

The issue is, i create a dir in /home/myusername/snap/rclone/current/test_dir, then i run

$ rclone mount s3: /home/myusername/snap/rclone/current/test_dir/

Then i got these error messages:

2023/08/13  mount helper error: fusermount3: mount failed: Operation not permitted
2023/08/13  Fatal error: failed to mount FUSE fs: fusermount: exit status 1

I’m not sure how to proceed at this point. Any help would be greatly appreciated.

sudo snappy-debug give those messages:

= Seccomp =
Time: 2023-08-13T16:3
Log: auid=1000 uid=1000 gid=1000 ses=3 subj=snap.rclone.rclone pid=11655 comm="fusermount3" exe="/snap/rclone/x3/bin/fusermount3" sig=0 arch=c000003e 122(setfsuid) compat=0 ip=0x7fb1d27aac4b code=0x50000
Syscall: setfsuid

= Seccomp =
Time: 2023-08-13T16:3
Log: auid=1000 uid=1000 gid=1000 ses=3 subj=snap.rclone.rclone pid=11655 comm="fusermount3" exe="/snap/rclone/x3/bin/fusermount3" sig=0 arch=c000003e 123(setfsgid) compat=0 ip=0x7fb1d27aac7b code=0x50000
Syscall: setfsgid

= Seccomp =
Time: 2023-08-13T16:3
Log: auid=1000 uid=1000 gid=1000 ses=3 subj=snap.rclone.rclone pid=11655 comm="fusermount3" exe="/snap/rclone/x3/bin/fusermount3" sig=0 arch=c000003e 122(setfsuid) compat=0 ip=0x7fb1d27aac4b code=0x50000
Syscall: setfsuid

= Seccomp =
Time: 2023-08-13T16:3
Log: auid=1000 uid=1000 gid=1000 ses=3 subj=snap.rclone.rclone pid=11655 comm="fusermount3" exe="/snap/rclone/x3/bin/fusermount3" sig=0 arch=c000003e 123(setfsgid) compat=0 ip=0x7fb1d27aac7b code=0x50000
Syscall: setfsgid