|
|
@@ -644,6 +644,10 @@ func (c *Container) verifyAttachConditions(r *Registry, pid uint32) (bool, int)
|
|
|
}
|
|
|
// 判断规则
|
|
|
if strings.Contains(cmdline, ruleVal) {
|
|
|
+ if !codeType.IsJvmCode() {
|
|
|
+ klog.WithField("pid", pid).Warning("[verify] This agent version only supports JVM applications.")
|
|
|
+ return false, 0
|
|
|
+ }
|
|
|
c.WhiteSettingInfo.AppName = setting.AppName
|
|
|
c.WhiteSettingInfo.Filters = setting.Filters
|
|
|
klog.WithField("pid", pid).
|