summaryrefslogtreecommitdiff
path: root/sandbox-seccomp-filter.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2014-02-06 11:17:50 +1100
committerDamien Miller <djm@mindrot.org>2014-02-06 11:17:50 +1100
commit6434cb2cfbbf0a46375d2d22f2ff9927feb5e478 (patch)
tree9b2794cbddb54619dc15ba21cd2af518b3e39b88 /sandbox-seccomp-filter.c
parent8d36f9ac71eff2e9f5770c0518b73d875f270647 (diff)
- (djm) [sandbox-seccomp-filter.c] Not all Linux architectures define
__NR_shutdown; some go via the socketcall(2) multiplexer.
Diffstat (limited to 'sandbox-seccomp-filter.c')
-rw-r--r--sandbox-seccomp-filter.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sandbox-seccomp-filter.c b/sandbox-seccomp-filter.c
index dbda60bab..c0c17c2fc 100644
--- a/sandbox-seccomp-filter.c
+++ b/sandbox-seccomp-filter.c
@@ -98,7 +98,9 @@ static const struct sock_filter preauth_insns[] = {
98 SC_ALLOW(read), 98 SC_ALLOW(read),
99 SC_ALLOW(write), 99 SC_ALLOW(write),
100 SC_ALLOW(close), 100 SC_ALLOW(close),
101#ifdef __NR_shutdown /* not defined on archs that go via socketcall(2) */
101 SC_ALLOW(shutdown), 102 SC_ALLOW(shutdown),
103#endif
102 SC_ALLOW(brk), 104 SC_ALLOW(brk),
103 SC_ALLOW(poll), 105 SC_ALLOW(poll),
104#ifdef __NR__newselect 106#ifdef __NR__newselect