summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIshimoto Shinobu <nagakamira@gmail.com>2021-03-27 11:39:40 +0900
committerMichael Catanzaro <mcatanzaro@gnome.org>2021-04-11 13:30:56 +0000
commit1b722ab622f3e0e8ad199e4f1db650416d198adb (patch)
treedfa4b88ed614a105f6ecc8c90f576b5c5b87621b
parent96565763e950e9c281751c5fe35c9ba83cb61ac8 (diff)
downloadgnome-desktop-1b722ab622f3e0e8ad199e4f1db650416d198adb.tar.gz
thumbnail: Fix sandboxing on MUSL systems
Don't force bind /etc/ld.so.cache, as it isn't used on non-glibc systems such as MUSL-based OSes. Closes: #117
-rw-r--r--libgnome-desktop/gnome-desktop-thumbnail-script.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgnome-desktop/gnome-desktop-thumbnail-script.c b/libgnome-desktop/gnome-desktop-thumbnail-script.c
index a21597a9..ddcc1511 100644
--- a/libgnome-desktop/gnome-desktop-thumbnail-script.c
+++ b/libgnome-desktop/gnome-desktop-thumbnail-script.c
@@ -557,7 +557,7 @@ add_bwrap (GPtrArray *array,
add_args (array,
"bwrap",
"--ro-bind", "/usr", "/usr",
- "--ro-bind", "/etc/ld.so.cache", "/etc/ld.so.cache",
+ "--ro-bind-try", "/etc/ld.so.cache", "/etc/ld.so.cache",
NULL);
/* These directories might be symlinks into /usr/... */