Blame SOURCES/flatpak-1.0.2-CVE-2019-10063.patch
|
|
4f7afe |
From 9686b3007afb15162cb2b5ca3219d906cc849a60 Mon Sep 17 00:00:00 2001
|
|
|
4f7afe |
From: Ryan Gonzalez <rymg19@gmail.com>
|
|
|
4f7afe |
Date: Mon, 25 Mar 2019 13:00:15 -0500
|
|
|
4f7afe |
Subject: [PATCH] run: Only compare the lowest 32 ioctl arg bits for TIOCSTI
|
|
|
4f7afe |
|
|
|
4f7afe |
Closes #2782.
|
|
|
4f7afe |
|
|
|
4f7afe |
Closes: #2783
|
|
|
4f7afe |
Approved by: alexlarsson
|
|
|
4f7afe |
---
|
|
|
4f7afe |
common/flatpak-run.c | 2 +-
|
|
|
4f7afe |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
4f7afe |
|
|
|
4f7afe |
diff --git a/common/flatpak-run.c b/common/flatpak-run.c
|
|
|
4f7afe |
index b4f2c475..0e6b3141 100644
|
|
|
4f7afe |
--- a/common/flatpak-run.c
|
|
|
4f7afe |
+++ b/common/flatpak-run.c
|
|
|
4f7afe |
@@ -2122,7 +2122,7 @@ setup_seccomp (FlatpakBwrap *bwrap,
|
|
|
4f7afe |
{SCMP_SYS (clone), &SCMP_A0 (SCMP_CMP_MASKED_EQ, CLONE_NEWUSER, CLONE_NEWUSER)},
|
|
|
4f7afe |
|
|
|
4f7afe |
/* Don't allow faking input to the controlling tty (CVE-2017-5226) */
|
|
|
4f7afe |
- {SCMP_SYS (ioctl), &SCMP_A1 (SCMP_CMP_EQ, (int) TIOCSTI)},
|
|
|
4f7afe |
+ {SCMP_SYS (ioctl), &SCMP_A1 (SCMP_CMP_MASKED_EQ, 0xFFFFFFFFu, (int) TIOCSTI)},
|
|
|
4f7afe |
};
|
|
|
4f7afe |
|
|
|
4f7afe |
struct
|
|
|
4f7afe |
--
|
|
|
4f7afe |
2.21.0
|
|
|
4f7afe |
|