This fixes: https://github.com/NixOS/nixpkgs/issues/119066. When `djbdns` is repeatedly queried it will crash with: ``` mmap: tinydns (842): VmData 331776 exceed data ulimit 300000. Update limits or use boot option ignore_rlimit_data. ``` So we increase the softlimit from 300000 to 4500000 as suggested in the issue. The `tinydns` NixOS test has been extended with testing for the faulty behaviour.main
parent
dd1edacb7b
commit
7a8b4907e2
@ -0,0 +1,12 @@ |
||||
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);
|
Loading…
Reference in new issue