summaryrefslogtreecommitdiff
path: root/src/nautilus-places-view.c
diff options
context:
space:
mode:
authorCarlos Soriano <csoriano@gnome.org>2018-05-09 13:35:05 +0200
committerCarlos Soriano <csoriano1618@gmail.com>2018-05-09 14:24:17 +0000
commit3a22ed5b8e3bbc1c59ff3069ee79755168754916 (patch)
treeaf7354d6709c9a5555e1095a68ef2f618c64259c /src/nautilus-places-view.c
parent834833582056e9781d6b5923473aa050982cc2d2 (diff)
downloadnautilus-3a22ed5b8e3bbc1c59ff3069ee79755168754916.tar.gz
general: Don't allow launching binaries or programs in general
For long we used to support that since the desktop was part of Nautilus. Also, back then we didn't have a Software app where you are expected to installs apps. Back then it was common for apps to be delivered in a tarball, nowadays that's out of question. Now that the desktop is long gone, launching binaries and desktop files from within Nautilus is not as useful. Not only that, but we are moving towards a more sandboxed system, and we should use the standard and system wide support for launching apps based on users choices. We also are not able to be secure enough to handle this, as we saw in the past we allowed untrusted binaries to be launched, and therefore we had a CVE (CVE-2017-14604) for Nautilus. We are not being audited (afaik) and we are not in a position that we can let this issues slip. With that altogether, this prevents launching binaries or programs from Nautilus. Closes: https://gitlab.gnome.org/GNOME/nautilus/issues/184
Diffstat (limited to 'src/nautilus-places-view.c')
-rw-r--r--src/nautilus-places-view.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/nautilus-places-view.c b/src/nautilus-places-view.c
index 80134c9e3..49ec23947 100644
--- a/src/nautilus-places-view.c
+++ b/src/nautilus-places-view.c
@@ -91,16 +91,13 @@ open_location_cb (NautilusPlacesView *view,
{
NautilusFile *file;
GtkWidget *window;
- char *path;
- path = "other-locations:///";
file = nautilus_file_get (location);
window = gtk_widget_get_toplevel (GTK_WIDGET (view));
nautilus_mime_activate_file (GTK_WINDOW (window),
NAUTILUS_WINDOW_SLOT (slot),
file,
- path,
flags);
nautilus_file_unref (file);
}