]> granicus.if.org Git - sudo/log
sudo
16 years agofix typo in last commit
Todd C. Miller [Thu, 6 Mar 2008 18:08:13 +0000 (18:08 +0000)]
fix typo in last commit

16 years agoAdd WHATSNEW file to the distribution
Todd C. Miller [Thu, 6 Mar 2008 18:07:31 +0000 (18:07 +0000)]
Add WHATSNEW file to the distribution

16 years agouse warningx instead of fprintf(stderr, ...)
Todd C. Miller [Thu, 6 Mar 2008 17:43:30 +0000 (17:43 +0000)]
use warningx instead of fprintf(stderr, ...)

16 years agoadd DEBUG to list2tq
Todd C. Miller [Thu, 6 Mar 2008 17:31:57 +0000 (17:31 +0000)]
add DEBUG to list2tq

16 years agosync
Todd C. Miller [Thu, 6 Mar 2008 17:29:18 +0000 (17:29 +0000)]
sync

16 years agomention mailfrom
Todd C. Miller [Thu, 6 Mar 2008 17:21:17 +0000 (17:21 +0000)]
mention mailfrom

16 years agoAdd aix_setlimits() to set resource limits on AIX using a combination
Todd C. Miller [Thu, 6 Mar 2008 17:19:57 +0000 (17:19 +0000)]
Add aix_setlimits() to set resource limits on AIX using a combination
of getuserattr() and setrlimit().  Currently untested.

16 years agoAdd mailfrom Defaults option that sets the value of the From:
Todd C. Miller [Wed, 5 Mar 2008 21:52:19 +0000 (21:52 +0000)]
Add mailfrom Defaults option that sets the value of the From:
field in the warning/error mail.  If unset the login name of
the invoking user is used.

16 years agostore a copy of _PATH_SUDO_ASKPASS in def_askpass that is freeable
Todd C. Miller [Wed, 5 Mar 2008 21:18:06 +0000 (21:18 +0000)]
store a copy of _PATH_SUDO_ASKPASS in def_askpass that is freeable

16 years agoWhen adding a default, only call list2tq() once to do the list to
Todd C. Miller [Wed, 5 Mar 2008 20:19:50 +0000 (20:19 +0000)]
When adding a default, only call list2tq() once to do the list to
tq conversion.  It is not legal to call list2tq multiple times on
the same list since list2tq consumes and modifies the list argument.

16 years agocomment out XXXs for now
Todd C. Miller [Wed, 5 Mar 2008 14:38:08 +0000 (14:38 +0000)]
comment out XXXs for now

16 years agomention askpass
Todd C. Miller [Wed, 5 Mar 2008 14:36:27 +0000 (14:36 +0000)]
mention askpass

16 years agoError out if both -A and -S are specified
Todd C. Miller [Tue, 4 Mar 2008 22:20:28 +0000 (22:20 +0000)]
Error out if both -A and -S are specified
Error out if -A is specified but no askpass is configured

16 years agowe are not going to ship a sudo-specific askpass
Todd C. Miller [Tue, 4 Mar 2008 22:16:49 +0000 (22:16 +0000)]
we are not going to ship a sudo-specific askpass

16 years agofix definition of TGP_ASKPASS
Todd C. Miller [Mon, 3 Mar 2008 19:30:50 +0000 (19:30 +0000)]
fix definition of TGP_ASKPASS

16 years agomake askpass boolean-capable
Todd C. Miller [Mon, 3 Mar 2008 18:54:34 +0000 (18:54 +0000)]
make askpass boolean-capable

16 years agodocument --with-askpass
Todd C. Miller [Mon, 3 Mar 2008 18:53:45 +0000 (18:53 +0000)]
document --with-askpass

16 years agoregen
Todd C. Miller [Mon, 3 Mar 2008 00:27:07 +0000 (00:27 +0000)]
regen

16 years agodocument -A and askpass
Todd C. Miller [Sun, 2 Mar 2008 22:31:08 +0000 (22:31 +0000)]
document -A and askpass

16 years agoAdd support for running a helper program to read the password when
Todd C. Miller [Sun, 2 Mar 2008 14:31:57 +0000 (14:31 +0000)]
Add support for running a helper program to read the password when
no tty is present (or when specified with the -A flag).  TODO: docs.

