On 11/14/2026 5:40 PM, Lawrence D’Oliveiro wrote:
> On Sat, 14 Nov 2026 17:37:24 -0500, Arne Vajhøj wrote:
>> On 11/14/2026 5:19 PM, Lawrence D’Oliveiro wrote:
>>> On Sat, 14 Nov 2026 14:08:58 -0500, Arne Vajhøj wrote:
>>>> Note that besides PHP there is one other web technology available
>>>> on VMS that can block shell access.
>>>
>>> On Linux, you rely on more wide-ranging access controls, like
>>> container namespaces. Those controls work across all languages, all
>>> runtimes, all libraries, all everything, because they are enforced
>>> by the kernel.
>>>
>>> *That* is how to do security. Not by relying on poorly-designed
>>> mechanisms specific to one poorly-designed language.
>>
>> It is not an alternative to hardening application and server. It is
>> an addition.
>
> You were talking about blocking shell access. You can set up a Linux
> container that only runs the one app as pid 1, with no “shell”
> anywhere in the visible filesystem to access.
>
> *That* is how to “block shell access”.
No shell obvious prevent shell access.
But you should talk to the guy that like to post to
comp.os.vms about how Linux allows for starting a
process without a shell avoiding the need for escaping.
:-)
At least one of the other PHP functions use that
mechanism.
Containers are a great technology, but it is not the
right tool to prevent web applications from executing
commands.
Arne