diff options
author | Damien Miller <djm@mindrot.org> | 2014-09-10 08:15:34 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2014-09-10 08:15:34 +1000 |
commit | 0fa0ed061bbfedb0daa705e220748154a84c3413 (patch) | |
tree | dff0a0196cadea85b7e350f3edc56350b69b755a /sandbox-seccomp-filter.c | |
parent | ad7d23d461c3b7e1dcb15db13aee5f4b94dc1a95 (diff) |
- (djm) [sandbox-seccomp-filter.c] Allow mremap and exit for DietLibc;
patch from Felix von Leitner; ok dtucker
Diffstat (limited to 'sandbox-seccomp-filter.c')
-rw-r--r-- | sandbox-seccomp-filter.c | 4 |
1 files changed, 4 insertions, 0 deletions
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 |