summaryrefslogtreecommitdiff
path: root/sys-apps/file/files/file-5.39-allow-futex-seccomp.patch
blob: 8d9e3d1eb6605f4980daae89273743ec6ff8f3dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
In some situations, futex() is called even when lzma
support is not compiled in. Let's enable it unconditionally
for now.

https://bugs.gentoo.org/771096
https://bugs.astron.com/view.php?id=241
--- a/src/seccomp.c
+++ b/src/seccomp.c
@@ -175,9 +175,7 @@ enable_sandbox_full(void)
  	ALLOW_RULE(fcntl64);
 	ALLOW_RULE(fstat);
  	ALLOW_RULE(fstat64);
-#ifdef XZLIBSUPPORT
 	ALLOW_RULE(futex);
-#endif
 	ALLOW_RULE(getdents);
 #ifdef __NR_getdents64
 	ALLOW_RULE(getdents64);