Todd C. Miller
9309c9eab7
Use getopt_long() so we can make the -h flag take an optional argument.
...
Includes a version for those without it.
2013-07-17 17:00:55 -06:00
Todd C. Miller
e53e80187d
Sync with translationproject.org
2013-07-16 07:32:57 -06:00
Todd C. Miller
ab61c02546
Replace sequence number-based cycle detection in visudo with a
...
"used" flag in struct alias. The caller is required to call
alias_put() when it is done with the alias. Inspired by a patch
from Daniel Kopecek.
2013-05-22 11:32:08 -04:00
Todd C. Miller
a971ac4233
Sync with translationproject.org
2013-04-29 14:04:51 -04:00
Todd C. Miller
e17e4c951a
Updated translations from translationproject.org including new
...
Turkish translation.
2013-04-26 09:16:22 -04:00
Todd C. Miller
5a7e54d375
Add regress for SHA-2 digests.
2013-04-24 15:38:03 -04:00
Todd C. Miller
2923a6652b
Remove some files that were mistakenly added.
2013-04-23 16:37:52 -04:00
Todd C. Miller
e91e30b4b2
Simple bas64 decode unit test.
2013-04-17 12:54:33 -04:00
Todd C. Miller
9c1ee1fe73
Move base64_decode into its own source file.
2013-04-17 09:32:27 -04:00
Todd C. Miller
89759fa36c
For big endian architectures just use memcpy() instead of BE macros
...
in a loop.
2013-04-15 11:05:52 -04:00
Todd C. Miller
35375a2b7e
Initial implementation of checksum support in sudoers.
...
Currently supports SHA-224, SHA-256, SHA-384, SHA-512.
TODO: checksum format validation in parser and base64 support.
checksum support for ldap sudoers
2013-04-14 07:00:21 -04:00
Todd C. Miller
ec32194152
Add ttyname test.
2013-04-10 09:39:49 -04:00
Todd C. Miller
159664ad78
No more timestamp.h
2013-04-01 14:56:54 -04:00
Todd C. Miller
b507f0a854
New Dutch translation for sudo and sudoers
...
New Turkish translation for sudo
From translationproject.org
2013-03-23 08:45:51 -04:00
Todd C. Miller
6bd8848608
Fix path to sudo.conf manuals; remove non-existant test2.err.ok
2013-03-18 15:29:40 -04:00
Todd C. Miller
5d7925b24e
Test setting disable_coredump to illegal value.
2013-02-20 15:48:53 -05:00
Todd C. Miller
e07280eeeb
Rename sample_group plugin to group_file.
...
Install group_file and system_group plugins by default.
2013-02-18 15:32:36 -05:00
Todd C. Miller
0c40e82c16
Add simple regress tests for sudo.conf parsing.
2013-02-15 14:42:10 -05:00
Todd C. Miller
7aae6bd6e3
Add line continuation support to sudo_parseln() and make it use
...
getline() instead of fgets() internally.
2013-02-07 10:56:01 -05:00
Todd C. Miller
c5816ca6ae
Add standalone sudo.conf manual page.
2013-02-05 11:43:02 -05:00
Todd C. Miller
479cd25b21
Add missing test files.
2013-01-24 12:05:33 -05:00
Todd C. Miller
db7ea4123a
Add test for visudo cycle check core dump; test case from Daniel Kopecek
2013-01-23 08:24:11 -05:00
Todd C. Miller
6bc3d4aed5
Use nss_search() to implement getgrouplist() where available. Tested
...
on Solaris and HP-UX. We need to include a compatibility header
for HP-UX which uses the Solaris nsswitch implementation but doesn't
ship nss_dbdefs.h.
2013-01-22 15:41:15 -05:00
Todd C. Miller
855a11af2b
Move signal code into its own source file and add sudo_sigaction()
...
wrapper that has an extra flag to check the saved_signals list to
only install the handler if the signal is not already ignored.
Bump plugin API version for the new front-end signal behavior.
2013-01-17 13:29:46 -05:00
Todd C. Miller
2632ec7e69
Move warn/error into common and make static builds work.
2012-11-25 09:34:40 -05:00
Todd C. Miller
c2c6616a0c
Move _sudo_printf from src/conversation.c to common/sudo_printf.c.
...
Add sudo_printf function pointer that is initialized to _sudo_printf()
instead of requiring a sudo_conv function pointer everywhere. The
plugin will reset sudo_printf to point to the version passed in via
the plugin open function. Now plugin_error.c can just call sudo_printf
in all cases. The sudoers binaries no longer need their own version
of sudo_printf.
2012-11-25 09:34:33 -05:00
Todd C. Miller
83dde2fbb6
Add os-specific initialization functions for solaris (workaround
...
setuid locale problem in Solaris 11) and openbsd (set malloc_options
if SUDO_DEVEL). Also move set_project() to solaris.c.
2012-11-11 07:11:22 -05:00
Todd C. Miller
4207589fe2
Add simple locale switching to make it easy to switch from the
...
user's locale to the sudoers locale without making excessive
setlocale() calls when we don't need to.
2012-11-08 15:37:43 -05:00
Todd C. Miller
475662aaa4
Refactor policy plugin interface code from sudoers.c into policy.c
2012-10-25 16:58:31 -04:00
Todd C. Miller
2b23d2b12c
Move expand_prompt() into its own source file for easier unit testing.
2012-10-23 14:27:52 -04:00
Todd C. Miller
0a7af23038
Make check.c independent of the underlying timestamp implementation.
2012-10-23 14:16:57 -04:00
Todd C. Miller
0fa33ccf0f
Split off timestamp functions into their own source file.
2012-09-27 10:21:13 -04:00
Todd C. Miller
883e0ec3cc
Split out implementation-specific back end code out of pwutil.c
...
into pwutil_impl.c. This will allow the main pwutil code to be
used for lookup methods other than getpw* and getgr*.
2012-09-21 16:25:01 -04:00
Todd C. Miller
2068d941b9
Add sssd.c
2012-09-04 09:07:33 -04:00
Todd C. Miller
8de12a2bcf
Add Vietnamese sudoers translation from translationproject.org
2012-09-01 17:00:49 -04:00
Todd C. Miller
4380a60a97
Add Vietnamese sudoers translation from translationproject.org
2012-09-01 13:10:04 -04:00
Todd C. Miller
ab7dda035a
Replace strsigname() with sig2str(), emulating it as needed.
2012-08-29 14:25:09 -04:00
Todd C. Miller
537dc94b9e
Use strsigname() to print signal names in the debug output.
...
If the system has no strsigname(), use our own.
2012-08-26 20:12:51 -04:00
Todd C. Miller
57f1c7fe05
Sync with translationproject.org and add Italian sudoers translation.
2012-08-17 09:56:44 -04:00
Todd C. Miller
ef33ee45d9
Sync with translationproject.org and add new Slovenian translation.
2012-08-10 13:07:53 -04:00
Todd C. Miller
602510f1bb
Generate a sed script file when munging *.mdoc or *.man instead of
...
passing sed expressions on the command line. Older seds do not
support \n in a replacement so generate and run a sed script instead.
2012-08-01 14:38:52 -04:00
Todd C. Miller
82c808c7ca
Remove pod versinons of HISTORY, CONTRIBUTORS and LICENSE as they
...
were not being kept in sync.
2012-07-29 14:17:57 -04:00
Todd C. Miller
336233c2e5
Add post-processing scripts to strip out login class, BSD auth,
...
SELinux and privilege set bits when they are not supported.
2012-07-26 13:50:26 -04:00
Todd C. Miller
90f2cfa589
Build .man.in and .cat files from .mdoc.in files.
...
Add new --with-man and --with-mdoc configure options.
2012-07-19 13:41:14 -04:00
Todd C. Miller
bcfeddc998
Rename foo.sym -> foo.exp
...
Remove foo.map from the repo and generate it on demand
Use a loader option file for HP-UX ld to explicitly export symbols
2012-06-20 12:58:16 -04:00
Todd C. Miller
2a83d1c6d5
Add regress test for symbol visibility.
2012-06-17 20:23:21 -04:00
Todd C. Miller
47abbb90a2
Don't use a map file for sudo_noexec.so since Solaris ld doesn't
...
allow '*' in the global section. The libtool export flag is now
added to LT_LDFLAGS instead of commenting/uncommenting lines.
2012-06-14 11:35:02 -04:00
Todd C. Miller
6f6b0dec6c
Use gcc's visibility attribute to specify when symbols are visible
...
or hidden, if available. If not available, use an ELF version
script if it is supported. If all else fails, fall back to using
libtool's -export-symbols.
2012-06-13 14:01:16 -04:00
Todd C. Miller
ca89eb59ea
Add m4/ax_check_compile_flag.m4 and m4/ax_check_link_flag.m4
2012-05-22 13:26:02 -04:00
Todd C. Miller
63e1ab974e
add system_group plugin
2012-05-10 10:01:09 -04:00