Skip to content

Commit 85aa551

Browse files
committed
suppress host ports for now as require getting listening port during runtime
1 parent 55a30ff commit 85aa551

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

advisor/processor/generate.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,10 @@ func (p *Processor) GeneratePSP(cssList []types.ContainerSecuritySpec, pssList [
117117
}
118118

119119
// set host ports
120-
for _, port := range sc.HostPorts {
121-
psp.Spec.HostPorts = append(psp.Spec.HostPorts, v1beta1.HostPortRange{Min: port, Max: port})
122-
}
120+
// TODO: need to integrate with listening port during the runtime, might cause false positive.
121+
//for _, port := range sc.HostPorts {
122+
// psp.Spec.HostPorts = append(psp.Spec.HostPorts, v1beta1.HostPortRange{Min: port, Max: port})
123+
//}
123124
}
124125

125126
// set allowedPrivilegeEscalation

0 commit comments

Comments
 (0)