Todd C. Miller
a808dd45c2
Add config file support for logsrvd
2019-10-24 20:04:31 -06:00
Todd C. Miller
8a16e62a88
Import protobuf-c source since to avoid an external dependency.
...
The files generated with protoc-c are not standalone.
We need to include protobuf-c.c and protobuf-c.h from the protobuf-c
distribution too. Building protoc-c requires a relative recent
version of gcc which limits its portability.
2019-10-24 20:04:30 -06:00
Todd C. Miller
0d69de5b25
Move openat() emulation to lib/util and at unlinkat() emulation.
2019-10-24 20:04:30 -06:00
Todd C. Miller
4dacf81082
Refactor I/O log code so it can be shared between sudoers and logsrvd
2019-10-24 20:04:29 -06:00
Todd C. Miller
2272430716
Import proof of concept sudo log server.
2019-10-24 20:04:29 -06:00
Todd C. Miller
e80079eaa8
Set resource limits in the sudo process to unlimited.
...
We don't want sudo to be limited by the caller's resource limits.
The original resource limits are restore before session setup.
2019-10-21 11:41:48 -06:00
Todd C. Miller
d5ea5b7fbc
Add split out strtofoo tests.
2019-10-16 10:21:05 -06:00
Todd C. Miller
eb95a35edc
Add conditional for sesh path in sudo.conf manual.
2019-08-27 08:09:28 -06:00
Todd C. Miller
0bbfdc9920
Add regress tests for str2sig() and sig2str().
2019-08-19 08:37:08 -06:00
Todd C. Miller
7a7f02a7ec
Asturian translation for sudoers from translationproject.org.
2019-08-05 16:38:41 -06:00
Todd C. Miller
3e56be3564
Store signal name, not number in I/O log timing file.
...
The "SIG" prefix is not used so, e.g. SIGTERM -> "TERM".
This makes the I/O log files portable from one system to another.
Older I/O log files with signal numbers can still be replayed.
2019-08-05 16:30:58 -06:00
Todd C. Miller
71fdb8e037
Remove .cat pages, there is no need for them in the modern world.
...
Sudo only shipped .cat pages for Irix, which lacked nroff.
Irix is long dead and there are multiple open source nroff options.
2019-06-20 13:15:46 -06:00
Todd C. Miller
de65d70929
Add a proper getdelim(3) replacement and use it instead of getline(3).
2019-04-08 10:37:30 -06:00
Todd C. Miller
e31ac5a998
Fix test failure when run by a user other than the file owner.
2019-03-08 09:07:20 -07:00
Todd C. Miller
28b0bff4f3
Updated translations from translationproject.org
2019-03-08 08:36:01 -07:00
Todd C. Miller
0c31cf15fe
Test cvtsudoers stdout and stderr separately.
...
Fixes a test failure on systems with musl libc. Bug #873
2019-03-08 06:58:30 -07:00
Todd C. Miller
36d4373403
Split command match code out into match_command.c.
...
Also remove unused SUDOERS_NAME_MATCH code.
2019-02-18 11:35:52 -07:00
Todd C. Miller
e010706ede
Use roff conditionals in the manuals instead of post-processing.
...
We still need to process the resulting .man.in files to add back
the conditionals but this should be easier to debug as the changes
are visible in the .in file.
Some minor postprocessing is still used to make the manuals HP-UX
friendly and to change "0 seconds" -> unlimited after substitution.
2018-11-27 08:14:15 -07:00
Todd C. Miller
5e098a782d
OpenLDAP schema file for Sudo in on-line configuration (OLC) format.
...
From Frederic Pasteleurs.
2018-11-09 10:38:49 -07:00
Todd C. Miller
cad10fbd2e
Portuguese translation for sudo and sudoers from translationproject.org.
2018-11-07 11:20:27 -07:00
Todd C. Miller
1fe582a0e3
Add support for negated sudoRunAsUser and sudoRunAsGroup entries.
2018-10-28 15:46:27 -06:00
Todd C. Miller
0398996b39
Use a testsudoers group file with known contents instead of the system one.
2018-10-27 10:57:37 -06:00
Todd C. Miller
5eb0fbd076
add getgrouplist_test.c
2018-10-26 10:26:27 -06:00
Todd C. Miller
1b035b5426
Add padding option to cvtsudoers.
...
Bug #856
2018-10-25 08:40:25 -06:00
Todd C. Miller
56cff772eb
Asturian translation for sudo from translationproject.org
2018-10-22 06:21:59 -06:00
Todd C. Miller
cf07dc0757
Add a suspend event type to the I/O log to log suspend/resume of
...
the command so we can skip that delay during replay.
2018-10-05 14:16:08 -06:00
Todd C. Miller
8bf279b11e
Add regress test for bug #853
2018-09-20 15:10:15 -06:00
Todd C. Miller
2221fbe2f1
Add some more ldif -> sudoers tests to verify sudoOrder.
2018-08-30 07:49:59 -06:00
Todd C. Miller
e318f27fba
When parsing an I/O log timing line, store the result in a timespec,
...
not a double. The speed factor (for scaling the delay) in sudoreplay
is still a double but we only need to adjust the delay if the factor
is something other than 1.0.
2018-08-29 09:57:12 -06:00
Todd C. Miller
4782b22a47
Move ldif -> sudoers conversion code into parse_ldif.c
2018-08-26 20:02:49 -06:00
Todd C. Miller
52d54997ee
Move string list functions to their own file.
2018-08-26 19:48:14 -06:00
Todd C. Miller
aaad554cda
Add regress test for I/O log plugin endpoints
2018-08-23 15:35:02 -06:00
Todd C. Miller
ddd663a5f2
Import arc4random() from libressl. This takes an all-in-one approach
...
instead of the one-file-per-OS approach that libressl takes.
The fallback code does not have as many OS-specific bits as libressl.
2018-05-24 21:04:23 -06:00
Todd C. Miller
154a5f59a9
Move digest code into libutil
2018-05-24 21:04:07 -06:00
Todd C. Miller
1cd472c051
Check for invalid bas64 attributes.
2018-05-20 08:09:25 -06:00
Todd C. Miller
1bc8e9abfd
Add support for base64-encoding non-safe strings in LDIF output.
2018-05-20 07:01:26 -06:00
Todd C. Miller
1ab3606019
Add support for parsing base64-encoded attributes
2018-05-18 10:11:51 -06:00
Todd C. Miller
f9be3a48a2
Simplify the nss interface such that each sudoers provider fills
...
in a per-nss list of userspecs and defaults instead of using separate
lookup and list functions. This makes it possible to have a single
implementation of the code for sudoers lookup and listing.
2018-05-14 09:05:03 -06:00
Todd C. Miller
f23d73dfe1
Add Chinese(Taiwan) translation for sudo.
2018-04-24 10:45:30 -06:00
Todd C. Miller
c64e57dad5
Add tests for round-tripping cvtsudoers, sudoers -> LDIF -> sudoers
...
and LDIF -> sudoers -> LDIF.
2018-04-21 06:23:02 -06:00
Todd C. Miller
48f74db604
Test the -b option when converting from LDIF.
2018-04-19 09:24:08 -06:00
Todd C. Miller
523f0eeeab
Monty Python insults from Philip Hudson
2018-04-17 07:10:43 -06:00
Todd C. Miller
4be8aba9f8
cvtsudoers regress tests
2018-04-15 08:14:46 -06:00
Todd C. Miller
22c9ed8e77
sync
2018-03-23 06:56:49 -06:00
Todd C. Miller
81a373677a
Add test for empty runas user list.
2018-03-06 14:39:11 -07:00
Todd C. Miller
4874068070
Add tests for round-tripping sudoers -> ldif -> sudoers
2018-03-02 11:30:19 -07:00
Todd C. Miller
120bb6de7f
rename ldap_common.c -> ldap_util.c
2018-02-28 14:24:33 -07:00
Todd C. Miller
5999cfb906
Add support for setting default options in a config file. In
...
addition to expand_aliases, input_format and output_format, both
the initial sudoOrder and the increment when updating sudoOrder for
subsequent sudoRole objects can be specified. Command line options
have also been added for the start order and increment.
2018-02-24 09:23:14 -07:00
Todd C. Miller
43a3a23fed
Move LDAP configuration bits into ldap_conf.c
2018-02-11 07:36:08 -07:00
Todd C. Miller
64e99328e3
Move sudoers formatting code into fmtsudoers.
2018-02-09 18:22:04 -07:00