summaryrefslogtreecommitdiff
path: root/games/hack/hack.unix.c
diff options
context:
space:
mode:
authorScott Soule Cheloha <cheloha@cvs.openbsd.org>2023-06-02 17:44:30 +0000
committerScott Soule Cheloha <cheloha@cvs.openbsd.org>2023-06-02 17:44:30 +0000
commitca9e8f8792bc95cbabfdfb52aa8a659137c04727 (patch)
treec34e512f7c598feece0a1012ec9d15b53cebe2ee /games/hack/hack.unix.c
parent2b20e02e40103cf8574fff1748d8b78c7fdcab21 (diff)
pledge(2): stdio: permit restricted profil(2) for moncontrol(3)
Currently, pledged '-pg' binaries get killed in _mcleanup() when they try to disable profil(2) via moncontrol(3). Disabling profil(2) is harmless. Add profil(2) to the "stdio" pledge(2) promise and permit profil(2) calls when the scale argument is zero. Enabling profil(2) remains forbidden in pledged processes. This gets us one step closer to making '-pg' binaries compatible with pledge(2). The next step is to decide how to exfiltrate the profiling data from the process during _mcleanup(). Prompted by semarie@. Cleaned up by deraadt@. With input from deraadt@, espie@, and semarie@. "Looks good" deraadt@ pledge(2) pieces ok semarie@
Diffstat (limited to 'games/hack/hack.unix.c')
0 files changed, 0 insertions, 0 deletions