Skip to content

Commit

Permalink
Local socket: restrict permissions to the current user
Browse files Browse the repository at this point in the history
This ensures consistent permissions across platforms that support them (so
everyone but macOS).
  • Loading branch information
lmoureaux authored and jwrober committed Jan 7, 2024
1 parent b0026cf commit 664f7b2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/sernet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,7 @@ std::optional<socket_server> server_open_socket()
// Local socket mode
if (!srvarg.local_addr.isEmpty()) {
auto server = std::make_unique<QLocalServer>();
server->setSocketOptions(QLocalServer::UserAccessOption);
if (server->listen(srvarg.local_addr)) {
connections_set_close_callback(server_conn_close_callback);

Expand Down

0 comments on commit 664f7b2

Please sign in to comment.