lbmk/util
Leah Rowe 69fa333e25 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>
2023-06-01 13:35:34 +01:00
..
e6400-flash-unlock util/e6400-flash-unlock: clean up commented code 2023-05-29 22:01:41 +01:00
ich9utils add ich9utils back to utils 2023-04-08 18:36:50 +01:00
nvmutil util/nvmutil: harden pledge/unveil calls (OpenBSD) 2023-06-01 13:35:34 +01:00
spkmodem_recv util/*: Properly detect OpenBSD for pledge() call 2023-05-30 16:02:25 +01:00