]> git.ipfire.org Git - thirdparty/systemd.git/commit
nspawn: make seccomp loading errors non-fatal 205/head
authorIago López Galeiras <iago@endocode.com>
Fri, 12 Jun 2015 14:22:40 +0000 (16:22 +0200)
committerIago López Galeiras <iago@endocode.com>
Mon, 15 Jun 2015 08:55:31 +0000 (10:55 +0200)
commit9b1cbdc6e18ddeddc42df558e574322c64867b24
treef7ab9da68db2d31c8d3789b9dc4073da20a5c4f8
parenteb59b6094197a7dcef89639ec3e91eef61b639bb
nspawn: make seccomp loading errors non-fatal

seccomp_load returns -EINVAL when seccomp support is not enabled in the
kernel [1]. This should be a debug log, not an error that interrupts nspawn.
If the seccomp filter can't be set and audit is enabled, the user will
get an error message anyway.

[1]: http://man7.org/linux/man-pages/man2/prctl.2.html
src/nspawn/nspawn.c