Commit Graph

3290 Commits (2d3170c00770a43dc020943d972711b3e63babaa)
 

Author SHA1 Message Date
Koichiro IWAO 2d3170c007
Bump version to v0.9.7 7 years ago
Koichiro IWAO 860d01cf16
Update NEWS for v0.9.7 7 years ago
metalefty cb06a28180
Merge pull request #1156 from metalefty/configure_echo
xrdp: print configure options to --version more pretty
7 years ago
Koichiro IWAO c0c7c3f106
xrdp: unify inconsistent mixed use of
* configure params
* configure options
* configure string
7 years ago
Koichiro IWAO be05afb30b
xrdp: print configure options to --version more pretty 7 years ago
metalefty e7c0b11336
Merge pull request #1153 from metalefty/rc-script
FreeBSD: separate rc script into xrdp and xrdp-sesman
7 years ago
metalefty dbee05d9ed
Merge pull request #1147 from metalefty/defaultwm-fullpath
Accept full path for DefaultWindowManager
7 years ago
Koichiro IWAO eda1842825
sesman: add comments, no logic change 7 years ago
Koichiro IWAO 6e16b38ecc
sesman: fix potential buffer over flow 7 years ago
Koichiro IWAO 9192e95c96
sesman: fix logging after default_wm change 7 years ago
Koichiro IWAO 6fb18cd5fa
docs: document configurable reconnect script path 7 years ago
Koichiro IWAO a39b413746
sesman: make the path of reconnect script configurable 7 years ago
Koichiro IWAO e82f212f34
sesman: accept full path for DefaultWindowManager
Solves: #1143

Also, this idea is inspired by Fedora's patch [1]. Some distro wants to
put all scripts in libexec directory due to SELinux. This enables
distros to put such scripts anywhere.

[1] https://src.fedoraproject.org/cgit/rpms/xrdp.git/tree/xrdp-0.9.6-scripts-libexec.patch?id=02f845c1b8cea781313cf3e9efcd6d7d50341824
7 years ago
Idan Freiberg 036c292120
Merge pull request #1146 from metalefty/sesman-leak
sesman: fix leak in struct config_sesman
7 years ago
metalefty f83d967f46
Merge pull request #1120 from matt335672/set-env-on-reconnect
Copy the PAM session environment for the reconnect script
7 years ago
Koichiro IWAO 037d4eeece
sesman: fix leak in struct config_sesman 7 years ago
metalefty 91c5ee4475
Merge pull request #1142 from metalefty/dont-spit-on-the-console-sesman
Dont spit on the console (sesman)
7 years ago
Koichiro IWAO 2262f1361f
sesman: close stdout/stderr earlier
not to spit on the console
7 years ago
Koichiro IWAO 6ae3052a0f
sesman: don't spit on the console when starting
As the Debian patch[1] expresses, spitting messages on the console when
a process starts in background is a bad idea. Everything should be
written to log file and daemon should start silently. This is a first
step to shut up daemons.

Got some idea from Debian Remote Maintainers and Thorsten Glaser,
thanks!

[1] 2751ad4d62/debian/patches/shutup-daemon.diff
7 years ago
Koichiro IWAO 19fa26a27e
sesman: don't print config in reader function
reader function should just read. Add config_dump function to print read
config.
7 years ago
Koichiro IWAO de33a7832e
sesman: s/XOrg/Xorg/g, no logic change
X.Org is usually spelled X.Org or Xorg.
7 years ago
Koichiro IWAO e4857b13fa
sesman: config_read_logging function no longer exists 7 years ago
matt335672 cde5b09129 Copy the PAM session environment for the reconnect script
This provides access to variables set at login which may be
required by the script (e.g. KRB5CCNAME)
7 years ago
Koichiro IWAO 72b5088449
FreeBSD: separate rc script into xrdp and xrdp-sesman
to improve fscd(8)[1] compatibility. fscd(8) monitors daemons and
restarts after daemons crashed. We usually want to start, stop, and
restart xrdp and xrdp-sesman separately because restarting xrdp-sesman
means losing existing sessions. This change will enable fscd(8) not to
restart xrdp-sesman together when only xrdp daemon crashes.

