diff --git a/src/xpra/server/proxy/proxy_instance_process.py b/src/xpra/server/proxy/proxy_instance_process.py index 72b02eda25..ee2a0ac5e9 100644 --- a/src/xpra/server/proxy/proxy_instance_process.py +++ b/src/xpra/server/proxy/proxy_instance_process.py @@ -218,7 +218,7 @@ def setproctitle(self, title): def run(self): log("ProxyProcess.run() pid=%s, uid=%s, gid=%s", os.getpid(), getuid(), getgid()) self.setproctitle("Xpra Proxy Instance for %s" % self.server_conn) - if POSIX and (os.getuid()!=self.uid or os.getgid()!=self.gid): + if POSIX and (getuid()!=self.uid or getgid()!=self.gid): #do we need a valid XDG_RUNTIME_DIR for the socket-dir? username = get_username_for_uid(self.uid) socket_dir = osexpand(self.socket_dir, username, self.uid, self.gid) diff --git a/src/xpra/server/proxy/proxy_server.py b/src/xpra/server/proxy/proxy_server.py index 546b41c1eb..f28aaebaa7 100644 --- a/src/xpra/server/proxy/proxy_server.py +++ b/src/xpra/server/proxy/proxy_server.py @@ -533,7 +533,7 @@ def get_info(self, proto, *_args): break if sessions: uid, gid = sessions[:2] - if not POSIX or (uid==os.getuid() and gid==os.getgid()): + if not POSIX or (uid==getuid() and gid==getgid()): self.reap() i = 0 for p,v in self.processes.items():