16 years agoadd missing printf format to SELinux role and type strings
Todd C. Miller [Sun, 2 Mar 2008 13:38:46 +0000 (13:38 +0000)]
add missing printf format to SELinux role and type strings

16 years agoDisable use of gss_krb5_ccache_name() by default and add
Todd C. Miller [Wed, 27 Feb 2008 14:26:28 +0000 (14:26 +0000)]
Disable use of gss_krb5_ccache_name() by default and add
--enable-gss-krb5-ccache-name configure option to enable it.  It
seems that gss_krb5_ccache_name() doesn't work properly with some
combinations of Heimdal and OpenLDAP.

16 years agoIgnore setexeccon() failing in permissive mode. Also add a
Todd C. Miller [Fri, 22 Feb 2008 20:33:00 +0000 (20:33 +0000)]
Ignore setexeccon() failing in permissive mode.  Also add a
call to setkeycreatecon() (though this is probably insufficient).
From Dan Walsh.

16 years agoOnly set std_prompt for the PAM_PROMPT_* cases. The conversation function
Todd C. Miller [Fri, 22 Feb 2008 20:19:34 +0000 (20:19 +0000)]
Only set std_prompt for the PAM_PROMPT_* cases.  The conversation function
may be called for non-password reading purposes so we must be careful
not to use def_prompt in cases where it may not be set.

16 years agoDon't free the new tty context, we need to keep it around when we restore the tty...
Todd C. Miller [Wed, 20 Feb 2008 17:00:40 +0000 (17:00 +0000)]
Don't free the new tty context, we need to keep it around when we restore the tty context after the command completes

16 years agos/newrole/sudo/
Todd C. Miller [Tue, 19 Feb 2008 21:04:20 +0000 (21:04 +0000)]
s/newrole/sudo/

16 years agoOnly put login_cap(3) in SEE ALSO section if we have login.conf support
Todd C. Miller [Tue, 19 Feb 2008 18:21:41 +0000 (18:21 +0000)]
Only put login_cap(3) in SEE ALSO section if we have login.conf support

16 years agoregen
Todd C. Miller [Mon, 18 Feb 2008 16:05:20 +0000 (16:05 +0000)]
regen

16 years agoSubstitute in comment characters for lines partaining to login.conf,
Todd C. Miller [Mon, 18 Feb 2008 15:53:33 +0000 (15:53 +0000)]
Substitute in comment characters for lines partaining to login.conf,
BSD auth and SELinux and only enable them if pertinent.

16 years agoSubstitute in comment characters for lines partaining to login.conf,
Todd C. Miller [Mon, 18 Feb 2008 15:53:33 +0000 (15:53 +0000)]
Substitute in comment characters for lines partaining to login.conf,
BSD auth and SELinux and only enable them if pertinent.

16 years agoSubstitute in comment characters for lines partaining to login.conf,
Todd C. Miller [Mon, 18 Feb 2008 15:53:33 +0000 (15:53 +0000)]
Substitute in comment characters for lines partaining to login.conf,
BSD auth and SELinux and only enable them if pertinent.

16 years agoSubstitute in comment characters for lines partaining to login.conf,
Todd C. Miller [Mon, 18 Feb 2008 15:53:33 +0000 (15:53 +0000)]
Substitute in comment characters for lines partaining to login.conf,
BSD auth and SELinux and only enable them if pertinent.

16 years agoSubstitute in comment characters for lines partaining to login.conf,
Todd C. Miller [Mon, 18 Feb 2008 15:53:33 +0000 (15:53 +0000)]
Substitute in comment characters for lines partaining to login.conf,
BSD auth and SELinux and only enable them if pertinent.

16 years agoRemove the =cut on the first line (above the copyright notice) to quiet
Todd C. Miller [Mon, 18 Feb 2008 15:42:43 +0000 (15:42 +0000)]
Remove the =cut on the first line (above the copyright notice) to quiet
pod2man.  Also remove the hackery in the FILES section and just deal
with the fact that there will a newline between each pathname.

16 years agorun sudo.man.pl when generating sudo.man.in
Todd C. Miller [Sun, 17 Feb 2008 13:19:49 +0000 (13:19 +0000)]
run sudo.man.pl when generating sudo.man.in

