Jay Sorg
26507644e3
vsock, move some defines
7 years ago
Justin Terry (VM)
50bd624cc4
Implements XRDP over vsock
...
1. Implements the ability to use AV_VSOCK for the transport rather than TCP.
2. Updates the ini file to be able to conditionally turn this feature on.
7 years ago
Ben Cohen
8b4d057af2
Allow UDS connection from non-root users
...
If you run xrdp with a Unix Domain Socket (UDS) for the port specified in
/etc/xrdp/xrdp.ini then only root can connect to it.
Test case:
1. Edit /etc/xrdp/xrdp.ini to set "port=/var/run/xrdp-local.socket".
2. Restart xrdp.
3. Run the following, as a non-root user.
socat TCP-LISTEN:12345 UNIX-CONNECT:/var/run/xrdp-local.socket &
rdesktop localhost:12345
Expected behaviour: rdesktop starts up and displays the logon dialog.
Observed behaviour: rdesktop exits with "ERROR: Connection closed" and
socat exits with "Permission denied". (But it suceeds if root runs
socat.)
UDS files are created by trans_listen_address() and given permissions
0660, so only root can connect to it. In this case, for the RDP client
connection, it it fine for any user to connect so it should be given
permissions 0666.
Note that this is only relevant when the port in /etc/xrdp/xrdp.ini has
been set to create a UDS instead of a TCP socket. When a TCP port is
created any user (including remote users, unless the loopback interface
is used) can connect so this is not less secure.
7 years ago
Koichiro IWAO
1d89000d90
xrdp: exit main process with failure status if listen failed (daemon mode)
7 years ago
Koichiro IWAO
252cb20365
xrdp: xrdp_listen_main_loop pass through trans_listen_address return value
7 years ago
Pavel Roskin
6ed4c969f4
Eliminate APP_CC and DEFAULT_CC
7 years ago
Pavel Roskin
b2d3dcf169
Include config_ac.h from all source files
7 years ago
Pavel Roskin
49ae93130a
Improve message about listening socket is a wrong state
8 years ago
Pavel Roskin
be1d034f91
Report pid and listening address/port for xrdp and xrdp-sesman
...
For xrdp-sesman, don't report that the daemon is listening to a port if
it fails to attach to that port. Don't use LOG_LEVEL_ALWAYS for startup
message, it's not a critical error.
8 years ago
Laxmikant Rashinkar
27055d5762
coverity: improper use of negative value
10 years ago
Laxmikant Rashinkar
0c63a8feb3
coverity: Dereference after null check
10 years ago
Laxmikant Rashinkar
3bb31876e7
coverity: fixed resolution leak issues
10 years ago
Jay Sorg
8b1639b96b
xrdp: allow xrdp to listen in UDS
10 years ago
Jay Sorg
12cbbf74e6
xrdp:no logic change, comments and printfs
10 years ago
Jay Sorg
7176f14647
added options to set tcp send and recv buffer sizes
11 years ago
Jay Sorg
1a616a1b46
move text2bool to os_calls
11 years ago
Jay Sorg
e602a28d5c
common: transport aware when app is terminating
11 years ago
Jay Sorg
9f175d307b
no logic changes, cleanup and copyright year updates
11 years ago
ArvidNorr
975d44e99f
More logging added
12 years ago
LawrenceK
266db3150b
refactor and use test2bool instead of duplicated code testing for on,yes,true, non zero
12 years ago
Jay Sorg
d9765c0783
fix for odd error when disconecting client
12 years ago
Laxmikant Rashinkar
1123323fda
o moved from GNU General Public License to Apache License, Version 2.0
...
o applied new coding standards to all .c files
o moved some files around
12 years ago
Jay Sorg
87ab0218e2
no logic change, remove tabs
12 years ago
ArvidNorr
d2903cd1fc
Merge pull request #28 from ArvidNorr/tcp_nodelay
...
Support for TCP keepalive and TCP no_delay added
12 years ago
ArvidNorr
1011b4a256
Merge pull request #22 from ArvidNorr/moduleload
...
Moduleload
12 years ago
norrarvid
31a5dd33dd
minor layout fixes
12 years ago
Jay Sorg
a8bf71b567
xrdp: fix warnings
12 years ago
norrarvid
e5fb05e9cb
Support for TCP keepalive and TCP no_delay added
12 years ago
norrarvid
2109d7a044
merge comments defines and simplified function
12 years ago
norrarvid
a45f993bfe
added comments, added define, removed unused inparameter
12 years ago
Jay Sorg
0566da74eb
xrdp: add fork option to xrdp.ini
12 years ago
Jay Sorg
bde5dd6671
added g_close_wait_obj and size parameter to g_write_ip_address
12 years ago
Jay Sorg
d08e27e824
xrdp: fix memory leak in fork
12 years ago
Jay Sorg
c7bd96ba85
xrdp: added -f command line option to fork on connections
12 years ago
Jay Sorg
b36f7d346c
add --port command line override
13 years ago
Jay Sorg
6c9529c9b9
printf error when can't bind port
13 years ago
Jay Sorg
d3a505b78f
minor changes
13 years ago
Nicola Ruggero
4cf06dbbcb
Major code cleanup:
...
- Initialized and zeroed out local variables
- Check for some null pointers
- Fixed some typos
- Other minor changes (beautify, etc.)
14 years ago
Jay Sorg
8846b589de
use en-us keymap file if no keymap file
14 years ago
Jay Sorg
1e8b5ea2cd
bind to specific address
14 years ago
jsorg71
574355f3e3
use trans
14 years ago
jsorg71
23ffdb0c5f
autotools fix and file_loc.h simplified
15 years ago
jsorg71
859dc139f0
update copyright year
16 years ago
jsorg71
9317386e74
add pid to event names
16 years ago
jsorg71
4ebb544cd8
main loop changes, not so chatty
16 years ago
jsorg71
4df6aa909e
main loop reorganization
16 years ago
jsorg71
619b2f0c10
load port in a function and fix crash
17 years ago
jsorg71
38b789e81f
update copyright year
17 years ago
jsorg71
7ed52495d0
thread_calls
18 years ago
jsorg71
00c8e51f47
tc_ prefix for thread calls
18 years ago