Todd C. Miller
aa516b0a51
Add missing plugins/sudoers/po/fur.mo file to repo.
2018-01-15 10:24:13 -07:00
Todd C. Miller
ff5ac3ef0e
Add tsdump, a simple utility to dump a timestamp file. To build,
...
run "make tsdump" in the plugins/sudoers directory (it is not built
by default). In order to map the tty device number to a name,
sudo_ttyname_dev() has been moved into libsudo_util.
2018-01-11 10:49:20 -07:00
Todd C. Miller
5f3797c754
Document the sudoers time stamp file format.
2017-12-20 13:01:06 -07:00
Todd C. Miller
6ce85b1746
Trivial test for process start time. We don't try to check the
...
resulting timespec as it differs by platform. On most it is wallclock
time, on others it is relative to boot time (Linux).
2017-12-18 10:35:37 -07:00
Todd C. Miller
1709dc7f77
In the timestamp record, include the start time of the terminal
...
session leader for tty-based timestamps or the start time of the
parent process for ppid-based timestamps. Idea from Duncan Overbruck.
2017-12-16 05:53:05 -07:00
Todd C. Miller
5f5a60f822
Add script to generate ChangeLog from git log output.
2017-12-09 20:40:28 -07:00
Todd C. Miller
9ab1c9935d
sync with translationproject.org
...
* * *
sync with translationproject.org
2017-09-07 15:47:09 -06:00
Todd C. Miller
a01bbfacf4
Add Friulian translation for sudo from Fabio Tomat via translationproject.org
2017-08-10 10:14:57 -06:00
Todd C. Miller
17514b55ea
Add support for multiple '*' in env_keep, env_check and env_delete
...
entries.
2017-05-12 10:02:17 -06:00
Todd C. Miller
c379665556
Add tests for parsing tuples and syslog options.
2017-05-03 09:54:30 -06:00
Todd C. Miller
7aa89c49b5
Emulate pipe2() on systems without it.
2017-03-13 12:11:51 -06:00
Todd C. Miller
af1482f487
Add tcsetpgrp_nobg() which acts like tcsetpgrp() but returns -1
...
for a background process. This is safer than blocking SIGTTOU
which would cause tcsetpgrp() to succeed in the background.
2017-03-07 12:29:21 -07:00
Todd C. Miller
6dba84dca9
Reorganize the command execution code to separate out the pty and
...
non-pty code paths into their own event loops. The non-pty exec
code is now contained in exec_nopty.c and the pty exec code is split
between exec_pty.c (parent process) and exec_monitor.c (session leader).
This results in a small bit of duplicated code but improves readability.
Some of the duplicated code will fall out in future changes to the
event subsystem (the signal pipe).
2017-03-03 10:35:11 -07:00
Todd C. Miller
b9954fb9b9
Add support for using the message digest functions in libgcrypt
...
instead of sudo's own SHA2 implementation.
2017-02-20 16:44:12 -07:00
Todd C. Miller
199a594f43
Add support for using the message digest functions in OpenSSL instead
...
of sudo's own SHA2 implementation.
2017-02-20 16:44:12 -07:00
Todd C. Miller
b5e7b7bd2c
Move the file digest code out of match.c and into filedigest.c.
...
Inspired by RedHat changes that used libgcrypt.
Also add digest_type_to_name() to map a sudo digest type (int)
to a name (string) and use it.
2017-02-20 16:44:12 -07:00
Todd C. Miller
e5dee1557e
Add NOTBEFORE and NOTAFTER command options similar to what is
...
already available in LDAP.
2017-02-18 15:35:48 -07:00
Todd C. Miller
3980f1531b
Add support for command timeouts in sudoers. After the timeout,
...
the command will be terminated.
2017-02-14 15:56:34 -07:00
Todd C. Miller
63deb77705
Add regress for vsyslog replacement.
2017-01-15 19:07:59 -07:00
Todd C. Miller
2f0295373a
When waiting for the parent to grant us the tty, use nanosleep
...
instead of spinning to avoid hogging the CPU.
2017-01-12 10:44:26 -07:00
Todd C. Miller
90e1f4ec3e
Fix crash in visudo introduced in sudo 1.8.9 when an IP address or
...
network is used in a host-based Defaults entry. Bug #766
2017-01-07 19:50:05 -07:00
Todd C. Miller
cb7e82acca
Use AX_APPEND_FLAG instead of SUDO_APPEND_CPPFLAGS and direct
...
modification of LDFLAGS.
2016-11-17 10:16:51 -07:00
Todd C. Miller
a77ecca7d3
Remove aixcrypt.exp, it was a remnant of the 90's crypto wars where
...
crypt() was not exported.
2016-11-17 08:11:59 -07:00
Todd C. Miller
66af45eb24
Add regress for noexec functionality
2016-11-14 14:21:08 -07:00
Todd C. Miller
90995c0acf
Add simple reference-counted string allocator and use it for passing
...
around references to the sudoers path. This lets us avoid making
copies of the sudoers path for the errorfile as well as each Defaults
entry.
2016-11-11 16:18:27 -07:00
Todd C. Miller
52e136863f
Add checks for sudoers_locale early Defaults
2016-11-10 14:36:11 -07:00
Todd C. Miller
bf62530acf
Move io_mkdir_parents() to its own file and use it in ts_mkdirs().
2016-10-29 12:45:57 -06:00
Todd C. Miller
19c96da44d
add vsyslog() for systems without it.
2016-10-19 11:32:36 -06:00
Todd C. Miller
6eb1b8c7ea
Norwegian Nynorsk translation of sudo from translationproject.org
2016-09-07 11:07:59 -06:00
Todd C. Miller
99b9699793
Fix use-after-free in check_defaults(), reported by Radovan Sroka
...
of RedHat.
2016-08-25 08:32:45 -06:00
Todd C. Miller
63dbb74250
Korean translation for sudo and sudoers from translationproject.org.
2016-05-25 08:41:27 -06:00
Todd C. Miller
bb12328064
README file for the sample plugin that tells the user how to build,
...
install and enable it.
2016-05-06 11:30:02 -06:00
Todd C. Miller
21d6fc3d8f
Simple garbage collection (really a to-be-freed list) for the sudoers
...
plugin. Almost identical to what sudo.c uses. Currenly only the
environment strings are collected at exit time which is enough to
quiet address sanitizer's leak detector.
2016-01-28 14:53:48 -07:00
Todd C. Miller
39db87e62b
sync with translationproject.org
2016-01-04 10:47:11 -07:00
Todd C. Miller
4f1912148f
Add ABOUT-NLS from GNU gettext.
2015-10-23 14:13:54 -06:00
Todd C. Miller
4c7431ecb4
Add new Slovak and Hungarian translations from translationproject.org
2015-10-05 06:03:42 -06:00
Todd C. Miller
67183d74f4
Remove include/compat/timespec.h. Systems old enough to lack struct
...
timespec are too old to build a modern sudo.
2015-09-09 11:13:22 -06:00
Todd C. Miller
f11e02ddd5
add .json regress files to MANIFEST
2015-08-06 13:39:59 -06:00
Todd C. Miller
ac13264b44
Use a common function for resolviong the user's editor in sudoedit
...
and visudo. The find_path() function now returns a dynamically
allocated path instead of using a static string.
2015-06-18 09:51:36 -06:00
Todd C. Miller
4be97a6c4e
Remove now-unused sudo_alloc.h and alloc.c
2015-06-17 17:00:55 -06:00
Todd C. Miller
40d72f26e4
Add standalone reallocarray.c from OpenBSD instead of rolling our own.
2015-05-27 10:04:32 -06:00
Todd C. Miller
8c3fd195d2
Add unit tests for strsplit and parse_gid_list.
2015-05-26 20:25:08 -06:00
Todd C. Miller
8d1708434f
Add sudo_strsplit(), similar to strtok_r() but non-destructive and
...
operates on non-C strings (requires a length parameter).
2015-05-26 15:46:41 -06:00
Todd C. Miller
82286d8b7b
Add strndup() for those without it. As strndup.c uses strnlen(),
...
use our own if it is missing.
2015-05-26 14:05:26 -06:00
Todd C. Miller
49d56f323e
Add strnlen() replacement needed for glob.c.
...
Only used if no glob() and no strnlen().
2015-05-26 13:55:18 -06:00
Todd C. Miller
8bc70a635c
Instead of trying to make weak functions work on all platforms,
...
just use a registration function for a plugin-specific setlocale
function. The sudoers version just wraps sudoers_setlocale().
2015-05-11 14:51:32 -06:00
Todd C. Miller
ff806216fa
Add missing m4/ax_sys_weak_alias.m4
2015-05-07 07:16:11 -06:00
Todd C. Miller
fa3552fa76
Create template tmpfiles.d/sudo.conf for installation instead of
...
creating one via echo commands in the Makefile.
Add --enable-tmpfiles.d configure option to enable/disable use of
tmpfiles.d and override the default directory.
Use --disable-tmpfiles.d in mkpkg so we no longer need to ignore
tmpfiles.d/sudo.conf in sudo.pp.
2015-04-07 15:35:01 -06:00
Todd C. Miller
a7edf7d984
Remove compat/utime.h, it was only useful for ancient systems that
...
are no longer capable of compiling sudo.
2015-03-03 16:57:55 -07:00
Todd C. Miller
ee72cba937
Use futimens() and utimensat() instead of futimes() and utimes().
2015-03-02 13:58:50 -07:00