16 years agocomment out SELinux manual bits unless --with-selinux was specified
Todd C. Miller [Sun, 17 Feb 2008 13:11:38 +0000 (13:11 +0000)]
comment out SELinux manual bits unless --with-selinux was specified

16 years agodocument role and type defaults for SELinux
Todd C. Miller [Sun, 17 Feb 2008 13:04:45 +0000 (13:04 +0000)]
document role and type defaults for SELinux

16 years agoDocument "sudo -ll" and make "sudo -l -l" be equivalent.
Todd C. Miller [Sun, 17 Feb 2008 01:26:23 +0000 (01:26 +0000)]
Document "sudo -ll" and make "sudo -l -l" be equivalent.

16 years agoTreat k*bsd*-gnu like Linux, not BSD.
Todd C. Miller [Fri, 15 Feb 2008 20:23:54 +0000 (20:23 +0000)]
Treat k*bsd*-gnu like Linux, not BSD.
Fixes compilation problems on Debian GNU/kFreeBSD.

16 years agoAvoid Heimdal'isms introduced in the rev 1.32 rewrite of verify_krb_v5_tgt()
Todd C. Miller [Wed, 13 Feb 2008 22:17:14 +0000 (22:17 +0000)]
Avoid Heimdal'isms introduced in the rev 1.32 rewrite of verify_krb_v5_tgt()

16 years agoRemove dependence on VALIDATE_NOT_OK in logging functions.
Todd C. Miller [Wed, 13 Feb 2008 12:28:37 +0000 (12:28 +0000)]
Remove dependence on VALIDATE_NOT_OK in logging functions.
Split log_auth() into log_allowed() and log_denial()
Replace mail_auth() with should_mail() and a call to send_mail()

16 years agoAdd debugging so we can tell if the krb5 ccache is accessible
Todd C. Miller [Sun, 10 Feb 2008 23:06:19 +0000 (23:06 +0000)]
Add debugging so we can tell if the krb5 ccache is accessible

16 years agomention --with-selinux
Todd C. Miller [Sun, 10 Feb 2008 22:34:40 +0000 (22:34 +0000)]
mention --with-selinux

16 years agoregen
Todd C. Miller [Sat, 9 Feb 2008 14:48:21 +0000 (14:48 +0000)]
regen

16 years agoadd Sudo tag
Todd C. Miller [Sat, 9 Feb 2008 14:43:32 +0000 (14:43 +0000)]
add Sudo tag

16 years agoAdd support for SELinux RBAC. Sudoers entries may specify a role and type.
Todd C. Miller [Sat, 9 Feb 2008 14:30:07 +0000 (14:30 +0000)]
Add support for SELinux RBAC.  Sudoers entries may specify a role and type.
There are also role and type defaults that may be used.  To make sure a
transition occurs, when using RBAC commands are executed via the new sesh
binary.  Based on initial changes from Dan Walsh.

16 years agoAdd support for SELinux RBAC. Sudoers entries may specify a role and type.
Todd C. Miller [Sat, 9 Feb 2008 14:30:06 +0000 (14:30 +0000)]
Add support for SELinux RBAC.  Sudoers entries may specify a role and type.
There are also role and type defaults that may be used.  To make sure a
transition occurs, when using RBAC commands are executed via the new sesh
binary.  Based on initial changes from Dan Walsh.

16 years agoAdd support for SELinux RBAC. Sudoers entries may specify a role and type.
Todd C. Miller [Sat, 9 Feb 2008 14:30:06 +0000 (14:30 +0000)]
Add support for SELinux RBAC.  Sudoers entries may specify a role and type.
There are also role and type defaults that may be used.  To make sure a
transition occurs, when using RBAC commands are executed via the new sesh
binary.  Based on initial changes from Dan Walsh.

16 years agoAdd long list (sudo -ll) support for printing verbose LDAP and sudoers
Todd C. Miller [Fri, 8 Feb 2008 13:18:12 +0000 (13:18 +0000)]
Add long list (sudo -ll) support for printing verbose LDAP and sudoers
file entries.  Still need to update manual.

