diff options
author | Andreas Kling <kling@serenityos.org> | 2021-01-23 15:36:38 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-01-23 16:45:05 +0100 |
commit | a85c61ad5101293e6fe3adc9e9659e2b8aad4edd (patch) | |
tree | 69d053e6a2abf579b202103e0073f984c293b431 /Userland | |
parent | c32176db278ccb491475840c46fbdb9fdd21f4ee (diff) | |
download | serenity-a85c61ad5101293e6fe3adc9e9659e2b8aad4edd.zip |
SystemServer: Mask off the set-uid bit in SocketPermissions
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/Services/SystemServer/Service.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Services/SystemServer/Service.cpp b/Userland/Services/SystemServer/Service.cpp index c53644a595..a24f10f87b 100644 --- a/Userland/Services/SystemServer/Service.cpp +++ b/Userland/Services/SystemServer/Service.cpp @@ -319,7 +319,7 @@ Service::Service(const Core::ConfigFile& config, const StringView& name) if (!m_socket_path.is_null() && is_enabled()) { auto socket_permissions_string = config.read_entry(name, "SocketPermissions", "0600"); - m_socket_permissions = strtol(socket_permissions_string.characters(), nullptr, 8) & 04777; + m_socket_permissions = strtol(socket_permissions_string.characters(), nullptr, 8) & 0777; setup_socket(); } } |