diff options
author | Brian Gianforcaro <bgianf@serenityos.org> | 2022-03-21 00:05:42 -0700 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-03-22 11:39:20 +0100 |
commit | 6eebd69b707049b90e301127c37cb902f755e04a (patch) | |
tree | e851ae6bfe62f3019f49f5e03b9f6773bdbdcee5 /Meta/screenshot-cdb82f6.png | |
parent | 74033423876fae1f26c23277d15826a9e448253a (diff) | |
download | serenity-6eebd69b707049b90e301127c37cb902f755e04a.zip |
LibCore: Add Core::System::drop_privileges()
In a few places we intentionally drop privileges to reduce the potential
security surface area of networked program, with the pattern of:
```
if (setgid(getgid()) || setuid(getuid()) {
return 1;
}
```
We can make this a bit nicer to use by creating a wrapper.
Diffstat (limited to 'Meta/screenshot-cdb82f6.png')
0 files changed, 0 insertions, 0 deletions