mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-20 21:33:27 -07:00
Restrict QLocalServer access
The default is world access which means even even unprivileged local accounts can connect to it too.
This commit is contained in:
parent
31a6ad1eb6
commit
bad60058df
1 changed files with 1 additions and 0 deletions
|
@ -101,6 +101,7 @@ QtLocalPeer::QtLocalPeer(QObject* parent, const QString &appId)
|
|||
#endif
|
||||
|
||||
server = new QLocalServer(this);
|
||||
server->setSocketOptions(QLocalServer::UserAccessOption);
|
||||
QString lockName = QDir(QDir::tempPath()).absolutePath()
|
||||
+ QLatin1Char('/') + socketName
|
||||
+ QLatin1String("-lockfile");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue