Browse Source

Allow syscalls make by libfakeroot. Closes: #932762

Christoph Biedl 1 year ago
parent
commit
e0dd7726b4
2 changed files with 35 additions and 0 deletions
  1. 34 0
      debian/patches/local.allow-syscalls-by-fakeroot.patch
  2. 1 0
      debian/patches/series

+ 34 - 0
debian/patches/local.allow-syscalls-by-fakeroot.patch

@@ -0,0 +1,34 @@
+Subject: Allow syscalls make by libfakeroot
+Upstream-Author: Christoph Biedl <debian.axhn@manchmal.in-ulm.de>
+Last-Update: 2019-07-22
+Bug-Debian: https://bugs.debian.org/932762
+
+--- a/src/seccomp.c
++++ b/src/seccomp.c
+@@ -181,6 +181,7 @@
+ #ifdef __NR_getdents64
+ 	ALLOW_RULE(getdents64);
+ #endif
++	ALLOW_RULE(getpid);
+ #ifdef FIONREAD
+ 	// called in src/compress.c under sread
+ 	ALLOW_IOCTL_RULE(FIONREAD);
+@@ -198,6 +199,9 @@
+  	ALLOW_RULE(mmap2);
+ 	ALLOW_RULE(mprotect);
+ 	ALLOW_RULE(mremap);
++	ALLOW_RULE(msgget);
++	ALLOW_RULE(msgrcv);
++	ALLOW_RULE(msgsnd);
+ 	ALLOW_RULE(munmap);
+ #ifdef __NR_newfstatat
+ 	ALLOW_RULE(newfstatat);
+@@ -211,6 +215,8 @@
+ 	ALLOW_RULE(rt_sigprocmask);
+ 	ALLOW_RULE(rt_sigreturn);
+ 	ALLOW_RULE(select);
++	ALLOW_RULE(semget);
++	ALLOW_RULE(semop);
+ 	ALLOW_RULE(stat);
+ 	ALLOW_RULE(stat64);
+ 	ALLOW_RULE(sysinfo);

+ 1 - 0
debian/patches/series

@@ -16,3 +16,4 @@ local.mention-posixly-correct-dependent-behaviour-in-usage-message.patch
 local.disable-detection-of-vax-coff-executables.patch
 local.disable-algol68-detection.patch
 local.extra-magic.patch
+local.allow-syscalls-by-fakeroot.patch