summaryrefslogtreecommitdiff
path: root/security/sudo
AgeCommit message (Collapse)AuthorFilesLines
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
2001-07-13In package Makefiles, create FILES_SUBST instead of duplicating sedjlam3-12/+40
expression for substituting in DEINSTALL/INSTALL scripts. Use "${CMP} -s" instead of "diff -q" since the former is more portable across OSes.
2001-06-26Remove build time dependency on autoconf by adding a patch for configure.wiz3-9/+72
Fixes pkg/13004.
2001-04-19Move to sha1 digests, add distfile sizes.agc1-1/+2
2001-04-17+ move the distfile digest/checksum value from files/md5 to distinfoagc3-8/+6
+ move the patch digest/checksum values from files/patch-sum to distinfo
2001-04-08upgrade to 1.6.3p7. p6 is no longer available.itojun2-4/+4
416) Fix negation of path-type Defaults entries in a boolean context.
2001-03-27Change BUILD_DEPENDS semantics:hubertf1-2/+2
first component is now a package name+version/pattern, no more executable/patchname/whatnot. While there, introduce BUILD_USES_MSGFMT as shorthand to pull in devel/gettext unless /usr/bin/msgfmt exists (i.e. on post-1.5 -current). Patch by Alistair Crooks <agc@netbsd.org>
2001-03-04turn KERBEROS into a binary switchassar1-11/+4
2001-02-23upgrade to 1.6.3p6. (security fix)itojun2-4/+4
415) Fix word splitting bug that caused a segv for very long command line args.
2001-02-17Update to new COMMENT style: COMMENT var in Makefile instead of pkg/COMMENT.wiz2-2/+2
2001-02-05Use full pathname "${LOCALBASE}/bin/auto..." in dependences and maketron1-3/+3
targets. This includes a fix for PR pkg/12125 by Tomasz Luchowski.
2001-01-29Add automatic ${VARIABLE} handling for MESSAGE files.wiz2-8/+3
Convert most MESSAGE files to new syntax (${VARIABLE} gets replaced, not @VARIABLE@, nor @@VARIABLE@@). By default, substitutions are done for LOCALBASE, PKGNAME, PREFIX, X11BASE, X11PREFIX; additional patterns can be added via MESSAGE_SUBST. Clean up some packages while I'm there; add RCS tags to most MESSAGEs. Remove some uninteresting MESSAGEs.
2000-12-06Look for build dependency in path instead.jlam1-2/+2
2000-12-06* Cosmetic changes to Makefile.jlam5-35/+159
* Use DEINSTALL/INSTALL scripts to handle config files. * Install the UPGRADE file and add a MESSAGE file to refer to it, instead of spewing a big file every time sudo is installed.
2000-12-05Update sudo to 1.6.3p5. Changes from version 1.6.3p4:jlam2-4/+4
* Fixed listpw and verifypw sudoers options. * Do not write NUL when writing passwd prompt.
2000-08-10Don't syslog krb5_init_context() failure. It can happen ifthorpej2-7/+17
Kerberos is simply not configured on the system.
2000-08-10Make this work with Heimdal Kerberos 5. Requires fleshed-out MCCthorpej3-5/+48
support in Heimdal.
2000-08-09Remove a commend/if clause which turns out to not actuallythorpej1-4/+1
be true.
2000-07-26Make it work on Solaris.veego4-5/+13
2000-06-06Update to 1.6.3p4. Notable changes:mjl4-22/+13
393) Users in the 'exempt' group shouldn't get their $PATH overridden by 'secure-path'. Patch from jmknoble@pobox.com. 395) Fixed a bug that caused an infinite loop when the password timeout was disabled. 396) It is now possible to set the path to the editor for visudo as well as the flag that determines whether or not visudo will look at $EDITOR in the sudoers file. 398) Added rootpw, runaspw, and targetpw to prompt for the root, runas_default and target user's passwords respectively (instead of the invoking user's password). 399) Added -S flag to force password read from stdin. 400) Restore coredumpsize resource limit before exec'ing the child process (sudo sets it to 0 internally). 404) Fixed a bug where sudo would hang around and consume CPU if we spawn a long-running process. 406) Added set_logname run-time option. When unset, sudo will not set the USER and LOGNAME environment variables. 407) Wildcards are now allowed in the hostnames specified in sudoers. The 'fqdn' option is often required for this to be useful. 408) Fixed a bug where host and user qualifiers in a Defaults entry were not being used correctly and the entry was being applied globally. 409) Fixed targetpw, rootpw, and runaspw options when used with non-passwd authentication (pam, etc). 410) When the targetpw flag is set, use the target username as part of the timestamp path. 411) Fixed a bug that prevented the -H option from being useful. 412) Fixed a case where a string was used after it has been freed.
2000-02-28Only enable Kerberos 5 support if USE_HEIMDAL is set; sudo uses APIthorpej1-1/+4
features present in Heimdal but NOT present in MIT Kerberos (one more reason to ditch MIT, I guess).
2000-02-27Find krb5 includes/libraries as installed in a crypto-aware NetBSDthorpej2-13/+35
installation. Still doesn't work; MIT Kerberos 5 is missing some calls that sudo wants (tho Heimdal has them).
2000-01-28Update to sudo-1.6.2p1. Changes from 1.6.2 (committed yesterday!):jlam2-5/+7
393) Users in the 'exempt' group shouldn't get their $PATH overridden by 'secure-path'. Patch from jmknoble@pobox.com. 394) Pam now works on HP-UX 11.0, thanks to Jeff A. Earickson.
2000-01-28Update to sudo-1.6.2. This is a bugfix release over sudo-1.6.1.jlam2-4/+4
Changes from Sudo 1.6.1: 383) Better behavior for -l and -v flags in conjunction with NOPASSWD and added "verifypw" and "listpw" options. 384) For HP-UX with cc, add the -Aa flag along with -D_HPUX_SOURCE. 385) Fix compilation with K&R compilers. 386) For netgroup host matching, match against the short version of the hostname as well as the long one if they are different. 387) Terminate passwd reading on '\r' in addition to '\n' 388) Visudo used to loop endlessly if a user entered ^D at the whatnow prompt. EOF is now treaded as 'x' (exit w/o saving changes). 389) The 'shell_noargs' runtime option is back based on a patch from bguillory@email.com. 390) Systems that return RLIM_INFINITY for RLIMIT_NOFILE (like AIX) would loop for a very loing time during sudo startup. A value of RLIM_INFINITY is now ignored (getdtablesize/sysconf is used instead). 391) Locking in visudo was broken. We now lock the sudoers file, not the sudoers temp file, which should be safe. 392) PAM fixups: custom prompts now work correctly and errors are dealt with more sanely. Patches from Cloyce D. Spradling.
2000-01-05Strip trailing '.', and/or leading '(a|an) 'abs1-1/+1
1999-12-30CHANGESjlam7-115/+54
1999-09-14Change how Kerberos support is enabled in pkgsrc.kim1-5/+9
Quick guide for compiling packages: - set KERBEROS=4 or KERBEROS=5 in /etc/mk.conf Quick guide for configuring Kerberos support in a package Makefile: - test for KERBEROS value and enable the appropriate version with CONFIGURE_ARGS or other means and set USE_KERBEROS=yes - make sure to disable Kerberos support otherwise (especially if using configure, which might automatically detect it) - BUILD_DEFS and RESTRICTED are set automatically in bsd.pkg.mk when USE_KERBEROS=yes is set
1999-09-13Got some coffee, feel much better now. Thank you.kim1-3/+3
1999-09-13Add Kerberos V support, record Kerberos options.kim1-1/+7
1999-09-13Use Kerberos IV where appropriate.kim1-5/+10
1999-08-31Update sudo to 1.5.9p4. It's the latest stable security release.jlam10-3526/+63
1999-07-09Add package patch checksum files.agc1-0/+8
1999-05-09Update sudo to 1.5.9p1.frueauf4-1072/+1600
1999-03-30Make this work on Solaris.agc1-2/+16
Substitute ${LOCALBASE} for the hardcoded value in the manual pages.
1999-02-20Fix CONFLICTS (remove redundancy, mostly)hubertf1-3/+1