summaryrefslogtreecommitdiffstats
path: root/sesman
Commit message (Collapse)AuthorAgeFilesLines
...
| * Use const unsigned for hex arraysPavel Roskin2016-07-082-3/+3
| | | | | | Some constants are too big for the signed type.
| * Fix warnings detected by -Wwrite-stringsPavel Roskin2016-07-0810-32/+35
| |
| * Make program_name constant, don't duplicate or free itPavel Roskin2016-07-082-2/+2
| |
| * Remove commented out config_read_logging(), the code is long deadPavel Roskin2016-07-081-55/+0
| |
| * Remove unused string support in scp_session_set_addr()Pavel Roskin2016-07-085-44/+6
| | | | | | | | | | | | | | | | Using the same argument for binary and text data is not a good idea. If string support is ever needed, it should be a separate function. Remove SCP_ADDRESS_TYPE_IPV4_BIN and SCP_ADDRESS_TYPE_IPV6_BIN, use SCP_ADDRESS_TYPE_IPV4 and SCP_ADDRESS_TYPE_IPV6, which simplifies the code.
| * Downgrade "libscp initialized" to LOG_LEVEL_DEBUG, remove line numberPavel Roskin2016-07-081-1/+1
| | | | | | | | It's a bad style to start the log with a cryptic warning.
| * Fix scp_init() invocation, it takes no argumentsPavel Roskin2016-07-082-2/+2
| |
| * Fix format warnings in log_message() callsPavel Roskin2016-06-213-4/+4
| |
| * Report pid and listening address/port for xrdp and xrdp-sesmanPavel Roskin2016-06-211-5/+4
| | | | | | | | | | | | 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.
| * Rename SESMAN_CFG_X11DISPLAYOFFSET to SESMAN_CFG_SESS_X11DISPLAYOFFSETPavel Roskin2016-06-212-2/+2
| | | | | | | | | | Move it to other session options in config.h. X11DisplayOffset is part of the [Sessions] section.
| * Fix incorrect use of "it's" and "its", adjust wordingPavel Roskin2016-06-211-1/+1
| |
* | Merge pull request #388 from metalefty/freebsd/fusejsorg712016-08-051-1/+1
|\ \ | | | | | | sesman: Add /sbin to PATH for FreeBSD
| * | sesman: Add /sbin to PATH for FreeBSDKoichiro IWAO2016-06-201-1/+1
| |/ | | | | | | | | | | | | | | | | | | | | to enable to execute FUSE mount program. The place of FUSE mount programs are: FreeBSD : /sbin/mount_fusefs GNU/Linux : /bin/fusermount See also #387.
* | Merge branch 'devel' of https://github.com/neutrinolabs/xrdp into develspeidy2016-07-265-35/+667
|\ \
| * | chansrv: avoid chansrv SEGV when xinode is NULLKentaro Hayashi2016-07-212-1/+10
| | | | | | | | | | | | | | | | | | | | | When xfuse_create_file_in_xrdp_fs is failed, it returns NULL. Without this fix, xinode->size causes SEGV, so implementation is changed to return -1 and check the return value in caller.
| * | chansrv: added mp3 compression from SpeidyJay Sorg2016-07-133-34/+657
| |/
* | sesman: env_set_user, fix potential bof issuesspeidy2016-07-223-29/+71
|/
* Remove unused variable in devredir_cvt_from_unicode_len()Pavel Roskin2016-05-061-2/+1
|
* Remove unused variables from dev_redir_proc_query_dir_response()Pavel Roskin2016-05-061-15/+5
|
* Check XGetWindowProperty() return code in clipboard_event_property_notify()Pavel Roskin2016-05-061-0/+10
|
* Use better symbols to protect include filesPavel Roskin2016-05-052-4/+4
|
* Typo fixesPavel Roskin2016-05-045-5/+5
|
* Merge pull request #360 from proski/format-warningsjsorg712016-05-0311-55/+59
|\ | | | | Warning fixes
| * Fix warnings for unused variables read from byte streamsPavel Roskin2016-04-233-8/+6
| |
| * Fix recently introduced warnings in session.cPavel Roskin2016-04-211-10/+10
| | | | | | Use of tabs is fixed as well.
| * Fix warnings about unused variables and functionsPavel Roskin2016-04-214-2/+8
| |
| * Fix more format warningsPavel Roskin2016-04-214-35/+35
| |
* | Add unnamed semaphore support on Mac OSPavel Roskin2016-04-231-11/+11
|/ | | | | | | sem_init() is not functional on Mac OS. Use the Grand Central Dispatch implementation. Make libscp_lock.c use semaphores through the thread_calls wrapper.
* Merge pull request #359 from metalefty/sesman/configurable-xserver-pathjsorg712016-04-183-11/+25
|\ | | | | sesman: do not hardcode Xorg/X11rdp/Xvnc executables
| * sesman: do not hardcode Xorg/X11rdp/Xvnc executablesKoichiro IWAO2016-04-072-7/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In RHEL and its clones, /usr/bin/Xorg is set suid-root. To execute Xorg with user privileges, /etc/pam.d/xserver needs be edited [1], or suid bit of Xorg binary needs to be dropped. In order to keep Xorg and /etc/pam.d/xserver untouched, preparing non-suid version of Xorg as /usr/bin/Xorg.non-suid for example is the simplest solution. However, Xorg.non-suid cannot be executed since it is hardcoded to execute Xorg in sesman. This change makes more flexible to execute Xorg with non-standard name or not in PATH environment variable. [1] https://www.centos.org/forums/viewtopic.php?t=21185
| * sesman: brief xorg_params, no logic changeKoichiro IWAO2016-04-071-4/+2
| |
* | Do not attempt to trap SIGKILL part 2Koichiro IWAO2016-04-111-6/+0
|/ | | | it doesn't work on any OS.
* Fix compile error "format not a string literal and no format arguments ↵NerdKnight2016-03-281-1/+1
| | | | [-Werror=format-security]"
* fix a warningJay Sorg2016-03-161-1/+1
|
* fix warnings, move some calls to os_callsJay Sorg2016-03-162-10/+12
|
* Fix all format warnings and some unused variable warningsJay Sorg2016-03-143-4/+3
|
* Don't attempt to intercept SIGKILL, it doesn't work on any OSJay Sorg2016-03-143-3/+0
|
* Merge pull request #333 from proski/key-installItamar Reis Peixoto2016-02-241-9/+4
|\ | | | | Key install (generate rsakeys.ini during make install)
| * Use SCRIPTS for executable scripts, don't use "chmod 755"Pavel Roskin2016-02-221-5/+3
| |
| * Use "dist_" prefix to minimize use of EXTRA_DISTPavel Roskin2016-02-221-4/+1
| | | | | | "dist" is ignored in presense of "noinst", so keep noinst_man_MANS.
* | Merge pull request #326 from metalefty/pulseaudio-6.0jsorg712016-02-232-1/+10
|\ \ | |/ |/| pulse: fix build pulseaudio 6.0 or higher
| * pulse: fix build pulseaudio 6.0 or higherKoichiro IWAO2016-02-182-1/+10
| | | | | | | | | | | | | | | | | | | | | | | | Discovered in #321. The number of argument for pa_rtpoll_run have been changed since 6.0. >=6.0 : int pa_rtpoll_run(pa_rtpoll *f); <6.0 : int pa_rtpoll_run(pa_rtpoll *f, bool wait); Check pulseaudio version by PA_CHECK_VERSION macro introduced since pulseaudio 0.9.16. In case PA_CHECK_VERSION is not defined, pa_rtpoll_run takes 2 arguments.
* | Move headers from EXTRA_DIST to sources, sort alphabeticallyPavel Roskin2016-02-214-38/+58
|/ | | | There should be no functional difference.
* xrdp-sesadmin: show help and exit if mandatory arguments are not givenPavel Roskin2016-02-141-2/+9
| | | | Don't mark password as mandatory, it's asked if not provided on the command line.
* Fix typosPavel Roskin2016-02-1323-43/+43
|
* Fix connection month display in xrdp-sesadminPavel Roskin2016-02-131-1/+1
| | | | | | | tm_mon in `struct tm` uses 0 for January. `struct session_data` and `struct SCP_DISCONNECTED_SESSION` don't specify how dates are stored. But considering the code in sestest and sesadmin, all date components are stored as displayed.
* Use lowercase program names for syslogPavel Roskin2016-02-133-3/+3
| | | Other programs typically use the same case as their execulables.
* Stop redefining libdir, use moduledir for ${libdir}/xrdpPavel Roskin2016-02-121-1/+1
| | | | | | | libdir is for shared and static libraries. Some xrdp libraries are loaded dynamically from a non-standard directory, so they are used like modules. Having separate libdir and moduledir would eventually allow to separate dynamically loaded modules from shared libraries.
* Don't ignore files known to gitPavel Roskin2016-02-122-0/+2
| | | | | | | | | | | | | That can cause unexpected behavior, especially with third party tools. The ignored files will be lost if the source tree is re-imported to another git repository, unless special care is taken. Whitelist all non-generated makefiles. To whitelist instfiles/pam.d/xrdp-sesman, add path to all generated executables listed in the top-level .gitignore, sort .gitignore alphabetically. Add mkinstalldir, it's used by Automake on some systems.
* Add missing spaces in the strings that are split for line wrappingPavel Roskin2016-02-123-3/+3
|