Skip to content

Commit 04f932a

Browse files
committed
daemon: move custom seccomp profile warning from CLI to daemon side
Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent f8795ed commit 04f932a

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

daemon/info.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,9 @@ func (daemon *Daemon) fillSecurityOptions(v *types.Info, sysInfo *sysinfo.SysInf
176176
if profile == "" {
177177
profile = config.SeccompProfileDefault
178178
}
179+
if profile != config.SeccompProfileDefault {
180+
v.Warnings = append(v.Warnings, "WARNING: daemon is not using the default seccomp profile")
181+
}
179182
securityOptions = append(securityOptions, fmt.Sprintf("name=seccomp,profile=%s", profile))
180183
}
181184
if selinux.GetEnabled() {

0 commit comments

Comments
 (0)