Commit graph

118 commits

Author SHA1 Message Date
cube
fa24fed649 Sync with latest sudo release (1.6.8pl12). The actual diff is one line
long.  PR#32378 by Stefan Krüger.

Changes:
     Added PS4 and SHELLOPTS to the list of variables to remove from
     the environment.     (Already in pkgsrc)
     Added JAVA_TOOL_OPTIONS to the list of variables to remove from
     the environment.
     Added PERLLIB, PERL5LIB and PERL5OPT to the list of variables to
     remove from the environment.     (Already in pkgsrc)
2006-01-09 15:53:40 +00:00
jlam
dc9594e09d Remove USE_PKGINSTALL from pkgsrc now that mk/install/pkginstall.mk
automatically detects whether we want the pkginstall machinery to be
used by the package Makefile.
2005-12-29 06:21:30 +00:00
reed
2688ef6242 Remove paragraph about "MAILING LISTS". 2005-12-27 19:27:48 +00:00
reed
253ef99212 Sort. 2005-12-27 18:29:18 +00:00
rillig
579e977969 Ran "pkglint --autofix", which corrected some of the quoting issues in
CONFIGURE_ARGS.
2005-12-05 23:55:01 +00:00
adrianp
8382f588a5 Update sudo to nb2 to address the recent secuity issue:
- http://www.sudo.ws/sudo/alerts/perl_env.html

- Add "PERLLIB", "PERL5LIB" and the "PERL5OPT" to the list of
  environment variables to be cleaned.
2005-11-12 14:17:45 +00:00
cube
b62e58b21b Add a patch for CVE-2005-2959: SHELLOPTS and PS4 have to be cleared from
the environment before letting the user execute bash scripts.

Bump PKGREVISION.

From Debian.
2005-10-25 22:05:55 +00:00
riz
2188d18285 When patches are updated, distinfo must be updated as well.
Hi joerg!  8-)
2005-10-11 01:53:16 +00:00
joerg
c3d20eec3a Allow sudo to properly build on DragonFly. Without the detection of
shared linking the noexec wrapper is not build.
2005-10-10 17:48:09 +00:00
rillig
44f4f508db Fixed a pkglint warning. 2005-10-07 12:53:02 +00:00
abs
937bd80bc8 check for /usr/include/skey.h on NetBSD - in case dist with MKSKEY=no 2005-08-22 10:20:33 +00:00
taca
cbe3a8804d Update PKG_OPTIONS variable "PAM" to "pam". 2005-06-22 10:30:12 +00:00
jlam
7fcf75bb22 Security update for security/sudo to 1.6.8p9. Changes from version
1.6.8p7 include:

562) Fixed noexec functionality on Linux.

564) Fixed a bug that prevented Heimdal authentication from working.

566) A sudoers entry with sudo ALL no longer overwrites the value of
     safe_cmnd.  This fixes the privilege escalation vulnerability
     noted in http://www.courtesan.com/sudo/alerts/path_race.html
2005-06-20 20:11:11 +00:00
dillo
f81ae835ad Packages have no business modifying PKG_DEFAULT_OPTIONS -- it's a
user settable variable.  Set PKG_SUGGESTED_OPTIONS instead.  Also,
make use of PKG_OPTIONS_LEGACY_VARS.

Reviewed by wiz.
2005-05-31 10:01:36 +00:00
tv
f816d81489 Remove USE_BUILDLINK3 and NO_BUILDLINK; these are no longer used. 2005-04-11 21:44:48 +00:00
cube
f51a99f68c Update to 1.6.8pl7.
Changes:

557) Added a set of missing braces needed for MacOS X / Darwin.
558) Define LDAP_OPT_SUCCESS for those without it.
559) Warn if the user tries to use the -u option when not running a command.
560) Better PAM error handling and messages.
561) Fixed setting of $USER when env_reset is enabled.
2005-03-30 12:08:15 +00:00
agc
d81d19f8e0 Add RMD160 digests. 2005-02-24 12:51:41 +00:00
kim
0dfef04fbd Remove "--disable-setreuid" -- the configure scripts seems to have
adequate logic for determining when to use setreuid.

This makes sudoedit work on NetBSD again.

Closes PR pkg/28998
2005-01-30 21:36:53 +00:00
jlam
1b5734f517 Create a pam.buildlink3.mk file that is used by PAM-using packages.
It includes the correct buildlink3.mk file from either Linux-PAM
(security/PAM) or OpenPAM (security/openpam) and eventually will
support solaris-pam.  pam.buildlink3.mk will:

	* set PAMBASE to the base directory of the PAM files;
	* set PAM_TYPE to the PAM implementation used.

There are two variables that can be used to tweak the selection of
the PAM implementation:

PAM_DEFAULT is a user-settable variable whose value is the default
	PAM implementation to use.

PAM_ACCEPTED is a package-settable list of PAM implementations
	that may be used by the package.

