diff options
| author | Kamil Rytarowski <krytarowski@users.noreply.github.com> | 2019-01-14 09:53:58 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2019-01-14 09:53:58 +0100 |
| commit | ecb717ca8912ded98c3c621e9aa0847245173ad4 (patch) | |
| tree | 08b44e0a03047907746bf1228f56cc74ccc46f4c /executor/executor_bsd.h | |
| parent | 95485883f6451cd21e4f7643c32fad0b66bb134d (diff) | |
executor: adapt switching to user nobody to be more portable on BSDs
NetBSD uses different uid/gid than FreeBSD/OpenBSD for the user
nobody. Instead of hardcoding the values, retrieve it from the
password entry database.
While there, switch to setuid(2) and setgid(2) calls as they are
good enough and portable. setresgid(2) and setresuid(2) aren't
available on NetBSD.
Diffstat (limited to 'executor/executor_bsd.h')
0 files changed, 0 insertions, 0 deletions
