On 11/14/2026 1:22 PM, Arne Vajhøj wrote:
> But having a central config file to control the security of a
> server is a smart idea.
>
> And this is a server config.
Note that besides PHP there is one other web technology
available on VMS that can block shell access.
Java can prevent Runtime.exec calls via the SecurityManager.
And Tomcat can be started with a security manager. Just
specify -security at command line and Tomcat ships
with a catalina.policy file.
But there are some problems:
* SecurityManager is gone from Java 24 and onwards so whenever
Java 25 hits VMS then no more SecurityManager (I could say
a few words with my opinion about JCP's decision to
remove the SecurityManager, but I better not use
such words publicly ...)
* the syntax of security policy files are a bit
cryptic (despite actually being VMS like)
Regarding the second point then the syntax is like:
grant {
permission java.io.FilePermission "-","read,write";
};
And while:
- default no access only explicit granted access matters
- read and write vs execute (to allow exec would be "read,write,execute)
does match VMS thinking then the overall syntax is more like
'WTF is that?'.
Arne