[gnome-desktop/gnome-3-30] thumbnailer: fix incomplete TIOCSTI filtering
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-desktop/gnome-3-30] thumbnailer: fix incomplete TIOCSTI filtering
- Date: Sat, 13 Apr 2019 19:02:10 +0000 (UTC)
commit 83949ed5800ec99953f5ee8d2bf8b90a69daa850
Author: Michael Catanzaro <mcatanzaro igalia com>
Date: Sat Apr 13 13:57:36 2019 -0500
thumbnailer: fix incomplete TIOCSTI filtering
Fixes #112
See also: https://github.com/flatpak/flatpak/issues/2782
libgnome-desktop/gnome-desktop-thumbnail-script.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/libgnome-desktop/gnome-desktop-thumbnail-script.c
b/libgnome-desktop/gnome-desktop-thumbnail-script.c
index 9468b51c..3b3d1ea9 100644
--- a/libgnome-desktop/gnome-desktop-thumbnail-script.c
+++ b/libgnome-desktop/gnome-desktop-thumbnail-script.c
@@ -343,7 +343,7 @@ setup_seccomp (GPtrArray *argv_array,
{SCMP_SYS (clone), &SCMP_A0 (SCMP_CMP_MASKED_EQ, CLONE_NEWUSER, CLONE_NEWUSER)},
/* Don't allow faking input to the controlling tty (CVE-2017-5226) */
- {SCMP_SYS (ioctl), &SCMP_A1(SCMP_CMP_EQ, (int)TIOCSTI)},
+ {SCMP_SYS (ioctl), &SCMP_A1(SCMP_CMP_MASKED_EQ, 0xFFFFFFFFu, (int)TIOCSTI)},
};
struct
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]