Commit Graph

3308 Commits

Author SHA1 Message Date
BLINDAUER Emmanuel
4ff49d0ae3
Move some definitions, and small fixes 2018-08-02 09:02:07 +09:00
BLINDAUER Emmanuel
0041228b72
More g_* functions usage
Follow coding standard
2018-08-02 09:02:07 +09:00
BLINDAUER Emmanuel
3ef2e5f7ff
don't forget a free
use g_*
2018-08-02 09:02:07 +09:00
BLINDAUER Emmanuel
c61ea8df9e
Extract the exact ip from the client_ip 2018-08-02 09:02:07 +09:00
Blindauer Emmanuel
8fc741ea45
Add support for FreeBSD 2018-08-02 09:02:07 +09:00
BLINDAUER Emmanuel
7d8f7c14b5
Add the loginuid pam module, as we are starting a session.
So /proc/<uid>/loginuid will be filled by the uid of the user.
This will fix entries in 'last' with "gone - no logout" instead of
'still logged in'
2018-08-02 09:02:07 +09:00
Koichiro IWAO
8493e08667
cosmetic changes 2018-08-02 09:02:07 +09:00
Koichiro IWAO
844799049e
Include sys/time.h to use gettimeofday() 2018-08-02 09:02:07 +09:00
BLINDAUER Emmanuel
8085d898b0
Remove utmp.{c,h} 2018-08-02 09:02:07 +09:00
BLINDAUER Emmanuel
016037a0be
Add GNU_SOURCE to configure.ac: it allow usage f more GNU functions,
like updwtmpx
2018-08-02 09:02:07 +09:00
BLINDAUER Emmanuel
38786d46a9
WIP utmp/wtmp
- renamed the two files, including the header was conflicting with official headers
- configure look for utmp/utmpx headers, wo we know which struct to use
- reworked the usage for linux, works mostly (last still showing 'gone' for loggued users)
2018-08-02 09:02:07 +09:00
Koichiro IWAO
ae31066bcd
os_calls.h needs to be included to use g_snprintf() 2018-08-02 09:02:07 +09:00
Koichiro IWAO
db86911365
don't forget include utmp.h 2018-08-02 09:02:07 +09:00
Koichiro IWAO
477852a1eb
sesman: add utmp files to makefile 2018-08-02 09:02:07 +09:00
Koichiro IWAO
42c0ff4d3d
remove trailing space 2018-08-02 09:02:06 +09:00
BLINDAUER Emmanuel
9d6537ae2a
Initial support for utmp/wtmp on linux 2018-08-02 09:02:03 +09:00
metalefty
a9e2dcc99f
Merge pull request #1160 from metalefty/prepare-release
Prepare release
2018-06-29 16:58:51 +09:00
Koichiro IWAO
52fd17af0f
Update v0.9.7 release date 2018-06-29 00:37:06 +09:00
Koichiro IWAO
2d3170c007
Bump version to v0.9.7 2018-06-29 00:04:25 +09:00
Koichiro IWAO
860d01cf16
Update NEWS for v0.9.7 2018-06-29 00:04:14 +09:00
metalefty
cb06a28180
Merge pull request #1156 from metalefty/configure_echo
xrdp: print configure options to --version more pretty
2018-06-27 15:27:11 +09:00
Koichiro IWAO
c0c7c3f106
xrdp: unify inconsistent mixed use of
* configure params
* configure options
* configure string
2018-06-27 09:00:55 +09:00
Koichiro IWAO
be05afb30b
xrdp: print configure options to --version more pretty 2018-06-27 09:00:52 +09:00
metalefty
e7c0b11336
Merge pull request #1153 from metalefty/rc-script
FreeBSD: separate rc script into xrdp and xrdp-sesman
2018-06-21 09:24:54 +09:00
metalefty
dbee05d9ed
Merge pull request #1147 from metalefty/defaultwm-fullpath
Accept full path for DefaultWindowManager
2018-06-19 13:06:04 +09:00
Koichiro IWAO
eda1842825
sesman: add comments, no logic change 2018-06-19 12:57:30 +09:00
Koichiro IWAO
6e16b38ecc
sesman: fix potential buffer over flow 2018-06-16 16:44:37 +09:00
Koichiro IWAO
9192e95c96
sesman: fix logging after default_wm change 2018-06-16 16:44:37 +09:00
Koichiro IWAO
6fb18cd5fa
docs: document configurable reconnect script path 2018-06-16 16:44:37 +09:00
Koichiro IWAO
a39b413746
sesman: make the path of reconnect script configurable 2018-06-16 16:44:37 +09:00
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
2018-06-16 16:44:37 +09:00
Idan Freiberg
036c292120
Merge pull request #1146 from metalefty/sesman-leak
sesman: fix leak in struct config_sesman
2018-06-14 12:43:02 +03:00
metalefty
f83d967f46
Merge pull request #1120 from matt335672/set-env-on-reconnect
Copy the PAM session environment for the reconnect script
2018-06-14 11:04:43 +09:00
Koichiro IWAO
037d4eeece
sesman: fix leak in struct config_sesman 2018-06-13 17:20:03 +09:00
metalefty
91c5ee4475
Merge pull request #1142 from metalefty/dont-spit-on-the-console-sesman
Dont spit on the console (sesman)
2018-06-11 11:56:40 +09:00
Koichiro IWAO
2262f1361f
sesman: close stdout/stderr earlier
not to spit on the console
2018-06-05 00:19:36 +09:00
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
2018-06-05 00:19:36 +09:00
Koichiro IWAO
19fa26a27e
sesman: don't print config in reader function
reader function should just read. Add config_dump function to print read
config.
2018-06-05 00:19:35 +09:00
Koichiro IWAO
de33a7832e
sesman: s/XOrg/Xorg/g, no logic change
X.Org is usually spelled X.Org or Xorg.
2018-06-05 00:19:35 +09:00
Koichiro IWAO
e4857b13fa
sesman: config_read_logging function no longer exists 2018-06-05 00:19:33 +09:00
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)
2018-05-31 10:54:38 +01:00
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/
2018-05-30 01:27:23 +09:00
jsorg71
57015aa088
Merge pull request #1132 from daixj-shterm/devel
fix issue #1112: set SSL object's read_ahead flag to be 0
2018-05-27 01:09:14 -07:00
Jay Sorg
f6d3fd46b6 don't remove configure_params.h on make clean, only make distclean 2018-05-27 01:05:08 -07:00
Jay Sorg
04a5a0582e distclean remove configure_params.h 2018-05-25 22:17:31 -07:00
Jay Sorg
349616a35d add ipv6only to configure echo and add configure parameter to xrdp -h output 2018-05-25 22:17:31 -07:00
daixj
88b3c06311 fix issue #1112: set SSL object's read_ahead flag to be 0 2018-05-21 11:08:41 +08:00
metalefty
a1576ccbf7
Merge pull request #1126 from metalefty/strict-locations
configure: set default value for enable_strict_locations
2018-05-12 12:28:57 +09:00
Koichiro IWAO
9d8816b41b
configure: set default value for enable_strict_locations
This change prints yes or no to configure summary introduced in #1118.
2018-05-10 18:28:34 +09:00
Jay Sorg
0f89820351 echo configure summary 2018-05-02 15:33:01 -07:00