Re: Fstab binds appear as mounts and system mounts are exposed in root nautilus



Hi,

thanks for the message.

1) Let's deal with the issue on that bug report you mentioned. Sounds like unix volume monitor is used for some reason instead of udisks2 volume monitor...

2) Firstly, I would like to mention that it is not recommended to run graphical applications as root and it won't be possible with Wayland in the future anyway. "admin mode" has been introduced in the Nautilus recently for this purpose, see:
https://csorianognome.wordpress.com/2017/02/21/nautilus-3-24-the-changes/

The reporter of the first issue claims that it helps to downgrade glib to 2.52.0. Does it help also for this issue? I suppose it doesn't... it is probably because unix volume monitor is used as fallback instead of udisks2 volume monitor, because user session is not running for root user. Libmount support has been introduced quite recently (see https://bugzilla.gnome.org/show_bug.cgi?id=522053 ) and it probably exposes more mounts than it was exposed before. The unix volume monitor need some tweaks probably. It would be nice to file a new bug report for glib if there is not any...

Regards

Ondrej

2017-06-22 8:59 GMT+02:00 Khurshid Alam <khurshid alam linuxmail org>:
Hi,

1) I am using nautilus-3.24, gvfs-1.32, glib-2.52.2. For dual boot purpose I keep all data in separate partition and use bind in fastab for Dociments, Pictures etc. Part of my /etc/fstab loooks like this:

# /dev/sdb
UUID=1e3dcee6-a93f-430b-9209-92443cbfacd /media/pcuser/data ext4 defaults 0 2
# Binds
/media/pcuser/data/Documents	/home/pcuser/Documents	none	bind,x-gvfs-hide	0 0
/media/pcuser/data/Downloads	/home/pcuser/Downloads	none	bind,x-gvfs-hide	0 0
/media/pcuser/data/Music	/home/pcuser/Music	none	bind,x-gvfs-hide	0 0

But even with x-gvfs-hide these are appearing in nautilus sidebar. I found this bug
which was filed against glib. (https://bugzilla.gnome.org/show_bug.cgi?id=782814), but it
could also be a bug in gvfs.

Screenshot: https://i.imgur.com/7a6CFE3.png


2) Second issue is more serious. I don't know if it is related to the first issue.

When opening nautilus as root, all sorts things like
pids, net_cls, lock appearing as mounts in nautilus sidebar. 

screenshot: https://i.imgur.com/bmeN4TF.png

If by mouse slip user click on unmount button
system can become unstable. This can also results in potential security exposure.
Not sure why these are getting exposed in nautilus.


Thanks.

_______________________________________________
gvfs-list mailing list
gvfs-list gnome org
https://mail.gnome.org/mailman/listinfo/gvfs-list




--
Ondrej Holy
Software Engineer, Core Desktop Development
Red Hat Czech s.r.o


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]