Modify most packages that include PAM/buildlink3.mk to include
pam.buildlink3.mk instead.
2005-01-14 05:15:39 +00:00
jlam
02e7a05425 Allow building sudo without S/Key support on NetBSD. Patch from
PR pkg/28743 by Jukka Salmi with minor changes by me.
2004-12-22 04:36:32 +00:00
jlam
2a9c112e73 Sort the options. 2004-12-22 03:59:10 +00:00
xtraeme
a431aa7332 Update to 1.6.8pl5.
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-30 00:27:10 +00:00
jlam
21983ee0c4 Auto-add the options for dlopen() since we're only building a single
application.
2004-11-26 18:26:01 +00:00
cube
590ccb09f2 sudo is nominated for crapware of the year. Now at version 1.6.8pl4!
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-26 16:23:57 +00:00
jlam
e545d1e43c Honor PKG_SYSCONFDIR by looking for the LDAP configuration file in
${PKG_SYSCONFDIR}/ldap.conf (by default, /usr/pkg/etc/ldap.conf) instead
of hard-coding /etc/ldap.conf.  Bump the PKGREVISION.
2004-11-19 23:18:01 +00:00
jlam
05ba52c71f The universal option to enable PAM support is "PAM" not "pam". We strive
to use common option names were possible, so change these instances of
"pam" to "PAM" to match existing usage.
2004-11-18 23:02:00 +00:00
cube
72a83b746a Update to version 1.6.8pl2. Fixes a security flaw for the sad people using
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-11-12 16:47:31 +00:00
tv
c487cb967a Libtool fix for PR pkg/26633, and other issues. Update libtool to 1.5.10
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-10-03 00:12:51 +00:00
jlam
1a280185e1 Mechanical changes to package PLISTs to make use of LIBTOOLIZE_PLIST.
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-22 08:09:14 +00:00
agc
7847f8610c Use "pl" as the magic abbreviation for "pathlevel" in the package name. 2004-09-17 09:45:02 +00:00
cube
875ccd9356 Update to version 1.6.8p1. This is a security update, see advisory
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-09-17 09:25:18 +00:00
cube
536e0ddf84 Restore USE_LIBTOOL which was silently removed recently (hi xtraeme!).
Fix build with recent libtool.  Not bumping PKGREVISION, it's in the flow
of current PLIST fixes and such...
2004-08-24 17:31:48 +00:00
schmonz
6064f91bc1 visudo(8) is still in ${PREFIX}/sbin, at least on NetBSD 2.0_BETA. 2004-08-24 16:43:18 +00:00
xtraeme
748f9e643a Add missing files. 2004-08-24 09:19:16 +00:00
xtraeme
bb6feecffc Update security/sudo to 1.6.8 and convert to use bsd.options.mk, which
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-23 21:15:17 +00:00
jlam
9d5426ff76 Change the way that legacy USE_* and FOO_USE_* options are converted
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-08-22 19:32:51 +00:00
jlam
b460ce1ab5 Convert to use bsd.options.mk. The relevant options variable to set
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-07-30 21:05:41 +00:00
kim
aecc988438 Use -lcrypto with Heimdahl if it exists.
Fixes PR pkg/25623
2004-05-19 19:26:38 +00:00
jlam
40372bf47b Fix building this package with Kerberos 5 support -- the misdeclared
krb5_mcc_ops variable is "const" in both Heimdal and in MIT krb5.
2004-03-22 08:45:56 +00:00
reed
9c5adc6fea The MESSAGE mentions modifying the sudoers file (and doesn't
haev location shown), so tell the admin to use the visudo tool.
2004-03-11 23:33:09 +00:00
jlam
22645a942c bl3ify 2004-01-05 11:28:07 +00:00
kim
f1e225f085 Change maintainer to myself. 2003-11-03 22:43:37 +00:00
grant
ca3be631f2 s/netbsd.org/NetBSD.org/ 2003-07-17 22:50:55 +00:00
jschauma
e366d0c694 Use tech-pkg@ in favor of packages@ as MAINTAINER for orphaned packages.
Should anybody feel like they could be the maintainer for any of thewe packages,
please adjust.
2003-06-02 01:15:31 +00:00
wiz
164b721135 Update to 1.6.7p5:
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-09 08:29:14 +00:00
jwise
73357897ce Add patch from lha@netbsd.org to fix build when KERBEROS == 5. 2003-05-08 18:08:38 +00:00
jmmv
f1446ddf2b Drop trailing whitespace. Ok'ed by wiz. 2003-05-06 17:40:18 +00:00
jmmv
ba64a08666 Do not let the program's Makefile directly install the sudoers file under
PKG_SYSCONFDIR.  This is already done by bsd.pkg.install.mk in a better way.
2003-05-03 18:27:46 +00:00
taca
5ad6718994 Update sudo package to 1.6.7.4 (1.6.7p4). This closes PR pkg/21256.
508) Fixed remaining Kerberos V issues with MIT Kerberos V and old Heimdal.
2003-04-22 02:19:12 +00:00
cjep
4411f47d3d Update of security/sudo to 1.6.7p3.
Changes since 1.6.7p2:
* Kerberos V support should work on latest MIT Kerberos V and Heimdal.
2003-04-07 10:44:14 +00:00