Timothy Pearson
315b8914c8
Second batch of initial commits:
...
* Add server/group pamming
* Partially fix immediate exit after login
Still will not compile due to libraptorsmiface being too new
6 years ago
Ben Cohen
3b5b7a5935
UDS file deleted after first connection
...
If you run xrdp with a Unix Domain Socket (UDS) for the port specified in
/etc/xrdp/xrdp.ini then the first connection succeeds but subsequent
connections fail. In fact the UDS is deleted from the filesystem as soon
as the first connection is established.
Test case:
1. Edit /etc/xrdp/xrdp.ini to set "port=/var/run/xrdp-local.socket".
2. Restart xrdp.
3. Run the following. When rdesktop starts up and the logon dialog is
displayed, press "Cancel".
sudo socat TCP-LISTEN:12345 UNIX-CONNECT:/var/run/xrdp-local.socket &
rdesktop localhost:12345
4. Run the following:
sudo socat TCP-LISTEN:12346 UNIX-CONNECT:/var/run/xrdp-local.socket &
rdesktop localhost:12346
Expected behaviour: rdesktop starts up and displays the logon dialog.
Observed behaviour: rdesktop exits with "ERROR: Connection closed" and
socat exits with "No such file or directory.
This is because in the child process after forking, xrdp_listen_fork()
calls trans_delete() which deletes the UDS. Simply commenting out the
g_file_delete() and g_free() fixes this, but that isn't a proper solution
because trans_delete() is called from elsewhere where the UDS might no
longer be wanted.
Fix by adding a function trans_delete_from_child() that frees and clears
listen_filename before calling trans_delete(), and call the new function
from xrdp_listen_fork().
(Workaround: set "fork=false" in /etc/xrdp/xrdp.ini, because
trans_delete() is then not called.)
7 years ago
Jay Sorg
c6c513b23c
use g_memcpy, braces
7 years ago
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
Pavel Roskin
6ed4c969f4
Eliminate APP_CC and DEFAULT_CC
8 years ago
Pavel Roskin
b2d3dcf169
Include config_ac.h from all source files
8 years ago
Koichiro IWAO
e94ab10e14
TLS: new method to specify SSL/TLS version
...
SSL/TLS protocols only listed in ssl_protocols should be used.
The name "ssl_protocols" comes from nginx.
Resolves #428 .
8 years ago
Koichiro IWAO
40e8194122
TLS: log TLS version and cipher
8 years ago
Alex Illsley
47124df4ed
new options for xrdp.ini disableSSlv3=yes and tls_ciphers=HIGH and code to implement
8 years ago
Pavel Roskin
0c72ee2371
Use char* for TLS send and receive
...
This is consistent with ssl_tls_read() and ssl_tls_write(). C++ warnings
are fixed without adding any casts.
8 years ago
Jay Sorg
fac0907a3c
trans: set non blocking socket after accept
9 years ago
Jay Sorg
0655272b9c
common: call recv/send before can_recv/can_send
9 years ago
Jay Sorg
2893fefc91
common: check for term in force send and recv
9 years ago
Jay Sorg
4f128c530c
no logic change, remove trailing space
9 years ago
Jay Sorg
e1c7aa377f
common: fix possible deadlock in trans
9 years ago
Jay Sorg
fd793bd213
rename g_tcp_can_recv to g_sck_can_recv
9 years ago
Jay Sorg
6384bae1e7
common: changes to trans for timeout
9 years ago
Jay Sorg
6c23b85593
add timeout to trans_get_wait_objs_rw
9 years ago
Jay Sorg
136e072513
fix problem caused by b56aa98
for tls connections
9 years ago
Jay Sorg
b56aa9832e
work on main loop changes
10 years ago
Jay Sorg
cc0406dddf
common: move tls calls to ssl_calls
10 years ago
Jay Sorg
5a8bf87c7f
common: tls, fix for pending reads
10 years ago
speidy
4015f526db
work on tls mode
10 years ago
Laxmikant Rashinkar
56e43c4a38
Merge branch 'devel' of github.com:NeutrinoLabs/xrdp into devel
10 years ago
Laxmikant Rashinkar
27055d5762
coverity: improper use of negative value
10 years ago
speidy
0f9bd232d9
common: indent fix
10 years ago
speidy
c612683119
common: trans indentation fix
10 years ago
Idan Freiberg
df87033489
trans: work on TLS
10 years ago
Idan Freiberg
afdf638c7b
libxrdp, common: work on TLS mode
10 years ago
Idan Freiberg
f0b6c6b1d1
libxrdp: started adding TLS support
10 years ago
Jay Sorg
05a281a3f8
common: trans UDS rights change
11 years ago
Jay Sorg
374633e63f
common: no logic change, update comments
11 years ago
Jay Sorg
f6fb5a32ed
common: added some trans options used in fast path
11 years ago
Jay Sorg
3c218ad3f2
common: try to send data in trans_write_copy
11 years ago
Jay Sorg
25369460a1
log client ip with pid, etc
11 years ago
Jay Sorg
fc31ae1f48
trans: reset p when adding to trans list
11 years ago
Jay Sorg
3b743f64eb
chansrv: deadlock, add trans copy func
11 years ago
Jay Sorg
dfd78c722b
chansrv: fix for deadlock
11 years ago
Jay Sorg
39ed446e15
VUL: fix some possible buffer overruns
11 years ago
Jay Sorg
e602a28d5c
common: transport aware when app is terminating
11 years ago
Jay Sorg
c6fa03102f
copyright year update
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
norrarvid
a45f993bfe
added comments, added define, removed unused inparameter
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
368db23061
fix for 100% cpu when socket error
14 years ago
Jay Sorg
1e8b5ea2cd
bind to specific address
14 years ago
jsorg71
27e097663f
improve trans
15 years ago
jsorg71
2a7c40dad8
add unix socket to trans
15 years ago
jsorg71
6c5f82fd04
update copyright year
16 years ago