pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/security/sudo Don't touch RLIMIT_STACK for now, see ht...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/78c0018604f7
branches:  trunk
changeset: 345832:78c0018604f7
user:      kim <kim%pkgsrc.org@localhost>
date:      Thu Dec 19 16:59:44 2019 +0000

description:
Don't touch RLIMIT_STACK for now, see https://gnats.netbsd.org/51158

diffstat:

 security/sudo/Makefile                   |   4 ++--
 security/sudo/distinfo                   |   4 ++--
 security/sudo/patches/patch-src_limits.c |  15 +++++++++------
 3 files changed, 13 insertions(+), 10 deletions(-)

diffs (76 lines):

diff -r cad037018c47 -r 78c0018604f7 security/sudo/Makefile
--- a/security/sudo/Makefile    Thu Dec 19 15:45:03 2019 +0000
+++ b/security/sudo/Makefile    Thu Dec 19 16:59:44 2019 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.172 2019/12/18 15:56:10 kim Exp $
+# $NetBSD: Makefile,v 1.173 2019/12/19 16:59:44 kim Exp $
 
 DISTNAME=      sudo-1.8.29
-PKGREVISION=   1
+PKGREVISION=   2
 CATEGORIES=    security
 MASTER_SITES=  https://www.sudo.ws/dist/
 MASTER_SITES+= ftp://ftp.sudo.ws/pub/sudo/
diff -r cad037018c47 -r 78c0018604f7 security/sudo/distinfo
--- a/security/sudo/distinfo    Thu Dec 19 15:45:03 2019 +0000
+++ b/security/sudo/distinfo    Thu Dec 19 16:59:44 2019 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.105 2019/12/18 15:56:10 kim Exp $
+$NetBSD: distinfo,v 1.106 2019/12/19 16:59:44 kim Exp $
 
 SHA1 (sudo-1.8.29.tar.gz) = fdce342856f1803478eb549479190370001dca95
 RMD160 (sudo-1.8.29.tar.gz) = 706c7c8ec2a90b2e464e138384335b7de91d1c25
@@ -15,4 +15,4 @@
 SHA1 (patch-plugins_sudoers_starttime.c) = acec2f8a96041381582acff4928233568411f2c6
 SHA1 (patch-plugins_sudoers_sudoers.c) = b5aa8a91da50d4b12ea47cd92e29d25ea325b52c
 SHA1 (patch-src_Makefile.in) = cc6398a810dc394d8e4b50f2b2412cda839c0ca9
-SHA1 (patch-src_limits.c) = d602eb79fd61ae140e3d5eab357c704edc923519
+SHA1 (patch-src_limits.c) = 790c64fed4a4f406ce07b3d0e806866095c0a5ca
diff -r cad037018c47 -r 78c0018604f7 security/sudo/patches/patch-src_limits.c
--- a/security/sudo/patches/patch-src_limits.c  Thu Dec 19 15:45:03 2019 +0000
+++ b/security/sudo/patches/patch-src_limits.c  Thu Dec 19 16:59:44 2019 +0000
@@ -1,13 +1,14 @@
-$NetBSD: patch-src_limits.c,v 1.1 2019/12/18 15:56:11 kim Exp $
+$NetBSD: patch-src_limits.c,v 1.2 2019/12/19 16:59:44 kim Exp $
 
+* Disable RLIMIT_STACK on NetBSD, see https://gnats.netbsd.org/51158
 * Indicate the name of the resource for which setrlimit fails.
 * Simplify resource limit fallback logic a bit.
 * Don't set the RLIMIT_STACK soft/hard limits to unlimited.
 * macOS does not allow rlim_cur to be set to RLIM_INFINITY for RLIMIT_NOFILE.
 
 --- src/limits.c.orig  2019-10-28 14:28:52.000000000 +0200
-+++ src/limits.c       2019-12-18 17:22:45.500245697 +0200
-@@ -37,28 +37,46 @@
++++ src/limits.c       2019-12-19 18:52:11.232251175 +0200
+@@ -37,28 +37,48 @@
  #ifdef __linux__
  # include <sys/prctl.h>
  #endif
@@ -57,13 +58,15 @@
  #ifdef RLIMIT_RSS
 -    { RLIMIT_RSS },
 +    { "RLIMIT_RSS", RLIMIT_RSS, false, NULL, { RLIM_INFINITY, RLIM_INFINITY } },
++#endif
++#ifndef __NetBSD__
++    { "RLIMIT_STACK", RLIMIT_STACK, false, &stack_fallback, { 8192 * 1024, RLIM_INFINITY } }
  #endif
 -    { RLIMIT_STACK }
-+    { "RLIMIT_STACK", RLIMIT_STACK, false, &stack_fallback, { 8192 * 1024, RLIM_INFINITY } }
  };
  
  static struct rlimit corelimit;
-@@ -160,21 +178,39 @@
+@@ -160,21 +180,39 @@
  void
  unlimit_sudo(void)
  {
@@ -110,7 +113,7 @@
        }
      }
  
-@@ -194,8 +230,8 @@
+@@ -194,8 +232,8 @@
      for (idx = 0; idx < nitems(saved_limits); idx++) {
        struct saved_limit *lim = &saved_limits[idx];
        if (lim->saved) {



Home | Main Index | Thread Index | Old Index