Package: xrdp / 0.9.8-2~bpo9+1

fix_perms.diff Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
From: Thorsten Glaser <tg@mirbsd.org>
Subject: Fix permissions between xrdp and sesman.
 Attempt to fix connection problem between xrdp-sesman (running
 as root) and xrdp (running as xrdp) by creating the socket for
 the xorgxrdp server as 0660 in a sgid-xrdp directory, since we
 can’t easily chgrp here; also fix retval check for listen(2)
Forwarded: https://github.com/neutrinolabs/xorgxrdp/pull/16
 https://github.com/neutrinolabs/xrdp/pull/464
--- a/common/os_calls.c
+++ b/common/os_calls.c
@@ -127,7 +127,7 @@ g_mk_socket_path(const char *app_name)
                 return 1;
             }
         }
-        g_chmod_hex(XRDP_SOCKET_PATH, 0x1777);
+        g_chmod_hex(XRDP_SOCKET_PATH, 0x3777);
     }
     return 0;
 }