criu/scripts
Tycho Andersen 0d8aec0c3a seccomp: add initial support for SECCOMP_MODE_STRICT
Unfortunately, SECCOMP_MODE_FILTER is not currently exposed to userspace,
so we can't checkpoint that. In any case, this is what we need to do for
SECCOMP_MODE_STRICT, so let's do it.

This patch works by first disabling seccomp for any processes who are going
to have seccomp filters restored, then restoring the process (including the
seccomp filters), and finally resuming the seccomp filters before detaching
from the process.

v2 changes:

* update for kernel patch v2
* use protobuf enum for seccomp type
* don't parse /proc/pid/status twice

v3 changes:

* get rid of extra CR_STAGE_SECCOMP_SUSPEND stage
* only suspend seccomp in finalize_restore(), just before the unmap
* restore the (same) seccomp state in threads too; also add a note about
  how this is slightly wrong, and that we should at least check for a
  mismatch

Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
2015-06-24 17:38:32 +03:00
..
logrotate.d install: install criu-service logrotate config 2014-02-18 12:39:50 +04:00
sd criu: systemd: allow enabling criu service 2015-05-12 15:59:13 +03:00
crit-setup.py crit: add scripts/crit-setup.py 2015-01-14 20:44:48 +04:00
fake-restore.sh scripts: Add script to abort restore at the end 2014-02-05 19:40:47 +04:00
feature-tests.mak seccomp: add initial support for SECCOMP_MODE_STRICT 2015-06-24 17:38:32 +03:00
gen-offsets.sh build: Move pie/gen-offsets.sh into scripts/ 2013-10-15 11:30:41 +04:00
magic-gen.py scripts: add magic-gen.py 2015-01-14 20:44:45 +04:00
Makefile.build make: Introduce ldflags-y variable 2015-04-24 14:52:55 +03:00
Makefile.rules simplify dummy rules 2014-01-11 09:14:18 +04:00
Makefile.version make: version -- Ensure that .gitid exist vefore read 2015-05-07 18:38:26 +03:00
protobuf-gen.sh Remove \u and \U GNU-isms from sed command 2014-02-11 09:18:32 +04:00
travis-ci.sh travis: add python-ipaddr as a dep 2015-02-09 14:07:07 +03:00
utilities.mak lsm: add support for c/ring LSM profiles 2015-05-08 15:31:05 +03:00