Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/extra/ctags/ctags-seccomp32.patch
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-01-21 10:09:43 +0100
committerErich Eckner <git@eckner.net>2019-01-21 10:09:43 +0100
commit70a7c30b8196a4398cf755b93507516d0f83be56 (patch)
tree209c100961292220e8af6a75f6eccf2cf9a0e440 /extra/ctags/ctags-seccomp32.patch
parent22d62828d91c69d6ec0db0ab42be321a0370f561 (diff)
parentbdaf29915201bec1e7ebffb37bf9f96a7dd529e8 (diff)
Merge branch 'master' into i486
Diffstat (limited to 'extra/ctags/ctags-seccomp32.patch')
-rw-r--r--extra/ctags/ctags-seccomp32.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/extra/ctags/ctags-seccomp32.patch b/extra/ctags/ctags-seccomp32.patch
new file mode 100644
index 00000000..f371b969
--- /dev/null
+++ b/extra/ctags/ctags-seccomp32.patch
@@ -0,0 +1,16 @@
+diff -rauN ctags/main/seccomp.c ctags-seccomp32-patch/main/seccomp.c
+--- ctags/main/seccomp.c 2018-11-22 16:36:35.366666457 +0100
++++ ctags-seccomp32-patch/main/seccomp.c 2018-11-22 16:37:05.683333126 +0100
+@@ -41,10 +41,12 @@
+
+ // The bowels of stdio want to know the size of a file, even for stdout.
+ seccomp_rule_add (ctx, SCMP_ACT_ALLOW, SCMP_SYS (fstat), 0);
++ seccomp_rule_add (ctx, SCMP_ACT_ALLOW, SCMP_SYS (fstat64), 0);
+
+ // seems unnecessary, but this comes from
+ // main/parse.c:2764 : tagFilePosition (&tagfpos);
+ seccomp_rule_add (ctx, SCMP_ACT_ALLOW, SCMP_SYS (lseek), 0);
++ seccomp_rule_add (ctx, SCMP_ACT_ALLOW, SCMP_SYS (_llseek), 0);
+
+ // libxml2 uses pthread_once, which in turn uses a futex
+ seccomp_rule_add (ctx, SCMP_ACT_ALLOW, SCMP_SYS (futex), 0);