seccomp: add arch_prctl() to the syscall whitelist
PATCH 1/1 seccomp: add arch_prctl() to the syscall whitelist
It appears that even a very simple /etc/qemu-ifup configuration can require the arch_prctl() syscall, see the example below:
#!/bin/sh /sbin/ifconfig $1 0.0.0.0 up /usr/sbin/brctl addif <switch> $1
--- qemu-seccomp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
qemu-seccomp.c +2 -1
@@ -234,7 +234,8 @@ static const struct QemuSeccompSyscall seccomp_whitelist[] = { { SCMP_SYS(waitid), 241 }, { SCMP_SYS(io_cancel), 241 }, { SCMP_SYS(io_setup), 241 }, - { SCMP_SYS(io_destroy), 241 } + { SCMP_SYS(io_destroy), 241 }, + { SCMP_SYS(arch_prctl), 240 } };int seccomp_start (void )
Quoted 8 lines · Paul Moore
It appears that even a very simple
/etc/qemu-ifupconfiguration can require thearch_prctl()syscall, see the example below:#!/bin/sh /sbin/ifconfig $1 0.0.0.0 up /usr/sbin/brctl addif <switch> $1Signed-off-by Paul Moore <[email protected]>
As with the other fix, a gentle nudge so this isn't forgotten.
Quoted 18 lines
--- qemu-seccomp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)qemu-seccomp.c +2
-1@@ -234,7 +234,8 @@ static const struct QemuSeccompSyscall seccomp_whitelist[] = { { SCMP_SYS(waitid), 241 }, {SCMP_SYS (io_cancel),241 }, {SCMP_SYS (io_setup),241 }, - {SCMP_SYS (io_destroy),241 } + {SCMP_SYS (io_destroy),241 }, + {SCMP_SYS (arch_prctl),240 } };int seccomp_start (void )
Signature · 2 lines
paul moore security and virtualization @ redhat
Eduardo Otubo
Reviewed-byQuoted 11 lines · Paul Moore
Quoted 8 lines · Paul Moore
It appears that even a very simple
/etc/qemu-ifupconfiguration can require thearch_prctl()syscall, see the example below:#!/bin/sh /sbin/ifconfig $1 0.0.0.0 up /usr/sbin/brctl addif <switch> $1Signed-off-by Paul Moore <[email protected]>As with the other fix, a gentle nudge so this isn't forgotten.
Reviewed and tested.
Quoted 19 lines
Quoted 19 lines
--- qemu-seccomp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)qemu-seccomp.c +2
-1@@ -234,7 +234,8 @@ static const struct QemuSeccompSyscall seccomp_whitelist[] = { { SCMP_SYS(waitid), 241 }, {SCMP_SYS (io_cancel),241 }, {SCMP_SYS (io_setup),241 }, - {SCMP_SYS (io_destroy),241 } + {SCMP_SYS (io_destroy),241 }, + {SCMP_SYS (arch_prctl),240 } };int seccomp_start (void )
Signature · 2 lines
Eduardo Otubo IBM Linux Technology Center
Quoted 9 lines · Eduardo Otubo
Quoted 8 lines · Paul Moore
Quoted 7 lines · Paul Moore
It appears that even a very simple
/etc/qemu-ifupconfiguration canrequire the
arch_prctl()syscall, see the example below:#!/bin/sh /sbin/ifconfig $1 0.0.0.0 up /usr/sbin/brctl addif <switch> $1
Quoted 7 lines
Quoted 3 lines
Quoted 1 line
Signed-off-by Paul Moore <[email protected]>As with the other fix, a gentle nudge so this isn't forgotten.
Reviewed and tested.
Reviewed-by Eduardo Otubo <[email protected]>
Any chance of merging this patch?
Quoted 22 lines
Quoted 22 lines
Quoted 22 lines
---
qemu-seccomp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)qemu-seccomp.c +2
-1@@ -234,7 +234,8 @@ static const struct QemuSeccompSyscall seccomp_whitelist[] = { { SCMP_SYS(waitid), 241 }, { SCMP_SYS(io_cancel), 241 }, { SCMP_SYS(io_setup), 241 }, - { SCMP_SYS(io_destroy), 241 } + { SCMP_SYS(io_destroy), 241 }, + { SCMP_SYS(arch_prctl), 240 }};int
seccomp_start(void)
Signature · 2 lines
paul moore security and virtualization @ redhat
Anthony Liguori
AppliedApplied. Thanks.
Regards,
Anthony Liguori