diff options
author | Alexander Kanavin <alexander.kanavin@linux.intel.com> | 2018-05-01 21:06:44 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-05-15 10:56:48 +0100 |
commit | a4a556ea679ecc18f089ad8481c8c81025359c7d (patch) | |
tree | e147856ab2b9dcac24a3ce55b8578d50bcef040c /meta/recipes-gnome/gtk+/gtk+ | |
parent | c5d7bd3ee98920281909452f8385dd441ab0ba8a (diff) | |
download | poky-a4a556ea679ecc18f089ad8481c8c81025359c7d.tar.gz |
gtk+: do not look into $HOME when looking for modules
(From OE-Core rev: c8fa5e7299940792a1c4f5255150a4ce8aac7c54)
Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-gnome/gtk+/gtk+')
-rw-r--r-- | meta/recipes-gnome/gtk+/gtk+/0001-Do-not-look-into-HOME-when-looking-for-gtk-modules.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/meta/recipes-gnome/gtk+/gtk+/0001-Do-not-look-into-HOME-when-looking-for-gtk-modules.patch b/meta/recipes-gnome/gtk+/gtk+/0001-Do-not-look-into-HOME-when-looking-for-gtk-modules.patch new file mode 100644 index 0000000000..9201e45c39 --- /dev/null +++ b/meta/recipes-gnome/gtk+/gtk+/0001-Do-not-look-into-HOME-when-looking-for-gtk-modules.patch | |||
@@ -0,0 +1,29 @@ | |||
1 | From 34ce93e1c50bfb88f92a687d4f82de55584f3f6a Mon Sep 17 00:00:00 2001 | ||
2 | From: Alexander Kanavin <alex.kanavin@gmail.com> | ||
3 | Date: Wed, 11 Apr 2018 14:20:39 +0300 | ||
4 | Subject: [PATCH] Do not look into $HOME when looking for gtk modules | ||
5 | |||
6 | On the host it causes host contamination, on the target it's a | ||
7 | potential security issue. Gtk+3 has already removed this. | ||
8 | |||
9 | Upstream-Status: Inapproriate [gtk2 is in maintenance mode] | ||
10 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> | ||
11 | --- | ||
12 | gtk/gtkmodules.c | 4 ---- | ||
13 | 1 file changed, 4 deletions(-) | ||
14 | |||
15 | diff --git a/gtk/gtkmodules.c b/gtk/gtkmodules.c | ||
16 | index 50729b6..e09b583 100644 | ||
17 | --- a/gtk/gtkmodules.c | ||
18 | +++ b/gtk/gtkmodules.c | ||
19 | @@ -65,10 +65,6 @@ get_module_path (void) | ||
20 | if (result) | ||
21 | return result; | ||
22 | |||
23 | - home_dir = g_get_home_dir(); | ||
24 | - if (home_dir) | ||
25 | - home_gtk_dir = g_build_filename (home_dir, ".gtk-2.0", NULL); | ||
26 | - | ||
27 | module_path_env = g_getenv ("GTK_PATH"); | ||
28 | exe_prefix = g_getenv ("GTK_EXE_PREFIX"); | ||
29 | |||