481236 - Make ShutdownMonitor java security manager friendly

+ Limit access to specific System properties
This commit is contained in:
Joakim Erdfelt 2015-11-05 10:33:25 -07:00
parent b4cf2921c8
commit 486e890d5d
1 changed files with 4 additions and 6 deletions

View File

@ -345,14 +345,12 @@ public class ShutdownMonitor
*/
private ShutdownMonitor()
{
Properties props = System.getProperties();
this.DEBUG = props.containsKey("DEBUG");
this.DEBUG = System.getProperty("DEBUG") != null;
// Use values passed thru via /jetty-start/
this.host = props.getProperty("STOP.HOST","127.0.0.1");
this.port = Integer.parseInt(props.getProperty("STOP.PORT","-1"));
this.key = props.getProperty("STOP.KEY",null);
this.host = System.getProperty("STOP.HOST","127.0.0.1");
this.port = Integer.parseInt(System.getProperty("STOP.PORT","-1"));
this.key = System.getProperty("STOP.KEY",null);
this.exitVm = true;
}