mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:37:46 +00:00
SystemServer: Mask off the set-uid bit in SocketPermissions
This commit is contained in:
parent
c32176db27
commit
a85c61ad51
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue