diff options
author | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2024-04-10 10:38:28 +0200 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2024-07-03 07:36:32 +0100 |
commit | d1fffbe3c808a9012a05b048560e17ce43f8ef9e (patch) | |
tree | 4aed92f329fbdedb7f30c7e07ad335d825a9cbf6 /tools/buildman/func_test.py | |
parent | 65fbdab27224ee3943a89496b21862db83c34da2 (diff) |
sandbox: use sane access rights for files
When writing an executable, allowing other users to modify it introduces
a security issue.
Generally we should avoid giving other users write access to our files by
default.
Replace chmod(777) by chmod(755) and chmod(644).
Fixes: 47f5fcfb4169 ("sandbox: Add os_jump_to_image() to run another executable")
Fixes: d9165153caea ("sandbox: add flags for open() call")
Fixes: 5c2859cdc302 ("sandbox: Allow reading/writing of RAM buffer")
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Sean Anderson <seanga2@gmail.com>
Diffstat (limited to 'tools/buildman/func_test.py')
0 files changed, 0 insertions, 0 deletions