diff options
author | Britney Fransen <brfransen@gmail.com> | 2020-09-29 01:28:07 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2020-09-29 01:28:07 (GMT) |
commit | 8718c333ecf071cdbbe8899fce5f229d54782de4 (patch) | |
tree | 64090024481267d6ec0d39833211b9fb5ef97406 /abs/core/file/file-5.38-seccomp-tcgets.patch | |
parent | 1845aacb58c4ae7f089000a080a5d46e69b60fc0 (diff) | |
download | linhes_pkgbuild-8718c333ecf071cdbbe8899fce5f229d54782de4.zip linhes_pkgbuild-8718c333ecf071cdbbe8899fce5f229d54782de4.tar.gz linhes_pkgbuild-8718c333ecf071cdbbe8899fce5f229d54782de4.tar.bz2 |
file: update to 5.39
Diffstat (limited to 'abs/core/file/file-5.38-seccomp-tcgets.patch')
-rw-r--r-- | abs/core/file/file-5.38-seccomp-tcgets.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/abs/core/file/file-5.38-seccomp-tcgets.patch b/abs/core/file/file-5.38-seccomp-tcgets.patch new file mode 100644 index 0000000..fac29f4 --- /dev/null +++ b/abs/core/file/file-5.38-seccomp-tcgets.patch @@ -0,0 +1,28 @@ +From 78573ec1c43346064661169c5c8df32e7c3bd6d6 Mon Sep 17 00:00:00 2001 +From: Christos Zoulas <christos@zoulas.com> +Date: Fri, 17 Jan 2020 17:12:58 +0000 +Subject: [PATCH] PR/130: tobias: adjust seccomp for ioctl on hardwired + terminal + +--- + src/seccomp.c | 8 ++++++-- + 1 file changed, 6 insertions(+), 2 deletions(-) + +diff --git a/src/seccomp.c b/src/seccomp.c +index ebf3ea1cb..0ba17233b 100644 +--- a/src/seccomp.c ++++ b/src/seccomp.c +@@ -186,8 +186,12 @@ enable_sandbox_full(void) + ALLOW_IOCTL_RULE(FIONREAD); + #endif + #ifdef TIOCGWINSZ +- // musl libc may call ioctl TIOCGWINSZ when calling stdout ++ // musl libc may call ioctl TIOCGWINSZ on stdout + ALLOW_IOCTL_RULE(TIOCGWINSZ); ++#endif ++#ifdef TCGETS ++ // glibc may call ioctl TCGETS on stdout on physical terminal ++ ALLOW_IOCTL_RULE(TCGETS); + #endif + ALLOW_RULE(lseek); + ALLOW_RULE(_llseek); |