groovy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jochen Theodorou <blackd...@gmx.org>
Subject Re: Security: disable process groovy methods
Date Wed, 29 Mar 2017 05:25:45 GMT
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


Mime
View raw message