Skip to content

Commit 448855a

Browse files
valoqsebastinas
authored andcommitted
add mmap2 for 32-bit arm
1 parent 52f3837 commit 448855a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

zathura/seccomp-filters.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,9 @@ int seccomp_enable_strict_filter(zathura_t* zathura) {
102102
ALLOW_RULE(madvise);
103103
ALLOW_RULE(memfd_create);
104104
ALLOW_RULE(mmap);
105+
#ifdef __NR_mmap2
106+
ALLOW_RULE(mmap2); /* Only required on 32-bit ARM systems */
107+
#endif
105108
ALLOW_RULE(mprotect);
106109
ALLOW_RULE(mremap); /* mupdf requirement */
107110
ALLOW_RULE(munmap);

0 commit comments

Comments
 (0)