summaryrefslogtreecommitdiff
path: root/extra/ctags/ctags-seccomp32.patch
blob: f371b969b6ee1bee5d841283fab9db831cc250e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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);