Todd C. Miller
bfc17bc666
Updated translations from translationproject.org
2021-05-06 21:14:35 -06:00
Todd C. Miller
3018c1cd2d
Build python plugin for RHEL 6 as well.
2021-05-06 18:59:51 -06:00
Todd C. Miller
9b33594a43
Remove shell-style quotes in configure warning/error/notice messages.
...
Square bracket quotes are used, no need for shell-style double quotes.
2021-05-06 14:41:35 -06:00
Todd C. Miller
96436787a1
Summarize configure settings after all tests have run.
...
This makes it a lot easier to see what features have been enabled.
2021-05-06 13:14:58 -06:00
Todd C. Miller
d71731e50d
Remove --with-efence option, there are better options available.
2021-05-04 19:03:55 -06:00
Todd C. Miller
f2081f902b
Move misplaced changes into the 1.9.7 section where they belong.
2021-05-04 14:23:39 -06:00
Todd C. Miller
468e9c7f48
Awful hack to pass on macOS where group_source=dynamic by default.
2021-05-04 13:58:29 -06:00
Todd C. Miller
0e9a5e4f90
Updated translations from translationproject.org
2021-05-04 12:26:07 -06:00
Todd C. Miller
e6f1adcb2c
Document late stage 1.9.7 changes.
2021-05-04 12:25:38 -06:00
Todd C. Miller
9d734d57e7
sudo_sendlog: rename -m (max-time) to -s (stop-after).
2021-05-04 12:14:02 -06:00
Todd C. Miller
caf096e1a1
Update closure->elapsed_time in journal_seek().
...
Otherwise the commit point messages won't be accurate when restarting.
2021-05-04 10:45:12 -06:00
Todd C. Miller
7376fa632f
Add "-m elapsed" option to specify the max elapsed time of records to send.
...
Useful for testing the ability of the server to handle restarted log
transfers.
2021-05-04 08:22:34 -06:00
Todd C. Miller
5a39066343
Disable reading from client or relay when sending error to client.
...
We treat an error from the relay as fatal and must stop processing
data from both client and relay to make sure we don't get out of sync.
2021-05-03 19:18:10 -06:00
Todd C. Miller
c3534712de
Fix I/O log restart of locally-store logs.
...
This got broken a while ago when evlog in struct connection_closure
was changed to a pointer.
2021-05-03 16:54:25 -06:00
Todd C. Miller
b5542f8b26
Fix detection of the volatile flag when other flags are present.
...
Otherwise flags fields like "volatile,ignore-other" will be ignored
by the Debian and BSD back ends.
2021-05-03 13:51:21 -06:00
Todd C. Miller
51cbc626f8
Fix debug message when prctl(PR_SET_DUMPABLE, 0, 0, 0, 0) fails.
...
GitHub issue #101
2021-05-03 12:40:23 -06:00
Todd C. Miller
109a0331a5
Don't hard-code the TLS connect timeout, use normal connect timeout.
...
For sudo_logsrvd, this is the relay connect_timeout setting.
For sudoers, this is the log_server_timeout setting.
2021-05-03 09:01:00 -06:00
Todd C. Miller
06cb6459c1
Add missing closedir(3) in logsrvd_queue_scan().
...
Coverity CID 221591
2021-05-02 12:33:49 -06:00
Todd C. Miller
d883213f55
regen
2021-04-27 16:40:09 -06:00
Todd C. Miller
d204d41204
Mention "log_server_verify" bug fix.
2021-05-02 10:03:26 -06:00
Todd C. Miller
fda17ecfda
Rename logsrvd log dir to /var/log/sudo_logsrvd.
2021-05-02 08:28:19 -06:00
Todd C. Miller
f49930c62e
Make the failed relay retry interval configurable.
...
This is the amount of time to wait before trying to resend a
journal to the relay server after a connection error.
2021-05-02 06:19:32 -06:00
Todd C. Miller
177816b787
Send outgoing messages to the relay server on startup.
...
Also attempt to retry messages that could not be relayed periodically.
2021-05-01 16:27:21 -06:00
Todd C. Miller
9077daee93
Avoid clobbering errno in warning().
2021-05-01 11:35:19 -06:00
Todd C. Miller
bc82430a6f
Set relay name string to NULL after dropping the reference.
...
Otherwise it is possible to decrement the reference more than once.
2021-05-01 08:48:24 -06:00
Todd C. Miller
af0345e238
Fix cut & pasto that prevented the verify_server option from being set.
...
The "log_server_verify" setting passed from the policy plugin was
applied to the "keepalive" option instead of "verify_server".
From Krisztian Kovacs.
2021-04-30 11:03:23 -06:00
Todd C. Miller
01bdfd3be2
Write client and server information to debug file on SIGUSR1
...
This can be used to debug client problems such as a connection
not being closed as expected.
2021-04-29 16:20:02 -06:00
Todd C. Miller
cefa72c6a6
Document journal file directories in store_first mode.
2021-04-29 14:34:54 -06:00
Todd C. Miller
f92bb8840c
Create journal files in an incoming directory, move to outgoing when complete.
...
This will make it possible to process completed journal files
periodically if the relay server is down.
2021-04-29 14:19:08 -06:00
Todd C. Miller
5c593d5a4a
Add missing connection_close() call for relay-only connections.
...
For an immediate relay we will close the connection when the client
disconnects (or there is a timeout). However, for store-and-forward
mode the client has already disconnected at the time we are relaying.
2021-04-29 14:19:07 -06:00
Todd C. Miller
d4bdc85d74
Replace non-ascii characters in warning string.
2021-04-27 16:39:43 -06:00
Todd C. Miller
ac878d3e27
Quiet clang analyzer false positive in regress tests.
2021-04-27 15:56:24 -06:00
Todd C. Miller
84a01d3a93
Move local iolog log functions to logsrvd_local.c
2021-04-27 14:46:27 -06:00
Todd C. Miller
6d8942e82c
Better client error reporting on relay server connection error.
...
More detailed error messages may be found in the debug log.
2021-04-27 12:25:19 -06:00
Todd C. Miller
e55991f244
Update debug pid string when sudo_logsrvd becomes a daemon.
2021-04-27 08:57:11 -06:00
Todd C. Miller
f25275ad5b
Must call SSL_shutdown() before closing the underlying socket.
...
This got broken by some code rearrangement when relay mode was added.
2021-04-26 19:07:40 -06:00
Todd C. Miller
67029f3cc4
Recover if the client or relay server closes the TLS connection uncleanly.
...
The other end of the connection should perform a proper TLS shutdown
but as long as we are in the correct state there is no need to treat
this as a user-visible error.
2021-04-26 17:05:34 -06:00
Todd C. Miller
66c6edada2
Sudo 1.9.7
2021-04-26 13:12:28 -06:00
Todd C. Miller
8a65893435
Add a suppression file for the libpython leaks.
...
This is a big hammer but it seems like the best we can do for now.
Allows "make check" to succeed when address sanitizer is used.
2021-04-26 08:58:00 -06:00
Todd C. Miller
6907376ae9
When spliting EDITOR check for escaped quote characters.
...
Also add check_editor to sudoers "make check".
2021-04-25 19:12:50 -06:00
Todd C. Miller
5e5131dec3
Treat a lone backslash at the end of a string as a literal backslash.
...
GitHub issue #99
2021-04-24 14:19:46 -06:00
Todd C. Miller
d6d2e3488b
Fix typo.
2021-04-24 13:23:25 -06:00
Todd C. Miller
a85c6b41a6
Avoid a potential NULL dereference when mutating args_str.
...
Coverit CID 221401
2021-04-23 19:05:45 -06:00
Todd C. Miller
65a55497ec
Avoid calling fread() with a NUL buffer if msg_len is 0.
...
Coverity CID 221399
2021-04-23 19:01:44 -06:00
Todd C. Miller
d9f0eba1fa
Set a restrictive umask so new files are only read/write by owner.
...
Coverity CID 221402
2021-04-23 18:58:55 -06:00
Todd C. Miller
bfd5803bd2
In connection_closure_free() only close sock if it is not -1.
...
When relaying from a journal there will be no socket.
Coverity CID 221403
2021-04-23 17:02:35 -06:00
Todd C. Miller
57b8122cf3
Avoid potential NULL dereference in get_free_buf().
...
Coverity CID 221400
2021-04-23 16:56:29 -06:00
Todd C. Miller
21641a27e4
Remove some now-dead code in the error path.
...
Coverity CID 221397 and 221398
2021-04-23 16:56:23 -06:00
Todd C. Miller
761b02d34f
Use function pointers for each client message type instead of conditionals.
...
This separats out the message handler from the functions that store
or relay the message contents.
2021-04-23 16:56:21 -06:00
Todd C. Miller
64ac63918e
Add enqueue_error_message() helper function.
...
Formats and enqueues an error message and enables the write event.
2021-04-23 16:56:20 -06:00