1 |
commit: 6b9b505f4a7716a50ff9e63c85f2c4882987a732 |
2 |
Author: Mike Frysinger <vapier <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Sep 20 08:40:39 2015 +0000 |
4 |
Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Sep 20 08:40:39 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/sandbox.git/commit/?id=6b9b505f |
7 |
|
8 |
sandbox.conf: allow writing to /dev/ptmx |
9 |
|
10 |
We implicitly permit write access to this node by not catching functions |
11 |
like openpty and posix_openpt, but when projects try to access the node |
12 |
directly (due to legacy/fallback logic), the sandbox would reject them. |
13 |
Make access to the node explicit since it's generally harmless. |
14 |
|
15 |
URL: https://bugs.gentoo.org/413327 |
16 |
URL: https://bugs.gentoo.org/550650 |
17 |
URL: https://bugs.gentoo.org/550670 |
18 |
Signed-off-by: Mike Frysinger <vapier <AT> gentoo.org> |
19 |
|
20 |
etc/sandbox.conf | 2 +- |
21 |
1 file changed, 1 insertion(+), 1 deletion(-) |
22 |
|
23 |
diff --git a/etc/sandbox.conf b/etc/sandbox.conf |
24 |
index dc460f0..1d7655c 100644 |
25 |
--- a/etc/sandbox.conf |
26 |
+++ b/etc/sandbox.conf |
27 |
@@ -64,7 +64,7 @@ SANDBOX_WRITE="/dev/zero:/dev/null:/dev/full" |
28 |
# Console device nodes |
29 |
SANDBOX_WRITE="/dev/console:/dev/tty:/dev/vc/:/dev/pty:/dev/tts" |
30 |
# Device filesystems |
31 |
-SANDBOX_WRITE="/dev/pts/:/dev/shm" |
32 |
+SANDBOX_WRITE="/dev/ptmx:/dev/pts/:/dev/shm" |
33 |
# Tempory storage |
34 |
SANDBOX_WRITE="/tmp/:/var/tmp/" |
35 |
# Needed for shells |