Now rc.d/xrdp mainly has following commands:

* start      - starts xrdp
* stop       - stops xrdp
* restart    - stops xrdp, then starts it again
* allstart   - starts both xrdp and xrdp-sesman
* allstop    - stops both
* allrestart - stops both, then start them again
* status     - returns status of xrdp

rc.d/xrdp-sesman doesn't have all- prefixed commands.

[1] https://www.freshports.org/sysutils/fsc/
7 years ago
jsorg71 57015aa088
Merge pull request #1132 from daixj-shterm/devel
fix issue #1112: set SSL object's read_ahead flag to be 0
7 years ago
Jay Sorg f6d3fd46b6 don't remove configure_params.h on make clean, only make distclean 7 years ago
Jay Sorg 04a5a0582e distclean remove configure_params.h 7 years ago
Jay Sorg 349616a35d add ipv6only to configure echo and add configure parameter to xrdp -h output 7 years ago
daixj 88b3c06311 fix issue #1112: set SSL object's read_ahead flag to be 0 7 years ago
metalefty a1576ccbf7
Merge pull request #1126 from metalefty/strict-locations
configure: set default value for enable_strict_locations
7 years ago
Koichiro IWAO 9d8816b41b
configure: set default value for enable_strict_locations
This change prints yes or no to configure summary introduced in #1118.
7 years ago
Jay Sorg 0f89820351 echo configure summary 7 years ago
metalefty 39b664fc27
Merge pull request #1108 from aiden0z/devel
sesrun support start other session based on session_code argument
7 years ago
Aiden Luo 7864f9d692 sesrun support start other session based on session_code argument 7 years ago
metalefty 711750f798
Merge pull request #1107 from metalefty/sesman-xorg-wrapper
sesman: Update Xorg help comment for Arch Linux
7 years ago
metalefty b522fb4a2f
Merge pull request #1104 from metalefty/remove-x11rdp
Remove x11rdp
7 years ago
Koichiro IWAO 819c506d26
sesman: Update Xorg help comment for Arch Linux
As reported in #1106, Arch Linux looks to me like using Xorg wrapper now.
7 years ago
metalefty 6148f0e491
Merge pull request #1103 from metalefty/docs
docs: '!' is no longer a comment out symbol
7 years ago
Koichiro IWAO eb6ba23325
Remove x11rdp from README and EXTRA_DIST 7 years ago
Koichiro IWAO 2ad5df96a3
Remove x11rdp from xrdp repository
Now x11rdp is replaced with xorgxrdp. Deprecating it.
Repository moved to https://github.com/neutrinolabs/x11rdp.
7 years ago
Koichiro IWAO d103e1d83d
docs: '!' is no longer a comment out symbol 7 years ago
metalefty f52f632e21
Merge pull request #1096 from metalefty/version_info
Show OpenSSL version to --version
7 years ago
Koichiro IWAO 2eb4be426b
xrdp: show which CLI option is unknown to xrdp 7 years ago
Koichiro IWAO b2b42d28f3
xrdp: add OpenSSL version to --version
While here, cleanup --help,  --version, and when unknown option.
7 years ago
Koichiro IWAO 48aafc1866
xrdp: xrdp should exit with error code when unknown CLI option given 7 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
Fernando Seiti Furusato 9f80fcd74e Corrected endianness detection on ppc64el.
In common/arch.h, the endianness detection considers all powerpc
architectures as big endian. Since that is not true for ppc64el, I
added a verification that checks other preprocessor macros, only for
ppc cases.

Signed-off-by: Fernando Seiti Furusato <ferseiti@gmail.com>
7 years ago
Boris Bopp 31fc125e42 Configure.ac: Add missing macos option for pam config 7 years ago
Boris Bopp e875cd2af5 instfiles: Add pam.d config for arch linux. 7 years ago
Koichiro IWAO 37d5430123
Update README a little bit 7 years ago