summaryrefslogtreecommitdiff
path: root/Ports
diff options
context:
space:
mode:
authorBrian Gianforcaro <bgianf@serenityos.org>2022-03-21 00:05:42 -0700
committerAndreas Kling <kling@serenityos.org>2022-03-22 11:39:20 +0100
commit6eebd69b707049b90e301127c37cb902f755e04a (patch)
treee851ae6bfe62f3019f49f5e03b9f6773bdbdcee5 /Ports
parent74033423876fae1f26c23277d15826a9e448253a (diff)
downloadserenity-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 'Ports')
0 files changed, 0 insertions, 0 deletions