16 years agoUnify the -l output for file and ldap based sudoers and use lbufs for both.
Todd C. Miller [Sun, 3 Feb 2008 15:43:38 +0000 (15:43 +0000)]
Unify the -l output for file and ldap based sudoers and use lbufs for both.
The ldap output does not currently include options that cannot be represented
as tags.  This will be remedied in a long list output mode to come.

17 years agoUse a specific error message for errno == EAGAIN when setuid() et al fails.
Todd C. Miller [Sun, 27 Jan 2008 21:37:54 +0000 (21:37 +0000)]
Use a specific error message for errno == EAGAIN when setuid() et al fails.
On Linux systems setuid() will fail with errno set to EAGAIN if changing
to the new uid would result in a resource limit violation.

17 years agoUnlimit nproc on Linux systems where calling the setuid() family
Todd C. Miller [Sun, 27 Jan 2008 21:34:41 +0000 (21:34 +0000)]
Unlimit nproc on Linux systems where calling the setuid() family
of syscalls causes the nroc resource limit to be checked.  The
limits will be reset by pam_limits.so when PAM is used.  In the
non-PAM case the nproc limit will remain unlimited but there doesn't
seem to be a way around that other than having sudo parse
/etc/security/limits.conf directly.

17 years agoOnly read /etc/environment on Linux and AIX
Todd C. Miller [Sun, 27 Jan 2008 21:31:27 +0000 (21:31 +0000)]
Only read /etc/environment on Linux and AIX

17 years agoUse SUDO_DEFINE_UNQUOTED instead of AC_DEFINE_UNQUOTED to prevent
Todd C. Miller [Wed, 23 Jan 2008 11:33:27 +0000 (11:33 +0000)]
Use SUDO_DEFINE_UNQUOTED instead of AC_DEFINE_UNQUOTED to prevent
ldap.conf and ldap.secret paths from going into config.h.
Avoid single quotes in variable expansion when using SUDO_DEFINE_UNQUOTED
since in some versions of bash they will end up literally in the resulting
define.

17 years agomention --with-nsswitch=no
Todd C. Miller [Mon, 21 Jan 2008 18:22:51 +0000 (18:22 +0000)]
mention --with-nsswitch=no

17 years agoldap_ssl.h depends on ldap.h being included first
Todd C. Miller [Mon, 21 Jan 2008 16:43:10 +0000 (16:43 +0000)]
ldap_ssl.h depends on ldap.h being included first

17 years agoInclude ldap_ssl.h if we can find it. Needed for the ldapssl_set_strength
Todd C. Miller [Mon, 21 Jan 2008 16:07:42 +0000 (16:07 +0000)]
Include ldap_ssl.h if we can find it.  Needed for the ldapssl_set_strength
defines on HP-UX at least.

17 years agosync
Todd C. Miller [Mon, 21 Jan 2008 15:04:40 +0000 (15:04 +0000)]
sync

17 years agosync
Todd C. Miller [Mon, 21 Jan 2008 15:02:46 +0000 (15:02 +0000)]
sync

17 years agoregen
Todd C. Miller [Mon, 21 Jan 2008 15:01:37 +0000 (15:01 +0000)]
regen

17 years agoUse 78n line length when formatting cat pages.
Todd C. Miller [Mon, 21 Jan 2008 15:00:54 +0000 (15:00 +0000)]
Use 78n line length when formatting cat pages.

17 years agoRemove redundant info that is now in sudoers.ldap.pod
Todd C. Miller [Mon, 21 Jan 2008 14:50:54 +0000 (14:50 +0000)]
Remove redundant info that is now in sudoers.ldap.pod

17 years agoReorganize the first section a bit. Substitute the proper path for
Todd C. Miller [Sun, 20 Jan 2008 21:18:56 +0000 (21:18 +0000)]
Reorganize the first section a bit.  Substitute the proper path for
/etc/sudoers.

17 years agoSubstitute values for ldap.conf, ldap.secret and nsswitch.conf
Todd C. Miller [Sun, 20 Jan 2008 15:17:35 +0000 (15:17 +0000)]
Substitute values for ldap.conf, ldap.secret and nsswitch.conf
Move schema into EXAMPLES

