From f7dabefaf941e6ed37f61d335b102c87be088bba Mon Sep 17 00:00:00 2001 From: Eygene Ryabinkin Date: Tue, 28 Feb 2012 15:18:49 +0400 Subject: [PATCH] security/sudo: update to 1.8.4p2 Major changes between sudo 1.8.4p2 and 1.8.4p1: * Fixed a bug introduced in Sudo 1.8.4 where insufficient space was allocated for group IDs in the LDAP filter. * Fixed a bug introduced in Sudo 1.8.4 where the path to sudo.conf was "/sudo.conf" instead of "/etc/sudo.conf". * Fixed a bug introduced in Sudo 1.8.4 which could cause a hang when I/O logging is enabled and input is from a pipe or file. Major changes between sudo 1.8.4p1 and 1.8.4: * Fixed a bug introduced in sudo 1.8.4 that broke adding to or deleting from the env_keep, env_check and env_delete lists in sudoers on some platforms. Major changes between sudo 1.8.4 and 1.8.3p2: * The -D flag in sudo has been replaced with a more general debugging framework that is configured in sudo.conf. * Fixed a false positive in visudo strict mode when aliases are in use. * Fixed a crash with "sudo -i" when a runas group was specified without a runas user. * The line on which a syntax error is reported in the sudoers file is now more accurate. Previously it was often off by a line. * Fixed a bug where stack garbage could be printed at the end of the lecture when the "lecture_file" option was enabled. * "make install" now honors the LINGUAS environment variable. * The #include and #includedir directives in sudoers now support relative paths. If the path is not fully qualified it is expected to be located in the same directory of the sudoers file that is including it. * Serbian and Spanish translations for sudo from translationproject.org. * LDAP-based sudoers may now access by group ID in addition to group name. * visudo will now fix the mode on the sudoers file even if no changes are made unless the -f option is specified. * The "use_loginclass" sudoers option works properly again. * On systems that use login.conf, "sudo -i" now sets environment variables based on login.conf. * For LDAP-based sudoers, values in the search expression are now escaped as per RFC 4515. * The plugin close function is now properly called when a login session is killed (as opposed to the actual command being killed). This can happen when an ssh session is disconnected or the terminal window is closed. * The deprecated "noexec_file" sudoers option is no longer supported. * Fixed a race condition when I/O logging is not enabled that could result in tty-generated signals (e.g. control-C) being received by the command twice. * If none of the standard input, output or error are connected to a tty device, sudo will now check its parent's standard input, output or error for the tty name on systems with /proc and BSD systems that support the KERN_PROC_PID sysctl. This allows tty-based tickets to work properly even when, e.g. standard input, output and error are redirected to /dev/null. * Added the --enable-kerb5-instance configure option to allow people using Kerberos V authentication to specify a custom instance so the principal name can be, e.g. "username/sudo" similar to how ksu uses "username/root". * Fixed a bug where a pattern like "/usr/*" included /usr/bin/ in the results, which would be incorrectly be interpreted as if the sudoers file had specified a directory. * "visudo -c" will now list any include files that were checked in addition to the main sudoers file when everything parses OK. * Users that only have read-only access to the sudoers file may now run "visudo -c". Previously, write permissions were required even though no writing is down in check-only mode. * It is now possible to prevent the disabling of core dumps from within sudo itself by adding a line to the sudo.conf file like "Set disable_coredump false". Also added bits for licensing framework. Signed-off-by: Eygene Ryabinkin --- security/sudo/Makefile | 8 ++++++-- security/sudo/distinfo | 4 ++-- .../sudo/files/patch-plugins__sudoers__Makefile.in | 6 +++--- security/sudo/pkg-plist | 2 ++ 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/security/sudo/Makefile b/security/sudo/Makefile index deb00f1..c784ce9 100644 --- a/security/sudo/Makefile +++ b/security/sudo/Makefile @@ -6,8 +6,7 @@ # PORTNAME= sudo -PORTVERSION= 1.8.3 -PORTREVISION= 2 +PORTVERSION= 1.8.4 CATEGORIES= security MASTER_SITES= ${MASTER_SITE_SUDO} DISTNAME= sudo-${PORTVERSION}p2 @@ -15,6 +14,11 @@ DISTNAME= sudo-${PORTVERSION}p2 MAINTAINER= wxs@FreeBSD.org COMMENT= Allow others to run commands as root +LICENSE= sudo +LICENSE_NAME= Sudo license +LICENSE_FILE= ${WRKSRC}/doc/LICENSE +LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept + MAKE_JOBS_SAFE= yes GNU_CONFIGURE= yes diff --git a/security/sudo/distinfo b/security/sudo/distinfo index ce14bca..a4855c5 100644 --- a/security/sudo/distinfo +++ b/security/sudo/distinfo @@ -1,2 +1,2 @@ -SHA256 (sudo-1.8.3p2.tar.gz) = 7edcf02ef4dc4f26f524726e8faaa90d7939772c186409ab150d2934e3a9ba31 -SIZE (sudo-1.8.3p2.tar.gz) = 1536943 +SHA256 (sudo-1.8.4p2.tar.gz) = b1310b8548db5ea92f3063011c0fe6e843a1f95f548a4aeae54bcc2fdfea88a9 +SIZE (sudo-1.8.4p2.tar.gz) = 1608580 diff --git a/security/sudo/files/patch-plugins__sudoers__Makefile.in b/security/sudo/files/patch-plugins__sudoers__Makefile.in index db20d5b..94852a9 100644 --- a/security/sudo/files/patch-plugins__sudoers__Makefile.in +++ b/security/sudo/files/patch-plugins__sudoers__Makefile.in @@ -2,12 +2,12 @@ +++ ./plugins/sudoers/Makefile.in 2011-04-17 09:38:29.349385961 -0400 @@ -358,9 +358,8 @@ install-sudoers: install-dirs - $(INSTALL) -d -O $(sudoers_uid) -G $(sudoers_gid) -M 0750 \ + $(INSTALL) -d -O $(sudoers_uid) -G $(sudoers_gid) -m 0750 \ $(DESTDIR)$(sudoersdir)/sudoers.d - test -r $(DESTDIR)$(sudoersdir)/sudoers || \ -- $(INSTALL) -O $(sudoers_uid) -G $(sudoers_gid) -M $(sudoers_mode) \ +- $(INSTALL) -O $(sudoers_uid) -G $(sudoers_gid) -m $(sudoers_mode) \ - sudoers $(DESTDIR)$(sudoersdir)/sudoers -+ $(INSTALL) -O $(sudoers_uid) -G $(sudoers_gid) -M $(sudoers_mode) \ ++ $(INSTALL) -O $(sudoers_uid) -G $(sudoers_gid) -m $(sudoers_mode) \ + sudoers $(DESTDIR)$(sudoersdir)/sudoers.sample uninstall: diff --git a/security/sudo/pkg-plist b/security/sudo/pkg-plist index 1471274..b3db1fb 100644 --- a/security/sudo/pkg-plist +++ b/security/sudo/pkg-plist @@ -32,6 +32,7 @@ sbin/visudo %%NLS%%share/locale/da/LC_MESSAGES/sudoers.mo %%NLS%%share/locale/eo/LC_MESSAGES/sudo.mo %%NLS%%share/locale/eo/LC_MESSAGES/sudoers.mo +%%NLS%%share/locale/es/LC_MESSAGES/sudo.mo %%NLS%%share/locale/eu/LC_MESSAGES/sudo.mo %%NLS%%share/locale/eu/LC_MESSAGES/sudoers.mo %%NLS%%share/locale/fi/LC_MESSAGES/sudo.mo @@ -42,6 +43,7 @@ sbin/visudo %%NLS%%share/locale/pl/LC_MESSAGES/sudo.mo %%NLS%%share/locale/pl/LC_MESSAGES/sudoers.mo %%NLS%%share/locale/ru/LC_MESSAGES/sudo.mo +%%NLS%%share/locale/sr/LC_MESSAGES/sudo.mo %%NLS%%share/locale/uk/LC_MESSAGES/sudo.mo %%NLS%%share/locale/uk/LC_MESSAGES/sudoers.mo %%NLS%%share/locale/zh_CN/LC_MESSAGES/sudo.mo -- 1.7.9