diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-06-29 11:38:31 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-06-29 11:38:31 +0100 |
commit | 90c88731bd036e5698b281fbc0a5f3aa4c9983ac (patch) | |
tree | 83fc5facb6b12be510a37bc3d241cc63e965b13a /sys-apps/file/files | |
parent | feb0daf81d888e9160f9f94502de09b66f2a63fd (diff) |
gentoo resync : 29.06.2020
Diffstat (limited to 'sys-apps/file/files')
-rw-r--r-- | sys-apps/file/files/file-5.39-add-missing-termios.patch | 27 | ||||
-rw-r--r-- | sys-apps/file/files/file-5.39-portage_sandbox.patch | 28 |
2 files changed, 55 insertions, 0 deletions
diff --git a/sys-apps/file/files/file-5.39-add-missing-termios.patch b/sys-apps/file/files/file-5.39-add-missing-termios.patch new file mode 100644 index 000000000000..e6cba0d4c28c --- /dev/null +++ b/sys-apps/file/files/file-5.39-add-missing-termios.patch @@ -0,0 +1,27 @@ +From 769e9868c17a471323b81b12cab851c9fd22baf4 Mon Sep 17 00:00:00 2001 +From: Georgy Yakovlev <gyakovlev@gentoo.org> +Date: Mon, 15 Jun 2020 14:18:45 -0700 +Subject: [PATCH] add missing termios.h include + +on ppc, TCGETS relies on struct termios being complete, on other +architectures it does not. +so termios.h should be included before ioctl.h +--- + src/seccomp.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/seccomp.c b/src/seccomp.c +index e667adf..296f5b3 100644 +--- a/src/seccomp.c ++++ b/src/seccomp.c +@@ -33,6 +33,7 @@ FILE_RCSID("@(#)$File: seccomp.c,v 1.15 2020/05/30 23:56:26 christos Exp $") + #if HAVE_LIBSECCOMP + #include <seccomp.h> /* libseccomp */ + #include <sys/prctl.h> /* prctl */ ++#include <termios.h> + #include <sys/ioctl.h> + #include <sys/socket.h> + #include <fcntl.h> +-- +2.27.0 + diff --git a/sys-apps/file/files/file-5.39-portage_sandbox.patch b/sys-apps/file/files/file-5.39-portage_sandbox.patch new file mode 100644 index 000000000000..ff2caed413fc --- /dev/null +++ b/sys-apps/file/files/file-5.39-portage_sandbox.patch @@ -0,0 +1,28 @@ +From 7e1d9d51329a0e0f3d9cd1dbc3f9509251950e81 Mon Sep 17 00:00:00 2001 +From: tka <tka@kamph.org> +Date: Wed, 24 Jun 2020 11:18:45 +0200 +Subject: [PATCH] Allow getcwd for Gentoo's portage sandbox + +Gentoo-bug: https://bugs.gentoo.org/728978 +Signed-off-by: Lars Wendler <polynomial-c@gentoo.org> +--- + src/seccomp.c | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/src/seccomp.c b/src/seccomp.c +index 68c56485..af55918e 100644 +--- a/src/seccomp.c ++++ b/src/seccomp.c +@@ -227,6 +227,9 @@ enable_sandbox_full(void) + ALLOW_RULE(unlink); + ALLOW_RULE(write); + ++ // needed by Gentoo's portage sandbox ++ ALLOW_RULE(getcwd); ++ + + #if 0 + // needed by valgrind +-- +2.27.0 + |