On 29.03.2017 03:47, Radoslav Ivanov wrote:
Hi guys

In context of secure groovy runtime, is there a way (like
SecureCustomizer) to forbid/disable process groovy methods?, e.g.:

‘kill -9 1234’.execute()

Also have you planned on implementing a switch to disable them?

using a security manager you can give the runtime no rights for to execute files. See https://docs.oracle.com/javase/8/docs/api/java/lang/SecurityManager.html#checkExec-java.lang.String-

bye Jochen

Reply via email to