After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 782554 - glocalfileinfo: Use AT_NO_AUTOMOUNT for .hidden file
glocalfileinfo: Use AT_NO_AUTOMOUNT for .hidden file
Status: RESOLVED OBSOLETE
Product: glib
Classification: Platform
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
: 780967 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2017-05-12 12:47 UTC by Colin Walters
Modified: 2018-05-24 19:32 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
glocalfileinfo: Use AT_NO_AUTOMOUNT for .hidden file (1.50 KB, patch)
2017-05-12 12:47 UTC, Colin Walters
none Details | Review

Description Colin Walters 2017-05-12 12:47:18 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
Comment 1 Colin Walters 2017-05-12 12:47:21 UTC
Created attachment 351713 [details] [review]
glocalfileinfo: Use AT_NO_AUTOMOUNT for .hidden file
Comment 2 Ondrej Holy 2017-05-12 12:52:41 UTC
*** Bug 780967 has been marked as a duplicate of this bug. ***
Comment 3 Colin Walters 2017-05-12 12:57:22 UTC
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.
Comment 4 GNOME Infrastructure Team 2018-05-24 19:32:04 UTC
-- 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.