File: fix_perms.diff

package info (click to toggle)
xrdp 0.9.21.1-1%2Bdeb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 12,748 kB
  • sloc: ansic: 88,046; sh: 5,454; asm: 4,742; cpp: 1,307; makefile: 1,155
file content (20 lines) | stat: -rw-r--r-- 733 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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;
 }