17 years agoSubstitute values for ldap.conf, ldap.secret and nsswitch.conf into
Todd C. Miller [Sun, 20 Jan 2008 15:15:47 +0000 (15:15 +0000)]
Substitute values for ldap.conf, ldap.secret and nsswitch.conf into
sudoers.ldap.man.

17 years agosubstitute for sudoers.ldap.man
Todd C. Miller [Sun, 20 Jan 2008 01:35:54 +0000 (01:35 +0000)]
substitute for sudoers.ldap.man

17 years agoFix cut & pasto introduced when adding sudoers.ldap man page.
Todd C. Miller [Sun, 20 Jan 2008 01:34:44 +0000 (01:34 +0000)]
Fix cut & pasto introduced when adding sudoers.ldap man page.

17 years agoFill in some of the missing pieces. Still needs some reorganization and
Todd C. Miller [Sun, 20 Jan 2008 01:25:39 +0000 (01:25 +0000)]
Fill in some of the missing pieces.  Still needs some reorganization and
editing.

17 years agoBeginnings of a sudoers.ldap man page. Currently, much of the information
Todd C. Miller [Sat, 19 Jan 2008 20:06:09 +0000 (20:06 +0000)]
Beginnings of a sudoers.ldap man page.  Currently, much of the information
is adapted from README.LDAP.

17 years agoWhen copying gr_mem we must guarantee that the storage space for
Todd C. Miller [Fri, 18 Jan 2008 22:32:52 +0000 (22:32 +0000)]
When copying gr_mem we must guarantee that the storage space for
gr_mem is properly aligned.  The simplest way to do this is to
simply store gr_mem directly after struct group.  This is not a
problem for gr_passwd or gr_name as they are simple strings.

17 years agoFix a typo/thinko in one of the calls to sudo_ldap_check_user_netgroup().
Todd C. Miller [Fri, 18 Jan 2008 21:47:05 +0000 (21:47 +0000)]
Fix a typo/thinko in one of the calls to sudo_ldap_check_user_netgroup().
From Marco van Wieringen.

17 years agoinclude <mps/ldap_ssl.h> in ldap.c if available
Todd C. Miller [Thu, 17 Jan 2008 20:44:28 +0000 (20:44 +0000)]
include <mps/ldap_ssl.h> in ldap.c if available

17 years agoMake sure we define SIZE_MAX for yacc's skeleton.c
Todd C. Miller [Wed, 16 Jan 2008 23:20:35 +0000 (23:20 +0000)]
Make sure we define SIZE_MAX for yacc's skeleton.c

17 years agoUse TCSAFLUSH when restoring terminal settings (and echo) to guarantee that any pendi...
Todd C. Miller [Wed, 16 Jan 2008 18:03:08 +0000 (18:03 +0000)]
Use TCSAFLUSH when restoring terminal settings (and echo) to guarantee that any pending output is discarded

17 years agono longer need to specify SETENV when user has sudo ALL
Todd C. Miller [Tue, 15 Jan 2008 22:18:11 +0000 (22:18 +0000)]
no longer need to specify SETENV when user has sudo ALL

17 years agosync user_args size calculation with sudo.c
Todd C. Miller [Tue, 15 Jan 2008 14:40:48 +0000 (14:40 +0000)]
sync user_args size calculation with sudo.c
Add -g group option, renaming old -g to -G
Add set_runasgr() and set_runaspw() and use them

17 years agoMake set_runaspw static void
Todd C. Miller [Tue, 15 Jan 2008 14:23:58 +0000 (14:23 +0000)]
Make set_runaspw static void

17 years agog/c set_runaspw stub
Todd C. Miller [Tue, 15 Jan 2008 14:17:31 +0000 (14:17 +0000)]
g/c set_runaspw stub

17 years agoDon't add -llber twice.
Todd C. Miller [Tue, 15 Jan 2008 12:28:33 +0000 (12:28 +0000)]
Don't add -llber twice.

17 years agofix typo
Todd C. Miller [Mon, 14 Jan 2008 11:40:08 +0000 (11:40 +0000)]
fix typo

17 years agoregen
Todd C. Miller [Sun, 13 Jan 2008 20:39:54 +0000 (20:39 +0000)]
regen

17 years agoFix check that determines whether -llber is required.
Todd C. Miller [Sun, 13 Jan 2008 19:57:34 +0000 (19:57 +0000)]
Fix check that determines whether -llber is required.

