GNOME Bugzilla – Bug 782554
glocalfileinfo: Use AT_NO_AUTOMOUNT for .hidden file
Last modified: 2018-05-24 19:32:04 UTC
In an autofs setup with dynamic mounts for e.g. `/home`, having Nautilus look at `/home/.hidden` can force automounting when it's unnecessary. In practice today, `AT_NO_AUTOMOUNT` isn't honored by Linux, but that's going to be fixed: http://marc.info/?l=linux-fsdevel&m=149438995526466&w=2 So let's start using this in preparation for that. See https://bugzilla.redhat.com/show_bug.cgi?id=1437754
Created attachment 351713 [details] [review] glocalfileinfo: Use AT_NO_AUTOMOUNT for .hidden file
*** Bug 780967 has been marked as a duplicate of this bug. ***
Oh, sorry I didn't know about that patch in the other bug. But as I understand it today: ``` $ git describe v4.11-rc7-111-g057a650 ``` fs/autofs4/dev-ioctl.c: ``` /* ioctl dispatcher */ static int _autofs_dev_ioctl(unsigned int command, struct autofs_dev_ioctl __user *user) { ... /* only root can play with this */ if (!capable(CAP_SYS_ADMIN)) return -EPERM; ``` So both approaches require patching the kernel. I think handling AT_NO_AUTOMOUNT is a lot cleaner than dealing with the autofs ioctls, so hopefully we can make that work.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/glib/issues/1268.