diff options
author | Damien Miller <djm@mindrot.org> | 2014-09-10 00:15:34 +0200 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2014-09-10 00:15:34 +0200 |
commit | 0fa0ed061bbfedb0daa705e220748154a84c3413 (patch) | |
tree | dff0a0196cadea85b7e350f3edc56350b69b755a /sandbox-seccomp-filter.c | |
parent | 20140908 (diff) | |
download | openssh-0fa0ed061bbfedb0daa705e220748154a84c3413.tar.xz openssh-0fa0ed061bbfedb0daa705e220748154a84c3413.zip |
- (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[] = { #ifdef __NR_mmap SC_ALLOW(mmap), #endif +#ifdef __dietlibc__ + SC_ALLOW(mremap), + SC_ALLOW(exit), +#endif SC_ALLOW(munmap), SC_ALLOW(exit_group), #ifdef __NR_rt_sigprocmask |