On 5/14/24 6:22 PM, Matheus Afonso Martins Moreira wrote:
Or you could simply ignore BASH_SOURCE_PATH in restricted mode.

Then the restricted shells will not have access to this new functionality.
I thought it could be useful if properly integrated.

It would require updating all restricted environments.


Or, at least, this should be an opt-in
feature that the scripts to set up the
restricted shells need to explicitly turn on
instead of being automatically enabled
through the existence of a variable BASH_SOURCE_PATH.

I think this is a very good idea, especially if we combine it with
the "no defaults" idea.

That would again require everyone to update whatever restricted shell
configuration they have now.

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    c...@case.edu    http://tiswww.cwru.edu/~chet/


Reply via email to