From 04f932ac862c05a5af2a5950b5e1744100b14eea Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Mon, 7 Jun 2021 18:41:21 +0200 Subject: [PATCH] daemon: move custom seccomp profile warning from CLI to daemon side Signed-off-by: Sebastiaan van Stijn --- daemon/info.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/daemon/info.go b/daemon/info.go index 9994affb6b..d1ccf776b8 100644 --- a/daemon/info.go +++ b/daemon/info.go @@ -176,6 +176,9 @@ func (daemon *Daemon) fillSecurityOptions(v *types.Info, sysInfo *sysinfo.SysInf if profile == "" { profile = config.SeccompProfileDefault } + if profile != config.SeccompProfileDefault { + v.Warnings = append(v.Warnings, "WARNING: daemon is not using the default seccomp profile") + } securityOptions = append(securityOptions, fmt.Sprintf("name=seccomp,profile=%s", profile)) } if selinux.GetEnabled() {