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: Serge Hallyn <serge.hallyn@ubuntu.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
This commit is contained in:
Serge Hallyn 2014-02-24 11:28:10 -06:00 committed by Stéphane Graber
parent 642d1ccd98
commit c2b9bd9e81

View File

@ -1050,6 +1050,9 @@ int __lxc_start(const char *name, struct lxc_conf *conf,
DEBUG("Container rebooting");
handler->conf->reboot = 1;
break;
case SIGSYS: /* seccomp */
DEBUG("Container violated its seccomp policy");
break;
default:
DEBUG("unknown exit status for init: %d", WTERMSIG(status));
break;