seccomp: exit if seccomp_init() fails
PATCH 1/1 seccomp: exit if seccomp_init() fails
This fixes a bug where we weren't exiting if seccomp_init() failed.
Signed-off-by Corey Bryant <[email protected]>
--- qemu-seccomp.c | 1 + 1 file changed, 1 insertion(+)
qemu-seccomp.c +1 -0
@@ -231,6 +231,7 @@ int seccomp_start(void) ctx =seccomp_init (SCMP_ACT_KILL );if (ctx ==NULL ) { + rc =-1 ; goto seccomp_return; }
Signature · 1 line
1.8.1.4
Quoted 12 lines · Corey Bryant
This fixes a bug where we weren't exiting if
seccomp_init()failed.Signed-off-by Corey Bryant <[email protected]>--- qemu-seccomp.c | 1 + 1 file changed, 1 insertion(+)qemu-seccomp.c +0
-0
qemu-seccomp.c int seccomp_start(void) · line 237
Quoted 7 lines
qemu-seccomp.c +1
-0@@ -231,6 +231,7 @@ int seccomp_start(void) ctx =seccomp_init (SCMP_ACT_KILL );if (ctx ==NULL ) { + rc =-1 ; goto seccomp_return; }
ACK.
Reviewed-by Eduardo Otubo <[email protected]>
Signature · 2 lines
Eduardo Otubo IBM Linux Technology Center
Quoted 6 lines · Corey Bryant
This fixes a bug where we weren't exiting if
seccomp_init()failed.Signed-off-by Corey Bryant <[email protected]>--- qemu-seccomp.c | 1 + 1 file changed, 1 insertion(+)
Acked-by Paul Moore <[email protected]>
Quoted 11 lines
qemu-seccomp.c +1
-0@@ -231,6 +231,7 @@ int seccomp_start(void) ctx =seccomp_init (SCMP_ACT_KILL );if (ctx ==NULL ) { + rc =-1 ; goto seccomp_return; }
Signature · 2 lines
paul moore security and virtualization @ redhat
Quoting Corey Bryant (2013-12-18 10:48:11)
Quoted 3 lines
This fixes a bug where we weren't exiting if
seccomp_init()failed.Signed-off-by Corey Bryant <[email protected]>
Cc'ing qemu-stable
Quoted 18 lines
--- qemu-seccomp.c | 1 + 1 file changed, 1 insertion(+)qemu-seccomp.c +1
-0@@ -231,6 +231,7 @@ int seccomp_start(void) ctx =seccomp_init (SCMP_ACT_KILL );if (ctx ==NULL ) { + rc =-1 ; goto seccomp_return; }Signature · 1 line
1.8.1.4