diff options
author | Glandos <bugs-github@antipoul.fr> | 2023-02-15 23:37:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-15 23:37:13 +0100 |
commit | 528e66859bdf912b422efaa5e0ba833eef939735 (patch) | |
tree | db31e206597c34109bf85e7d6ea40a189a1670f2 /lib/private/Log | |
parent | b36a31c918ad997e6d227dc7923791c487e18e51 (diff) | |
download | nextcloud-server-528e66859bdf912b422efaa5e0ba833eef939735.tar.gz nextcloud-server-528e66859bdf912b422efaa5e0ba833eef939735.zip |
Use proc_open to avoid spawning a shell
The use of `exec` will spawn a shell, using `/bin/sh` on POSIX platforms. But in restricted environment, such as AppArmor, this means giving execution to `/bin/sh`, which renders the execution restriction quite useless.
Using an array with `proc_open` reduces this, and paved the way for file streaming instead of temporary file.
Signed-off-by: Glandos <bugs-github@antipoul.fr>
Diffstat (limited to 'lib/private/Log')
0 files changed, 0 insertions, 0 deletions