From 0d5306a0b69c912a981f3a4bd41b80beb1207851 Mon Sep 17 00:00:00 2001 From: Justin Cormack Date: Tue, 29 Dec 2015 12:31:33 +0000 Subject: [PATCH] Deny finit_module in default seccomp profile This is a new version of init_module that takes a file descriptor rather than a file name. Signed-off-by: Justin Cormack --- daemon/execdriver/native/seccomp_default.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/daemon/execdriver/native/seccomp_default.go b/daemon/execdriver/native/seccomp_default.go index 1075a0b315..1e8630851d 100644 --- a/daemon/execdriver/native/seccomp_default.go +++ b/daemon/execdriver/native/seccomp_default.go @@ -71,6 +71,12 @@ var defaultSeccompProfile = &configs.Seccomp{ Action: configs.Errno, Args: []*configs.Arg{}, }, + { + // Deny manipulation and functions on kernel modules. + Name: "finit_module", + Action: configs.Errno, + Args: []*configs.Arg{}, + }, { // Deny retrieval of exported kernel and module symbols Name: "get_kernel_syms",