Bug 558298 - Hide ecryptfs mounts
Hide ecryptfs mounts
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: gio
2.18.x
Other Linux
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
:
Depends on:
Blocks:
  Show dependency tree
 
Reported: 2008-10-28 21:18 UTC by Martin Pitt
Modified: 2008-12-13 23:52 UTC (History)
1 user (show)

See Also:
GNOME target: ---
GNOME version: 2.25/2.26


Attachments
hide ecryptfs Unix mounts (602 bytes, patch)
2008-10-28 22:08 UTC, Martin Pitt
committed Details | Diff | Review

Description Martin Pitt 2008-10-28 21:18:15 UTC
Hi!

I use ecryptfs for partially encrypting some bits of my home directory:

/home/martin/.Private on /home/martin/Private type ecryptfs (rw,ecryptfs_sig=a8fc214afe634ab5,ecryptfs_cipher=aes,ecryptfs_key_bytes=16,user=martin)

(This is a standard setup in Ubuntu 8.10 now).

This means that in nautilus/on the desktop/in the Places menu I see a "Private" mount icon. This cannot be used for unmounting (only root, respectively the PAM module can do that), is redundant (because there is already the "Private" directory, i. e. the mount point), and thus confusing.

My current idea is to hide ecryptfs mounts from the user. What do you think about this?
Comment 1 Martin Pitt 2008-10-28 21:20:18 UTC
This manifests as follows:

$ gvfs-mount -l
[...]
Mount(0): Private -> file:///home/martin/Private
Comment 2 Martin Pitt 2008-10-28 21:22:18 UTC
Whoops, this should actually be glib, ignore_fs in gunixmounts.c
Comment 3 Martin Pitt 2008-10-28 22:08:10 UTC
Created attachment 121544 [details] [review]
hide ecryptfs Unix mounts

I tested this patch, and it works very well for me. I did not upload it to Ubuntu yet, just to my private package archive for testing. (See https://launchpad.net/bugs/259799 for feedback and status).

What do you think?
Comment 4 Matthias Clasen 2008-12-08 05:48:25 UTC
        * gunixmounts.c: (guess_system_internal): Hide ecryptfs mounts,
        so that the desktop does not show both the mount and the target
        directory. Patch by Martin Pitt

Note You need to log in before you can comment on or make changes to this bug.