Bryan Roe
d7f0424d2c
Updated crash handler on linux, so that if a core file would've been generated on crash, it will reset/restart the signal handler, so that a core file will be generated after logging the crash.
2019-08-27 15:00:18 -07:00
Bryan Roe
72e665908a
Added flag for CRASH_HANDLER=0 in case it is explicitly needed
2019-08-27 14:58:30 -07:00
Bryan Roe
31ccab899a
Added ability to get/set rlimits on non windows platforms
2019-08-27 14:05:08 -07:00
Bryan Roe
898f606062
Updated field offsets for AMTInfo
2019-08-27 12:02:30 -07:00
Bryan Roe
e384a1a680
Added startType to getService() for MacOS
2019-08-27 11:19:12 -07:00
Bryan Roe
fd7a0a0f5b
Added startType property to getService() for Linux/systemd and FreeBSD
2019-08-27 11:04:43 -07:00
Bryan Roe
c983afdd4b
Added 'startType' property for getService result on Windows and Linux (Upstart/InitV)
2019-08-27 02:38:12 -07:00
Bryan Roe
5a79e119fd
Added comment describing new coreDumpEnabled flag
2019-08-26 17:07:32 -07:00
Bryan Roe
356cadb599
Added setting for coreDumpLocation
2019-08-26 16:57:52 -07:00
Bryan Roe
fa6836d17a
Added ability to generate Dump file on crash, on Windows
2019-08-26 14:16:39 -07:00
Bryan Roe
ede1ed71d5
Added UTF8 helper method that puts the string on the stack
2019-08-26 14:15:43 -07:00
Bryan Roe
fcea5a600a
Fixed bug where if a proxy isn't set, it could cause a segfault on FreeBSD
2019-08-24 00:45:12 -07:00
Bryan Roe
84882e0b52
Fixed the following bugs on Windows:
...
1. Normally when a process exits when a stream is paused, I delayed the exit propagation until resume was called, so data was not lost. However, if no data was read, resume may not get called, causing the descriptor to continually trigger the event loop. For example, if the user explicity killed the process, resume won't get triggered after the fact.
2. If the above descriptor continually triggers the event loop, other descriptors will not get serviced, which can cause a stall
3. The above two issues caused KVM issues on windows, where it would not clean up properly and leak handles because the exit wasn't gettign called. But at the same time there's a race condition depending on where in the event list the descriptor is, could cause future KVM sessions to stall.
2019-08-23 17:07:12 -07:00
Bryan Roe
3ef2c541f4
1. Updated failover for os.name() on linux to check DISTRIB_DESCRIPTION
...
2. Fixed substring bug, that chopped off the last character of os.name()
2019-08-23 00:02:00 -07:00
Bryan Roe
51018a2192
updated os.name() for linux, to return first result if PRETTY_NAME is not found
2019-08-22 21:21:42 -07:00
Bryan Roe
5e006bc0a9
Added work-around if linux-dbus isn't updated
2019-08-22 17:26:52 -07:00
Bryan Roe
fbd67d2c9c
1. Updated linux-dbus to support querying if a service is present
...
2. Updated toaster, so it will check if org.freedesktop.Notification is installed
2019-08-22 16:57:12 -07:00
Bryan Roe
e666a5f7b9
Fixed compiler warning
2019-08-22 16:54:04 -07:00
Bryan Roe
5e47259913
Added logic to check PATH on linux to make sure /sbin is included for current process
2019-08-22 13:40:20 -07:00
Bryan Roe
b78545514e
Added work around if zenity version check fails, which only happens on extremely old zenity when run as service
2019-08-22 10:52:21 -07:00
Bryan Roe
b0545c070d
Updated notify-send fallback, so that it will only try to su to logged in user if the current user is root.
2019-08-22 00:55:39 -07:00
Bryan Roe
a0ffbc1e90
Fixed error case for linux notifications, by checking zenity version, to do fallback for notify-send, if it exists, otherwise using zenity --info, with a faked timeout if necessary.
2019-08-22 00:36:15 -07:00
Bryan Roe
0469531f02
Added zenity.version
2019-08-21 22:50:53 -07:00
Bryan Roe
994aaaf30d
1. Fixed timeout for KDE dialogs
...
2. Updated to support timeout on older zenity platforms
2019-08-21 16:55:28 -07:00
Bryan Roe
1360835f1b
1. Updated libfinder for Linux for cases when ldconfig is not on PATH
...
2. Updated websockets, so it will autofragment into 30k chunks, as a temp workaround for platforms like CentOS 5.11 until I find the underlying issue
2019-08-21 11:46:38 -07:00
Bryan Roe
dda535a817
Built OpenSSL 1.1.1c and libturbojpeg 1.4.2 on CentOS 5.11
2019-08-20 11:30:26 -07:00
Bryan Roe
c65ae059d0
Added additional build flags:
...
FSWATCH_DISABLE
LEGACY_LD
to allow building on CentOS 5.11
2019-08-20 11:29:36 -07:00
Bryan Roe
8292a609ea
Added support for non-english username and hostname on Windows. Server modifications still needed for hostname display.
2019-08-19 13:53:37 -07:00
Bryan Roe
07cfa46500
Fixed bug where VkKeyScan wasnt properly masking the results
2019-08-15 23:52:27 -07:00
Bryan Roe
afa2ad1723
Updated behavior so VkKeyScan codes outside of the range 0-255 are ignored, fixing a crash in powershell
2019-08-15 13:35:44 -07:00
Bryan Roe
e3ec71f5e8
Fixed compiler warning
2019-08-14 14:52:39 -07:00
Bryan Roe
6f8e813024
Modifed win-terminal, so it throws an exception if concurrent sessions are attempted. (Not supported, so throwing an exception allows us to propagate an error)
2019-08-13 22:34:48 -07:00
Bryan Roe
e87d1d5db1
Fixed compiler warnings
2019-08-13 22:17:21 -07:00
Bryan Roe
0d0b4aa1cf
Added handler, so that if KVM Child Process exits, a message will be dispatched upstream
2019-08-12 16:00:50 -07:00
Bryan Roe
bc2ef6a3f4
Added support for fetching system proxy settings from gnome
2019-08-12 11:27:15 -07:00
Bryan Roe
7fa076a0cb
Changed property definition of wget and process.arch to be getters, so that the wget module won't be cached at startup.
2019-08-10 00:25:50 -07:00
Bryan Roe
a0e53bee0b
Compiled OpenSSL 1.1.1c for Linux with Ubuntu 10.04 LTS
2019-08-09 18:21:45 -07:00
Bryan Roe
2f439ac716
1. Added comments to agentcore.c
...
2. Updated user-sessions to use getent passwd instead of /etc/passwd
3. Added user-sessions.getHomeFolder() for linux
4. Added gnome helper to fetch proxy settings from gnome
2019-08-09 18:20:40 -07:00
Bryan Roe
b3accf17c1
Fixed typo, causing bug where service.conf wasn't committed when systemd tried to enable the service, resulting in the service not being configured to AUTO_START, when AUTO_START is specified.
MeshCentral_v0.3.9-o
2019-08-09 01:22:37 -07:00
Bryan Roe
9ae4eef5b7
1. Updated win-registry to be able to read REG_EXPAND_SZ types
...
2. Updated service-manager to support UTF8 on Windows
2019-08-08 17:32:58 -07:00
Bryan Roe
b77a2f9687
Updated to support UTF8 encoded argv parameters on windows
2019-08-08 16:54:22 -07:00
Bryan Roe
b34eee2dca
1. Added 'getUsername' for windows
...
2. Added UTF8/Wide conversions for _GenericMarshal
3. Added UTF8 support for win-registry and process-manager
2019-08-08 15:37:17 -07:00
Bryan Roe
10332b3775
Updated user consent dialog box on windows to popup as a foreground window
2019-08-07 17:21:43 -07:00
Bryan Roe
7e5ddc6767
Updated error reporting for service.restart() on windows
MeshCentral_v0.3.9-k
2019-08-07 16:26:08 -07:00
Bryan Roe
66273f8950
1. Updated waitExit() for windows to support a timeout
...
2. Updated ProcessPipe for Windows, to disable inheritance on detach
3. Updated service-manager to support restart on self for windows
2019-08-07 15:23:13 -07:00
Bryan Roe
a89a3204c1
1. Added ability to query if Select was interrupted with APC
...
2. Updated So that before readableStream and 'exit' are dispatched, APC's are unrolled if 'select' was interrupted, preventing stack corruption caused by trying to make a re-entrant winsock call, which is not supported by winsock.
2019-08-07 11:32:33 -07:00
Bryan Roe
d5962cd1b2
Modified service.stop() on Windows to use a promise, so you can verify the run state
2019-08-06 18:14:39 -07:00
Bryan Roe
09590fa779
Updated Release builds to enable Deadlock detection
2019-08-05 13:37:43 -07:00
Bryan Roe
19366a1ee1
Applied same stderr fix to QFE
2019-08-05 11:15:49 -07:00
Bryan Roe
c0fcf75f58
Fixed bug, where stderr was not subscribed, causing the stream to pause if stderr is written to, which will happen on Win Server when fetching AV state. If stream is paused, the waitExit() line will hang
2019-08-05 11:12:00 -07:00