diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | sandbox-seccomp-filter.c | 4 |
2 files changed, 8 insertions, 0 deletions
@@ -1,3 +1,7 @@ | |||
1 | 20140910 | ||
2 | - (djm) [sandbox-seccomp-filter.c] Allow mremap and exit for DietLibc; | ||
3 | patch from Felix von Leitner; ok dtucker | ||
4 | |||
1 | 20140908 | 5 | 20140908 |
2 | - (dtucker) [INSTALL] Update info about egd. ok djm@ | 6 | - (dtucker) [INSTALL] Update info about egd. ok djm@ |
3 | 7 | ||
diff --git a/sandbox-seccomp-filter.c b/sandbox-seccomp-filter.c index c2be00696..b6f6258f2 100644 --- a/sandbox-seccomp-filter.c +++ b/sandbox-seccomp-filter.c | |||
@@ -118,6 +118,10 @@ static const struct sock_filter preauth_insns[] = { | |||
118 | #ifdef __NR_mmap | 118 | #ifdef __NR_mmap |
119 | SC_ALLOW(mmap), | 119 | SC_ALLOW(mmap), |
120 | #endif | 120 | #endif |
121 | #ifdef __dietlibc__ | ||
122 | SC_ALLOW(mremap), | ||
123 | SC_ALLOW(exit), | ||
124 | #endif | ||
121 | SC_ALLOW(munmap), | 125 | SC_ALLOW(munmap), |
122 | SC_ALLOW(exit_group), | 126 | SC_ALLOW(exit_group), |
123 | #ifdef __NR_rt_sigprocmask | 127 | #ifdef __NR_rt_sigprocmask |