17 years agoFor netscape-based LDAP, use ldapssl_set_strength() to implement
Todd C. Miller [Sun, 13 Jan 2008 19:22:11 +0000 (19:22 +0000)]
For netscape-based LDAP, use ldapssl_set_strength() to implement
the checkpeer ldap.conf option.

17 years agoDelay krb5_cc_initialize() until we actually need to use the cred cache,
Todd C. Miller [Sun, 13 Jan 2008 14:49:43 +0000 (14:49 +0000)]
Delay krb5_cc_initialize() until we actually need to use the cred cache,
which is what krb5_verify_user() does.
Better cleanup on failure.

17 years agoRewrite verify_krb_v5_tgt() based on what heimdal's krb5_verify_user() does.
Todd C. Miller [Sat, 12 Jan 2008 17:40:43 +0000 (17:40 +0000)]
Rewrite verify_krb_v5_tgt() based on what heimdal's krb5_verify_user() does.

17 years agoThe U suffix on constants is an ANSI feature
Todd C. Miller [Wed, 9 Jan 2008 19:58:39 +0000 (19:58 +0000)]
The U suffix on constants is an ANSI feature

17 years agoAdd check for ber_set_option() in -llber
Todd C. Miller [Wed, 9 Jan 2008 17:08:30 +0000 (17:08 +0000)]
Add check for ber_set_option() in -llber

17 years agodefault if no nsswitch.conf is files only
Todd C. Miller [Mon, 7 Jan 2008 00:02:58 +0000 (00:02 +0000)]
default if no nsswitch.conf is files only

17 years agodon't tell people to mail aaron about LDAP stuff
Todd C. Miller [Sun, 6 Jan 2008 22:28:03 +0000 (22:28 +0000)]
don't tell people to mail aaron about LDAP stuff

17 years agotimelimit and bind_timelimit
Todd C. Miller [Sun, 6 Jan 2008 17:32:59 +0000 (17:32 +0000)]
timelimit and bind_timelimit

17 years agosync
Todd C. Miller [Sun, 6 Jan 2008 13:54:03 +0000 (13:54 +0000)]
sync

17 years agoMove ldap.secret reading into a separate function.
Todd C. Miller [Sun, 6 Jan 2008 12:56:46 +0000 (12:56 +0000)]
Move ldap.secret reading into a separate function.

17 years agouser_runas -> runas_pw
Todd C. Miller [Sun, 6 Jan 2008 00:09:18 +0000 (00:09 +0000)]
user_runas -> runas_pw

17 years agosync
Todd C. Miller [Sat, 5 Jan 2008 23:59:50 +0000 (23:59 +0000)]
sync

17 years agoAdd and document the %p escape in the password prompt.
Todd C. Miller [Sat, 5 Jan 2008 23:59:28 +0000 (23:59 +0000)]
Add and document the %p escape in the password prompt.
Based on a patch from Patrick Schoenfeld.

17 years agoCheck strlcpy() return values.
Todd C. Miller [Sat, 5 Jan 2008 23:25:58 +0000 (23:25 +0000)]
Check strlcpy() return values.

17 years agorefactor ldap binding code into sudo_ldap_bind_s()
Todd C. Miller [Sat, 5 Jan 2008 23:12:19 +0000 (23:12 +0000)]
refactor ldap binding code into sudo_ldap_bind_s()

17 years agoMake it clear that host and uri can take multiple parameters.
Todd C. Miller [Sat, 5 Jan 2008 21:35:25 +0000 (21:35 +0000)]
Make it clear that host and uri can take multiple parameters.
URI is now supported for more than just openldap
nsswitch.conf does't accept "compat"

17 years agocomment cleanup and update (c) year
Todd C. Miller [Sat, 5 Jan 2008 21:27:02 +0000 (21:27 +0000)]
comment cleanup and update (c) year

17 years agoMove display_privs() and display_cmnd() from parse.c to sudo_nss.c.
Todd C. Miller [Sat, 5 Jan 2008 21:25:28 +0000 (21:25 +0000)]
Move display_privs() and display_cmnd() from parse.c to sudo_nss.c.
This should make it possible to build an LDAP-only sudo binary.