]>
granicus.if.org Git - sudo/log
Todd C. Miller [Thu, 20 Dec 2007 15:02:51 +0000 (15:02 +0000)]
reword LDAP SASL
Todd C. Miller [Wed, 19 Dec 2007 21:40:47 +0000 (21:40 +0000)]
sync
Todd C. Miller [Wed, 19 Dec 2007 21:39:00 +0000 (21:39 +0000)]
Add an example sudoRole, clarify netscape vs. openldap a bit more
Todd C. Miller [Wed, 19 Dec 2007 19:42:16 +0000 (19:42 +0000)]
Be clear on what is OpenLDAP vs. Netscape-derived
Todd C. Miller [Wed, 19 Dec 2007 19:28:57 +0000 (19:28 +0000)]
Use ldapssl_init() for ldaps support instead of trying
to do it manually with ldap_init() + ldapssl_install_routines().
Use tls_cert and tls_key for cert7.db and key3.db respectively.
Don't print debugging info for options that are not set.
Add warning if start_tls specified when not supported.
Todd C. Miller [Wed, 19 Dec 2007 19:25:10 +0000 (19:25 +0000)]
fix compilation on solaris
Todd C. Miller [Wed, 19 Dec 2007 19:23:07 +0000 (19:23 +0000)]
add missing .h and .c files for missing lib objs
Todd C. Miller [Tue, 18 Dec 2007 14:54:45 +0000 (14:54 +0000)]
fix LDAP_OPT_NETWORK_TIMEOUT setting
Todd C. Miller [Tue, 18 Dec 2007 01:10:10 +0000 (01:10 +0000)]
fix compilation on Solaris
Todd C. Miller [Mon, 17 Dec 2007 15:14:46 +0000 (15:14 +0000)]
fix typo
Todd C. Miller [Mon, 17 Dec 2007 13:08:29 +0000 (13:08 +0000)]
try to clear up which variables are for OpenLDAP and which are for netscape-derived SDKs
Todd C. Miller [Mon, 17 Dec 2007 12:31:40 +0000 (12:31 +0000)]
Add support for "ssl on" in both netscape and openldap flavors.
Only the OpenLDAP flavor has been tested.
Todd C. Miller [Mon, 17 Dec 2007 12:28:51 +0000 (12:28 +0000)]
Call cleanup() before exit in log_error() instead of calling
sudo_ldap_close() directly. ldap_conn can now be static to sudo.c
Todd C. Miller [Mon, 17 Dec 2007 01:02:44 +0000 (01:02 +0000)]
ld -> ldap_conn
Todd C. Miller [Sun, 16 Dec 2007 19:42:44 +0000 (19:42 +0000)]
Better ldap cleanup.
Todd C. Miller [Sun, 16 Dec 2007 19:08:05 +0000 (19:08 +0000)]
Distinguish between LDAP conf settings that are connection-specific
(which take an ld pointer) and those that are default settings (which do not).
Todd C. Miller [Fri, 14 Dec 2007 21:46:31 +0000 (21:46 +0000)]
Improved warnings on error.
Todd C. Miller [Fri, 14 Dec 2007 20:59:17 +0000 (20:59 +0000)]
Make ldap config table driven and set the config *after* we open the
connection.
Todd C. Miller [Thu, 13 Dec 2007 21:41:58 +0000 (21:41 +0000)]
fix LDAP_OPT_X_CONNECT_TIMEOUT compat define
Todd C. Miller [Thu, 13 Dec 2007 14:13:44 +0000 (14:13 +0000)]
some operating systems need to link with -lkrb5support when using krb5
Todd C. Miller [Mon, 10 Dec 2007 22:12:34 +0000 (22:12 +0000)]
minor update
Todd C. Miller [Mon, 10 Dec 2007 15:56:23 +0000 (15:56 +0000)]
regen
Todd C. Miller [Sat, 8 Dec 2007 00:17:21 +0000 (00:17 +0000)]
sync
Todd C. Miller [Sat, 8 Dec 2007 00:09:28 +0000 (00:09 +0000)]
add -g support for LDAP
Todd C. Miller [Mon, 3 Dec 2007 16:36:49 +0000 (16:36 +0000)]
The -i and -s flags can now take an optional command.
Todd C. Miller [Sun, 2 Dec 2007 17:13:48 +0000 (17:13 +0000)]
Add passprompt_override flag to sudoers that will cause the prompt
to be overridden in all cases. This flag is also set when the
user specifies the -p flag.
Todd C. Miller [Sun, 2 Dec 2007 00:51:32 +0000 (00:51 +0000)]
Move setting of login class until after sudoers has been parsed.
Set NewArgv[0] for -i after runas_pw has been set.
Todd C. Miller [Sun, 2 Dec 2007 00:34:54 +0000 (00:34 +0000)]
Move the dgettext check.
Todd C. Miller [Sat, 1 Dec 2007 16:22:25 +0000 (16:22 +0000)]
Add basic support for looking up the string "Password: " in the PAM
localized text db. This allows us to determine whether the PAM
prompt is the default "Password: " one even if it has been localized.
TODO: concatenate non-std PAM prompts and user-specified sudo prompts.
Todd C. Miller [Tue, 27 Nov 2007 23:40:50 +0000 (23:40 +0000)]
Use AC_FUNC_GETGROUPS instead of a home-grown attempt that was insufficient.
Todd C. Miller [Tue, 27 Nov 2007 17:13:03 +0000 (17:13 +0000)]
Fix typos; Martynas Venckus
Todd C. Miller [Mon, 26 Nov 2007 00:26:42 +0000 (00:26 +0000)]
Don't assume runas_pw is set; it may not be in the -g case.
Todd C. Miller [Sun, 25 Nov 2007 13:07:21 +0000 (13:07 +0000)]
Set aux group vector for PERM_RUNAS and restore group vector for
PERM_ROOT if we previously changed it. Stash the runas group vector
so we don't have to call initgroups more than once. Also add no-op
check to check_perms.
Todd C. Miller [Wed, 21 Nov 2007 20:12:00 +0000 (20:12 +0000)]
Add support for runas groups. This allows the user to run a command
with a different effective group. If the -g option is specified
without -u the command will be run as the current user (only the
group will change). the -g and -u options may be used together.
TODO: implement runas group for ldap
improve runas group documentation
add testsudoers support
Todd C. Miller [Wed, 21 Nov 2007 20:02:39 +0000 (20:02 +0000)]
fix setting of mandir
Todd C. Miller [Wed, 21 Nov 2007 19:26:06 +0000 (19:26 +0000)]
document that ALL implies SETENV
Todd C. Miller [Wed, 21 Nov 2007 18:50:47 +0000 (18:50 +0000)]
s/setenv_ok/setenv_implied/g
Todd C. Miller [Wed, 21 Nov 2007 18:44:48 +0000 (18:44 +0000)]
hostname_matches() returns TRUE on match in sudo 1.7.
Todd C. Miller [Wed, 21 Nov 2007 18:26:59 +0000 (18:26 +0000)]
use strcmp, not strcasecmp when comparing ALL
Todd C. Miller [Wed, 21 Nov 2007 16:41:49 +0000 (16:41 +0000)]
Make sudo ALL imply setenv. Note that unlike with file-based sudoers
this does affect all the commands in the sudoRole.
Todd C. Miller [Wed, 21 Nov 2007 16:05:31 +0000 (16:05 +0000)]
sudo "ALL" now implies the SETENV tag but, unlike an explicit tag, it
is not passed on to other commands in the list.
Todd C. Miller [Wed, 21 Nov 2007 16:02:30 +0000 (16:02 +0000)]
Add missing sudo_setpwent() and sudo_setgrent() calls. Also
use sudo_getpwuid() instead of getpwuid().
Todd C. Miller [Thu, 15 Nov 2007 16:16:46 +0000 (16:16 +0000)]
Expand on the dangers of not using visudo to edit sudoers.
Todd C. Miller [Thu, 8 Nov 2007 12:24:41 +0000 (12:24 +0000)]
Don't quote *?[]! on output since the lexer does not strip off the
backslash when reading those in.
Todd C. Miller [Wed, 7 Nov 2007 18:16:31 +0000 (18:16 +0000)]
expand "u_foo" types to "unsigned foo" to avoid compatibility issues.
Todd C. Miller [Sun, 4 Nov 2007 13:33:18 +0000 (13:33 +0000)]
Refactor log line generation in to new_logline().
Todd C. Miller [Thu, 25 Oct 2007 13:23:39 +0000 (13:23 +0000)]
fix typo
Todd C. Miller [Wed, 24 Oct 2007 16:41:19 +0000 (16:41 +0000)]
Add configure check for struct in6_addr instead of relying on AF_INET6
since some systems define AF_INET6 but do not include IPv6 support.
Todd C. Miller [Sun, 21 Oct 2007 13:29:18 +0000 (13:29 +0000)]
Fix block to add -lutil for FreeBSD and NetBSD when logincap is in use.
Todd C. Miller [Sat, 20 Oct 2007 02:28:40 +0000 (02:28 +0000)]
POSIX states that struct timespec be declared in time.h so check
there regardless of the value of TIME_WITH_SYS_TIME.
Todd C. Miller [Wed, 17 Oct 2007 15:37:30 +0000 (15:37 +0000)]
Instead of defining a macro to call the appropriate method for
turning on/off echo, just define tc[gs]etattr() and the related
defines that use the correct terminal ioctls if needed.
Also go back to using TCSAFLUSH instead of TCSADRAIN on all but QNX.
Todd C. Miller [Tue, 9 Oct 2007 00:18:07 +0000 (00:18 +0000)]
g/c @ALLOCA@
Todd C. Miller [Tue, 9 Oct 2007 00:07:25 +0000 (00:07 +0000)]
regen
Todd C. Miller [Tue, 9 Oct 2007 00:04:48 +0000 (00:04 +0000)]
Add --disable-pam-session configure option to disable calling
pam_{open,close}_session. May work around bugs in some PAM
implementations.
Todd C. Miller [Mon, 8 Oct 2007 16:00:59 +0000 (16:00 +0000)]
quiet gcc warnings
Todd C. Miller [Mon, 8 Oct 2007 12:41:08 +0000 (12:41 +0000)]
Avoid printing the prompt if we are already backgrounded.
E.g. if the user runs "sudo foo &" from the shell. In this
case, the call to tcsetattr() will cause SIGTTOU to be delivered.
Todd C. Miller [Sat, 15 Sep 2007 20:07:50 +0000 (20:07 +0000)]
Reorder things such that the definition of env_reset come right
before the env variable lists.
Todd C. Miller [Sat, 15 Sep 2007 11:50:28 +0000 (11:50 +0000)]
Shrink type and seqno in struct alias from int to u_short
Todd C. Miller [Sat, 15 Sep 2007 11:24:54 +0000 (11:24 +0000)]
Add a sequence number in the aliases for loop detection. If we find
an alias with the seqno already set to the current (global) value we
know we've visited it before so ignore it.
Todd C. Miller [Thu, 13 Sep 2007 23:05:34 +0000 (23:05 +0000)]
PAM wants the full tty path so add user_ttypath which holds the
full path to the tty or is NULL if no tty was present.
Todd C. Miller [Thu, 13 Sep 2007 22:42:15 +0000 (22:42 +0000)]
Set PAM_RHOST to work around a bug in Solaris 7 and lower that
results in a segv.
Todd C. Miller [Tue, 11 Sep 2007 19:43:07 +0000 (19:43 +0000)]
regen
Todd C. Miller [Tue, 11 Sep 2007 19:42:48 +0000 (19:42 +0000)]
rename lh_ -> tq_
Todd C. Miller [Mon, 10 Sep 2007 21:33:31 +0000 (21:33 +0000)]
remove some useless casts
Todd C. Miller [Mon, 10 Sep 2007 21:32:53 +0000 (21:32 +0000)]
pull in inttypes.h for SIZE_MAX; we avoid stdint.h since inttypes.h predates the final C99 spec and the standard specifies that it shall include stdint.h anyway
Todd C. Miller [Thu, 6 Sep 2007 16:39:11 +0000 (16:39 +0000)]
Since we ship with a pre-generated parser there is no need to
ship a bogus alloca implementation.
Todd C. Miller [Thu, 6 Sep 2007 16:22:23 +0000 (16:22 +0000)]
regen
Todd C. Miller [Thu, 6 Sep 2007 16:19:20 +0000 (16:19 +0000)]
remove initial setting of CHECKSIA, we require that it be unset if not used
Todd C. Miller [Thu, 6 Sep 2007 15:55:24 +0000 (15:55 +0000)]
add list.c to SRCS
Todd C. Miller [Thu, 6 Sep 2007 11:18:13 +0000 (11:18 +0000)]
regen
Todd C. Miller [Thu, 6 Sep 2007 11:17:43 +0000 (11:17 +0000)]
only do SIA checks on Digital Unix
Todd C. Miller [Wed, 5 Sep 2007 22:50:55 +0000 (22:50 +0000)]
regen
Todd C. Miller [Wed, 5 Sep 2007 22:48:23 +0000 (22:48 +0000)]
sync
Todd C. Miller [Wed, 5 Sep 2007 22:39:55 +0000 (22:39 +0000)]
Remove call to krb5_cc_register() as it is not needed for modern kerb5.
Todd C. Miller [Wed, 5 Sep 2007 22:16:46 +0000 (22:16 +0000)]
regen
Todd C. Miller [Wed, 5 Sep 2007 22:16:22 +0000 (22:16 +0000)]
New method for setting the default authentication type and
avoiding conflicts in auth types.
Todd C. Miller [Wed, 5 Sep 2007 18:45:26 +0000 (18:45 +0000)]
Each entry in a cmndlist now has an associated runaslist
so no need to keep track of the most recent non-NULL one.
Todd C. Miller [Tue, 4 Sep 2007 22:51:35 +0000 (22:51 +0000)]
back out partial ldaps support mistakenly committed
Todd C. Miller [Tue, 4 Sep 2007 14:57:14 +0000 (14:57 +0000)]
Add support for unix groups and netgroups in sudoRunas
Todd C. Miller [Mon, 3 Sep 2007 20:28:15 +0000 (20:28 +0000)]
Fix sudoedit of a non-existent file. From Tilo Stritzky.
Todd C. Miller [Sun, 2 Sep 2007 21:05:58 +0000 (21:05 +0000)]
regen
Todd C. Miller [Sun, 2 Sep 2007 21:05:32 +0000 (21:05 +0000)]
update --passprompt escape info
Todd C. Miller [Sun, 2 Sep 2007 21:03:21 +0000 (21:03 +0000)]
remove now-bogus comment and update copyright date
Todd C. Miller [Sun, 2 Sep 2007 20:35:52 +0000 (20:35 +0000)]
Fix up use of with_passwd
Todd C. Miller [Sun, 2 Sep 2007 20:25:53 +0000 (20:25 +0000)]
Update to autoconf-2.61 andf libtool-1.5.24
Todd C. Miller [Sun, 2 Sep 2007 20:17:23 +0000 (20:17 +0000)]
"cmp -s" not just cmp
Add @datarootdir@ to quiet autoconf-2.61
Todd C. Miller [Sat, 1 Sep 2007 21:39:24 +0000 (21:39 +0000)]
regen
Todd C. Miller [Sat, 1 Sep 2007 21:39:18 +0000 (21:39 +0000)]
move tags and runaslist propagation to be earlier
Todd C. Miller [Sat, 1 Sep 2007 13:34:41 +0000 (13:34 +0000)]
If -f flag given use the permissions of the original file as a template
Todd C. Miller [Sat, 1 Sep 2007 12:45:11 +0000 (12:45 +0000)]
prevent a double free() when re-initing the parser
Todd C. Miller [Fri, 31 Aug 2007 23:30:35 +0000 (23:30 +0000)]
regen
Todd C. Miller [Fri, 31 Aug 2007 23:30:07 +0000 (23:30 +0000)]
Remove support for compilers that don't support void *
Todd C. Miller [Fri, 31 Aug 2007 23:14:37 +0000 (23:14 +0000)]
regen
Todd C. Miller [Fri, 31 Aug 2007 23:13:26 +0000 (23:13 +0000)]
Move list manipulation macros to list.h and create C versions of
the more complex ones in list.c. The names have been down-cased
so they appear more like normal functions.
Todd C. Miller [Fri, 31 Aug 2007 21:21:01 +0000 (21:21 +0000)]
Fix cmp command when regenerating parser.
Make gram.o the first dependency for all programs so gram.h will
be generated before anything that needs it.
Todd C. Miller [Fri, 31 Aug 2007 17:56:30 +0000 (17:56 +0000)]
Convert NEW_DEFAULT anf NEW_MEMBER into static functions.
Todd C. Miller [Fri, 31 Aug 2007 01:21:26 +0000 (01:21 +0000)]
Use LH_FOREACH_REV when checking permission and short-circuit on
the first non-UNSPEC hit we get for the command. This means that
instead of cycling through the all the parsed sudoers entries we
start at the end and work backwards and quit after the first positive
or negative match.
Todd C. Miller [Fri, 31 Aug 2007 01:13:05 +0000 (01:13 +0000)]
regen
Todd C. Miller [Fri, 31 Aug 2007 01:12:50 +0000 (01:12 +0000)]
Change list head macros to take a pointer, not a struct.
Todd C. Miller [Fri, 31 Aug 2007 00:46:49 +0000 (00:46 +0000)]
regen