Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.36.1 breaks user mounts on kernels < 5.10 #1193

Closed
heftig opened this issue Nov 18, 2020 · 3 comments
Closed

2.36.1 breaks user mounts on kernels < 5.10 #1193

heftig opened this issue Nov 18, 2020 · 3 comments

Comments

@heftig
Copy link

heftig commented Nov 18, 2020

Since 2.36.1, trying to mount a user mount defined in fstab fails because the symfollow option is unknown.

https://www.linuxquestions.org/questions/slackware-14/util-linux-2-36-1-breaks-fuse-sshfs-4175685400/
https://bugs.archlinux.org/task/68660

As far as I can tell, the lines that insert the option

https://github.com/karelzak/util-linux/blob/95c706c9c2ae2d7e1f095713dae68c7f9cc2462d/libmount/src/context_mount.c#L425-L426

are wrong anyway, because MS_NOSYMFOLLOW is not part of MS_SECURE, so nosymfollow is not implied by user mounts and symfollow does not need to be added.

karelzak added a commit that referenced this issue Nov 19, 2020
Addresses: #1193
Signed-off-by: Karel Zak <kzak@redhat.com>
karelzak added a commit that referenced this issue Nov 19, 2020
Addresses: #1193
Signed-off-by: Karel Zak <kzak@redhat.com>
@karelzak
Copy link
Collaborator

karelzak commented Nov 19, 2020

Unfortunately, you're right ;-) Fixed, the change will be available in v2.36.2.

Note to the linuxquestions.org discussion, fuse user mounts are supported since v2.35 without user= in your fstab (or without fstab entry at all). man mount:

Since  version  2.35  mount  command does not exit when user permissions are inadequate by internal libmount security
rules.  It drops suid permissions and continue as regular non-root user. It allows to support  use-cases  where  root
permissions are not necessary (e.g., fuse filesystems, user namespaces, etc).

It means you can as regular user use

mount -t fuse.sshfs kzak@192.168.111.1:/home/kzak /home/kzak/mnt

as well as

umount /home/kzak/mnt

on your command line without any entry in your fstab.

algitbot pushed a commit to alpinelinux/aports that referenced this issue Jan 15, 2021
algitbot pushed a commit to alpinelinux/aports that referenced this issue Jan 15, 2021
@dima4p
Copy link

dima4p commented Feb 9, 2021

Wenn do you plan to issue 2.36.2?

@karelzak
Copy link
Collaborator

karelzak commented Feb 9, 2021

Wenn do you plan to issue 2.36.2?

This week I hope.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants