Commit c2b9bd9e by Serge Hallyn Committed by Stéphane Graber

Catch seccomp violations by init

Note that if a task other than init violates the seccomp policy, we cannot catch that. Init will catch it and (if it feels like it) log it. Signed-off-by: 's avatarSerge Hallyn <serge.hallyn@ubuntu.com> Acked-by: 's avatarStéphane Graber <stgraber@ubuntu.com>
parent 642d1ccd
...@@ -1050,6 +1050,9 @@ int __lxc_start(const char *name, struct lxc_conf *conf, ...@@ -1050,6 +1050,9 @@ int __lxc_start(const char *name, struct lxc_conf *conf,
DEBUG("Container rebooting"); DEBUG("Container rebooting");
handler->conf->reboot = 1; handler->conf->reboot = 1;
break; break;
case SIGSYS: /* seccomp */
DEBUG("Container violated its seccomp policy");
break;
default: default:
DEBUG("unknown exit status for init: %d", WTERMSIG(status)); DEBUG("unknown exit status for init: %d", WTERMSIG(status));
break; break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment