net-dns/djbdns: new revision increasing tinydns's softlimit.

The tinydns launch script imposes a "softlimit" on the amount of memory
it can use, and sometime recently (in djbdns terms, anyway), the old
default of 300000 became insufficient. We raise it 4500000. This will
only help new installations; users with existing ones will need to
modify their local launch scripts because the script itself is not
controlled by the package manager.

Thanks to Vadim Efimov for pointing out that this problem is widespread
and in need of fixing.

Closes: https://bugs.gentoo.org/883159
Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
This commit is contained in:
Michael Orlitzky
2022-12-02 08:12:12 -05:00
parent e0308e47d7
commit 0a4405074f
2 changed files with 19 additions and 0 deletions

View File

@@ -44,6 +44,7 @@ PATCHES=(
"${FILESDIR}/CVE2009-0858_0001-check-response-domain-name-length.patch"
"${FILESDIR}/CVE2012-1191_0001-ghost-domain-attack.patch"
"${FILESDIR}/AR-and-RANLIB-support.patch"
"${FILESDIR}/tinydns-softlimit.patch"
)
src_prepare() {

View File

@@ -0,0 +1,18 @@
Use a larger memory limit by default than was chosen at the beginning
of time. This is evidently necessary on many machines, including my
own, starting somewhere around December 2020.
https://bugs.gentoo.org/883159
diff -Naur a/tinydns-conf.c b/tinydns-conf.c
--- a/tinydns-conf.c 2001-02-11 21:11:45.000000000 +0000
+++ b/tinydns-conf.c 2021-11-08 17:23:06.181385437 +0000
@@ -46,7 +46,7 @@
start("run");
outs("#!/bin/sh\nexec 2>&1\nexec envuidgid "); outs(user);
- outs(" envdir ./env softlimit -d300000 ");
+ outs(" envdir ./env softlimit -d4500000 ");
outs(auto_home); outs("/bin/tinydns\n");
finish();
perm(0755);