diff options
author | Leah Rowe <leah@libreboot.org> | 2023-06-01 13:35:34 +0100 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2023-06-01 13:35:34 +0100 |
commit | 69fa333e25c070689b707e261b31b08be82d9fc4 (patch) | |
tree | 21a981e6dea9bcd4d0f896eb348e2f76dbb4a989 /resources/coreboot/x200_8mb/board.cfg | |
parent | adf3aece6faa134379bde6f72ae0521b7012f707 (diff) |
util/nvmutil: harden pledge/unveil calls (OpenBSD)
*Open* files at the start, then unveil. The same overall
behaviour is observed. In the case that invalid arguments
are given, simply opening a file does not cause much
performance impact (if any).
Restrict operations as early as possible in code.
Bonus:
writeGbeFile also hardened; if flags is O_RDONLY, it aborts.
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'resources/coreboot/x200_8mb/board.cfg')
0 files changed, 0 insertions, 0 deletions