浏览代码

daemon: move custom seccomp profile warning from CLI to daemon side

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Sebastiaan van Stijn 4 年之前
父节点
当前提交
04f932ac86
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      daemon/info.go

+ 3 - 0
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() {