diff options
author | Alejandro Sirgo Rica <asirgo@soleta.eu> | 2024-06-24 11:01:22 +0200 |
---|---|---|
committer | Alejandro Sirgo Rica <asirgo@soleta.eu> | 2024-06-25 13:41:41 +0200 |
commit | 6282cb41a8d3dac4995432baee1e25056a30909b (patch) | |
tree | 23564dbfeb89aa509e7944af07307311d213421c /src/utils/sw_inventory.py | |
parent | 1c9a13cd968559f89ba6b114c978eeb8c9629bed (diff) |
live: add restricted execution mode to shell/run
Try to find the script to run for a shell/run request in
/opt/opengnsys/shell/, restricted mode is enabled if the
script is found.
Excute the script without shell=True and executable=OG_SHELL in
restricted mode.
Restricted mode is a safer execution method as it only executes
code manually defined by the administrator.
Each script needs to define a shebang, this way more than just bash
is supported.
Diffstat (limited to 'src/utils/sw_inventory.py')
0 files changed, 0 insertions, 0 deletions