summaryrefslogtreecommitdiff
path: root/security/sudo
AgeCommit message (Collapse)AuthorFilesLines
2004-11-30Update to 1.6.8pl5.xtraeme2-6/+6
Changes: o Added a configure check for systems with a 2-argument version of timespecsub (like BSD/OS). o Added stub struct defintions to sudo.h to quiet compiler warnings on some systems. o In sudoers Defaults lines, tuples like "lecture" may now be used without a value, restoring their old boolean-like nature. o Invalid values for a tuple are now handled correctly.
2004-11-26Auto-add the options for dlopen() since we're only building a singlejlam1-1/+3
application.
2004-11-26sudo is nominated for crapware of the year. Now at version 1.6.8pl4!cube2-7/+7
Just as for pl2, changes are about environment sanitizing, meaning there are possible security issues with current versions. Changes: 550) The CDPATH variable is now stripped from the environment passed to the program to be executed. 551) Fix temp file generation on systems where the _PATH_VARTMP macro lacks a trailing slash. 552) The KRB5CCNAME environment variable is preserved during sudo execution for password lookups that use GSSAPI.
2004-11-19Honor PKG_SYSCONFDIR by looking for the LDAP configuration file injlam2-3/+4
${PKG_SYSCONFDIR}/ldap.conf (by default, /usr/pkg/etc/ldap.conf) instead of hard-coding /etc/ldap.conf. Bump the PKGREVISION.
2004-11-18The universal option to enable PAM support is "PAM" not "pam". We strivejlam1-3/+3
to use common option names were possible, so change these instances of "pam" to "PAM" to match existing usage.
2004-11-12Update to version 1.6.8pl2. Fixes a security flaw for the sad people usingcube4-9/+11
bash-as-sh (and people allowing bash scripts to be run through sudo). The user could override commands by functions of her own. ChangeLog: 549) Bash exported functions and the CDPATH variable are now stripped from the environment passed to the program to be executed.
2004-10-03Libtool fix for PR pkg/26633, and other issues. Update libtool to 1.5.10tv1-1/+2
in the process. (More information on tech-pkg.) Bump PKGREVISION and BUILDLINK_DEPENDS of all packages using libtool and installing .la files. Bump PKGREVISION (only) of all packages depending directly on the above via a buildlink3 include.
2004-09-22Mechanical changes to package PLISTs to make use of LIBTOOLIZE_PLIST.jlam1-2/+1
All library names listed by *.la files no longer need to be listed in the PLIST, e.g., instead of: lib/libfoo.a lib/libfoo.la lib/libfoo.so lib/libfoo.so.0 lib/libfoo.so.0.1 one simply needs: lib/libfoo.la and bsd.pkg.mk will automatically ensure that the additional library names are listed in the installed package +CONTENTS file. Also make LIBTOOLIZE_PLIST default to "yes".
2004-09-17Use "pl" as the magic abbreviation for "pathlevel" in the package name.agc1-1/+2
2004-09-17Update to version 1.6.8p1. This is a security update, see advisorycube3-13/+13
at: http://www.sudo.ws/sudo/alerts/sudoedit.html Major changes since Sudo 1.6.8: o Sudoedit now re-opens the temp file as the invoking user and will only open regular files. o Better detection of unchanged files in sudoedit. o The path to ldap.conf is now configurable. o Added SSL tls_* certificate checking options when using LDAP. o The sample pam config file has been updated.
2004-08-24Restore USE_LIBTOOL which was silently removed recently (hi xtraeme!).cube3-7/+17
Fix build with recent libtool. Not bumping PKGREVISION, it's in the flow of current PLIST fixes and such...
2004-08-24visudo(8) is still in ${PREFIX}/sbin, at least on NetBSD 2.0_BETA.schmonz1-2/+2
2004-08-24Add missing files.xtraeme2-4/+6
2004-08-23Update security/sudo to 1.6.8 and convert to use bsd.options.mk, whichxtraeme6-43/+44
adds two new options, ldap and pam. Changes: * Sudo now supports storing sudoers info in LDAP (optionally using TLS). * There is a new -e option to edit files the with uid of the invoking user. This makes it possible to give users to ability to safely edit files without the possibility of editing other files or running commands as the target user. If sudo is run as "sudoedit" the -e flag is implied. * A new tag, NOEXEC, will prevent a dynamically-linked program being run by sudo from executing another program (think shell escapes). Because this uses LD_PRELOAD it has no effect on static binaries. * A uid specified in sudoers now matches the user specified by the -u flag even if the -u flag specified a name, not a uid. * Added a -i option to simulate an initial login similar to "su -". * If sudo is used to run as root shell, further sudo commands will be logged as run by the user specified by the SUDO_USER environment variable. In -e mode (sudoedit), SUDO_USER is used to determine what user to run the editor when the real uid is 0. * The sudoers file is now parsed as the runas user in all cases instead of root. This fixes some issues with running NFS-mounted commands. * If the target user == invoking user a password is no longer required. * Sudo now produces a sensible error message when the targetpw Defaults option is set and a non-existent uid is specified via the -u option. * A negated user/uid in a runas list is now treated the same as a negated command and overrides a previously allowed entry. * PAM support now uses Use pam_acct_mgmt() to check for disabled accounts. * Added a check in visudo for runas_default being used before it was set. * Fixed several issues when closing all open descriptors. Sudo now uses closefrom() if it exists, otherwise it uses /proc/$$/fd if that exists with a fallback of closing all possible descriptors. * Quoting globbing characters with a backslash now works as documented. * Fixed a problem on FreeBSD (and perhaps others) when the user is only listed in NIS (not master.passwd) and netgroups are used in the master.passwd file. * The username in a log entry is no longer truncated at 8 characters. * Added a "sudo_lecture" option that can point to a file containing a custom lecture. * The timeout for password reading is now done via alarm(), not select(). * /tmp/.odus is no longer used for timestamps by default. * Sudo now works on the nsr-tandem-nsk platform. * Fixed the --with-stow configure option. * TIS fwtk authentication now supports fwtk 2.0 and higher. * Added Stan Lee / Uncle Ben quote to the lecture from RedHat. * Added the --with-pc-insults configure to replace politically incorrect insults with other ones.
2004-08-22Change the way that legacy USE_* and FOO_USE_* options are convertedjlam1-8/+1
into the bsd.options.mk framework. Instead of appending to ${PKG_OPTIONS_VAR}, it appends to PKG_DEFAULT_OPTIONS. This causes the default options to be the union of PKG_DEFAULT_OPTIONS and any old USE_* and FOO_USE_* settings. This fixes PR pkg/26590.
2004-07-30Convert to use bsd.options.mk. The relevant options variable to setjlam1-2/+13
for each package can be determined by invoking: make show-var VARNAME=PKG_OPTIONS_VAR The old options are still supported unless the variable named in PKG_OPTIONS_VAR is set within make(1) (usually via /etc/mk.conf).
2004-05-19Use -lcrypto with Heimdahl if it exists.kim3-25/+100
Fixes PR pkg/25623
2004-03-22Fix building this package with Kerberos 5 support -- the misdeclaredjlam3-6/+20
krb5_mcc_ops variable is "const" in both Heimdal and in MIT krb5.
2004-03-11The MESSAGE mentions modifying the sudoers file (and doesn'treed1-1/+3
haev location shown), so tell the admin to use the visudo tool.
2004-01-05bl3ifyjlam1-2/+4
2003-11-03Change maintainer to myself.kim1-2/+2
2003-07-17s/netbsd.org/NetBSD.org/grant1-2/+2
2003-06-02Use tech-pkg@ in favor of packages@ as MAINTAINER for orphaned packages.jschauma1-2/+2
Should anybody feel like they could be the maintainer for any of thewe packages, please adjust.
2003-05-09Update to 1.6.7p5:wiz3-21/+5
509) Fixed a typo that caused a compilation error on Heimdal. 510) Darwin (MacOS X) doesn't have a real setreuid() system call. 511) Fixed a problem with large numbers of environment variables.
2003-05-08Add patch from lha@netbsd.org to fix build when KERBEROS == 5.jwise2-1/+17
2003-05-06Drop trailing whitespace. Ok'ed by wiz.jmmv1-2/+2
2003-05-03Do not let the program's Makefile directly install the sudoers file underjmmv2-1/+20
PKG_SYSCONFDIR. This is already done by bsd.pkg.install.mk in a better way.
2003-04-22Update sudo package to 1.6.7.4 (1.6.7p4). This closes PR pkg/21256.taca2-5/+5
508) Fixed remaining Kerberos V issues with MIT Kerberos V and old Heimdal.
2003-04-07Update of security/sudo to 1.6.7p3.cjep2-5/+5
Changes since 1.6.7p2: * Kerberos V support should work on latest MIT Kerberos V and Heimdal.
2003-04-03Update sudo package to 1.6.7.2.taca2-5/+5
Changes since Sudo 1.6.7p1: o Fixed an unterminated comment that broke Kerberos V authentication. o The krb5-config script is now used to determine Kerberos V CPPFLAGS and LDFLAGS/LIBS if it exists. o Backed out changes to mkinstalldirs from autoconf 2.57 that caused problems on Tru64 Unix.
2003-04-01Update to 1.6.7p1 (1.6.7.1):wiz7-174/+34
478) Wildcards now work correctly in the env_keep Defaults directive. 479) Added support for non-root timestamp dirs. This allows the timestamp dir to be shared via NFS (though this is not recommended). 480) Removed double printing of bad environment variable table in -V mode. 481) configure script has been regenerated with autoconf 2.5.7. This required some changes to configure.in. 482) Fixed a compilation problem on SunOS; thanks to Alek O. Komarnitsky. 483) SecurID 5.0 API support from Michael Stroucken. 484) Restore state of signal handlers to what we had upon startup. Fixes a problem when using sudo with nohup; thanks to Paul Markham. 485) Revamp set_perms() to use setresuid() or setreuid() when available in preference to POSIX stuff since they allow us to properly implement "stay_setuid" whereas POSIX does not really. 486) In strict mode sudo did not throw an error for undefined User_Aliases. 487) Fixed a Makefile bug on IRIX. 488) Write the prompt *after* turning off echo to avoid some password characters being echoed on heavily-loaded machines with fast typists. 489) Added %U and %H escapes in the prompt and fixed treatment of %%. 490) Visudo will now add a final newline to sudoers if the user's editor not add one before EOF. 491) The lexer state is now reset to its initial value on EOF. Previously, the state was not reset between parser invocations which could cause problems for visudo in rare cases. 492) Added support for Defaults that apply based on the RunasUser. 493) Sudo now includes copies of strlc{at,py} and uses them throughout. 494) Sudo is now careful to avoid interger overflow when allocating memory. This is one of those "should not happen" situations. 495) Added a configure option (--with-stow) to make sudo compatible with GNU stow. 496) auth/kerb5.c now compiles under Heimdal. 497) The volatile prefix is used in the hopes of preventing compilers from optimizing away memory zeroing. Unfortunately, this results in some warnings from gcc. 498) Better Kerberos IV/V support in the configure script. 499) Fixed a logic thinko in the SIGCHLD handler that caused problems with rlogin on HP-UX. 500) configure now adds -R to LDFLAGS when it adds -L for Solaris and SVR4. There is a configure option, --with-rpath, to control this. 501) On AIX, configure will pass extra directory paths to the linker via the -blibpath ld option. This is only active when additional library paths are used. It may be disabled via the --without-blibpath configure option. 502) The --with-skey and --with-opie configure options now take an optional directory argument that should have an include and lib dir for the skey/opie include file and library respectively. 503) Fixed false positives in the overflow detection of expand_prompt().
2003-03-25grammar tweakgrant1-3/+3
2003-01-28Instead of including bsd.pkg.install.mk directly in a package Makefile,jlam1-4/+4
have it be automatically included by bsd.pkg.mk if USE_PKGINSTALL is set to "YES". This enforces the requirement that bsd.pkg.install.mk be included at the end of a package Makefile. Idea suggested by Julio M. Merino Vidal <jmmv at menta.net>.
2002-12-25Use automatic PLIST handling.grant5-12/+9
2002-09-24Complete standardization of messages according to latest pkglint.wiz1-3/+3
2002-08-25Merge packages from the buildlink2 branch back into the main trunk thatjlam3-4/+4
have been converted to USE_BUILDLINK2.
2002-06-16Undo last, was not meant to be committed.wiz1-2/+1
2002-06-16Add RCS Id.wiz3-3/+6
2002-06-16Add recognition of mipseb systems to config.sub. (thanks, jason!)wiz3-2/+24
Closes pkg/17212. While here, fix compilation with kerberos5.
2002-06-15Change USE_KERBEROS to PKG_USE_KERBEROS in pkgsrc. There was a "conflict"cjep1-2/+2
which the basesrc USE_KERBEROS variable. Discussed on packages@ This fixes PR#17182 from Takahiro Kambe. The problem was pointed out by FUKAUMI Naoki on a Japanese NetBSD mailing list.
2002-04-25Update to sudo 1.6.6 to fix local root-exploit-possibility as perjschauma2-5/+5
http://www.globalintersec.com/adv/sudo-2002041701.txt (Approved by hubertf.)
2002-01-28Correct PKGNAME not sudo-1.6.5p2 but sudo-1.6.5.2.taca1-2/+2
2002-01-24Update sudo package to 1.6.5.2 (1.6.5p2).taca2-7/+7
469) Older versions of BSDi have getifaddrs() but no freeifaddrs(). 470) BSDi has a fake setreuid() as do certain versions of FreeBSD and NetBSD. 471) Ignore the return value of pam_setcred(). In Linux-PAM 0.75, pam_setcred() will return PAM_PERM_DENIED even if the setcred function of the module succeeds when pam_authenticate() has not been called. 472) Avoid giving PAM a NULL password response, use the empty string instead. This avoids a log warning when the user hits ^C at the password prompt when Linux-PAM is in use. This also prevents older versions of Linux-PAM from dereferencing the NULL pointer. 473) The user's password was not zeroed after use when AIX authentication, BSD authentication, FWTK or PAM was in use. Sudo 1.6.5p2 released.
2002-01-18Update sudo package to 1.6.5p1. Quote from CHANGES is below.taca2-5/+6
467) Visudo could access memory that was already freed. 468) If the skey.access file denied use of plaintext passwords sudo would exit instead of allowing the user to enter an S/Key. Sudo 1.6.5p1 released.
2002-01-17Update sudo package to 1.6.5 for recent security problem.taca4-58/+46
Added --disable-root-mailer to CONFIGURE_ARGS better security. Changes from 1.6.3p7 to 1.6.5 is attached bellow. 417) Visudo now checks for the existence of an editor and gives a sensible error if it does not exist. 418) The path to the editor for visudo is now a colon-separated list of allowable editors. If the user has $EDITOR set and it matches one of the allowed editors that editor will be used. If not, the first editor that actually exists is used. 419) Visudo now does its own fork/exec instead of calling system(3). 420) Allow special characters (including '#') to be embedded in pathnames if quoted by a '\\'. The quoted chars will be dealt with by fnmatch(). Unfortunately, 'sudo -l' still prints the '\\'. 421) Added the always_set_home option. 422) Strip NLSPATH and PATH_LOCALE out from the environment to prevent reading of protected files by a less privileged user. 423) Added support for BSD authentication and associated -a flag. 424) Added check for _innetgr(3) since NCR systems have this instead of innetgr(3). 425) Added stay_setuid option for systems that have libraries that perform extra paranoia checks in system libraries for setuid programs. 426) Environment munging is now done by hand. The environment is zeroed upon sudo startup and a new environment is built before the command is executed. This means we don't rely on getenv(3), putenv(3), or setenv(3). 427) Added a class of environment variables that are only cleared if they contain '/' or '%' characters. 428) Use stashed user_gid when checking against exempt gid since sudo sets its gid to SUDOERS_GID, making getgid() return that, not the real gid. Fixes problem with setting exempt group == SUDOERS_GID. Fix from Paul Kranenburg. 429) Fixed file locking in visudo on NeXT which has a broken lockf(). Patch from twetzel@gwdg.de. 430) Regenerated configure script with autoconf-2.52 (required some tweaking of configure.in and friends). 431) Added mail_badpass option to send mail when the user does not authenticate successfully. 432) Added env_reset Defaults option to reset the environment to a clean slate. Also implemented env_keep Defaults option to specify variables to be preserved when resetting the environment. 433) Added env_check and env_delete Defaults options to allow the admin to modify the builtin list of environment variables to remove. 434) If timestamp_timeout < 0 then the timestamp never expires. This allows users to manage their own timestamps and create or delete them via 'sudo -v' and 'sudo -k' respectively. 435) Authentication routines that use sudo's tgetpass() now accept ^C or ^Z at the password prompt and sudo will act appropriately. 436) Added a check-only mode to visudo to check an existing sudoers file for sanity. 437) Visudo can now edit an alternate sudoers file. 438) If sudo is configured with S/Key support and the system has skeyaccess(3) use that to determine whether or not to allow a normal Unix password or just S/Key. 439) Fixed CIDR handling in sudoers. 440) Fixed a segv if the local hostname is not resolvable and the 'fqdn' option is set. 441) "listpw=never" was not having an effect for users who did not appear in sudoers--now it does. 442) The --without-sendmail option now works on systems with a /usr/include/paths.h file that defines _PATH_SENDMAIL. 443) Removed the "secure_path" Defaults option as it does not work and cannot work until the parser is overhauled. 444) Added new -P flag and "preserve_groups" sudoers option to cause sudo to preserve the group vector instead of setting it to that of the target user. Previously, if the target user was root the group vector was not changed. Now it is always changed unless the -P flag or "preserve_groups" option was given. 445) If find_path() fails as root, try again as the invoking user (useful for NFS). Idea from Chip Capelik. 446) Use setpwent()/endpwent() and its shadow equivalents to be sure the passwd/shadow file gets closed. 447) Use getifaddrs(3) to get the list of network interfaces if it is available. 448) Dump list of local IP addresses and environment variables to clear when 'sudo -V' is run as root. 449) Reorganized the lexer a bit and added more states. Sudo now does a better job of parsing command arguments in the sudoers file. 450) Wrap each call to syslog() with openlog()/closelog() since some things (such as PAM) may call closelog(3) behind sudo's back. 451) The LOGNAME and USER environment variables are now set if the user specified a target uid and that uid exists in the password database. 452) configure will no longer add the -g flag to CFLAGS by default. 453) Now call pam_setcreds() to setup creds for the target user when PAM is in use. On Linux this often sets resource limits. 454) If "make install" is run by non-root and the destination dir is writable, install things normally but don't set owner and mode. 455) The Makefile now supports installing in a shadow hierarchy specified via the DESTDIR variable. 456) config.h.in is now generated by autoheader. Sudo 1.6.4 released. 457) Move the call to rebuild_env() until after MODE_RESET_HOME is set. Otherwise, the set_home option has no effect. 458) Fix use of freed memory when the "fqdn" flag is set. This was introduced by the fix for the "segv when gethostbynam() fails" bug. 459) Add 'continue' statements to optimize the switch statement. From Solar Designer. Sudo 1.6.4p1 released. 460) Some special characters were not being escaped properly (e..g '\,') in command line arguments and would cause a syntax error instead. 461) "sudo -l" would not work if the always_set_home option was set. 462) Added a configure option to disable use of POSIX saved IDs for operating systems where these are broken. 463) The SHELL environment variable was preserved from the user's environment instead of being reset based on the passwd database even when the "env_reset" option was set. Sudo 1.6.4p2 released. 464) Added a configure option to cause mail sent by sudo to be run as the invoking user instead of root. Some people consider this to be safer. 465) If the mailer is being run as root, use a hard-coded environment that is not influenced in any way by the invoking user's environment. 466) Fixed the call to skeyaccess(). Patch from Phillip E. Lobbes. Sudo 1.6.5 released.
2001-12-02bsd.pkg.install.mk calls the INSTALL script at the right timesjlam1-2/+1
automatically, so no need to do it ourselves.
2001-11-25PKG_SYSCONFDIR is where the configuration files for a package may be found.jlam1-3/+3
This value may be customized in various ways: PKG_SYSCONFBASE is the main config directory under which all package configuration files are to be found. PKG_SYSCONFSUBDIR is the subdirectory of PKG_SYSCONFBASE under which the configuration files for a particular package may be found. PKG_SYSCONFDIR.${PKGBASE} overrides the value of ${PKG_SYSCONFDIR} for a particular package. Users will typically want to set PKG_SYSCONFBASE to /etc, or accept the default location of ${PREFIX}/etc. This obsoletes the use of CONFDIR, which was active for only 6 days, so no need to have a workaround to still accept old CONFDIR settings.
2001-11-19Respect ${CONFDIR} and use the general INSTALL/DEINSTALL scripts.jlam7-158/+49
2001-11-01Move pkg/ files into package's toplevel directoryzuntum9-12/+12
2001-08-02Mark as USE_BUILDLINK_ONLY.jlam1-1/+2