- Sep 09, 2020
-
-
Vladimír Čunát authored
(Tiny nitpicks addressed by vcunat.)
-
- Sep 07, 2020
-
-
... in case of usage from kresd (GC does it a bit differently).
-
- Aug 07, 2020
-
-
Petr Špaček authored
It is very useful when debugging. This code gets executed only with special DEBUG policy so we do not need to worry about maximum performance.
-
- Aug 06, 2020
- Aug 05, 2020
-
-
Vladimír Čunát authored
In particular this gets rid of last light user data inside kresd. It was still causing problems on some systems, for example Debian Sid. The error was the same: "bad light userdata pointer" from luajit, but note that the problem can still be triggered by lua libraries, e.g. cqueues.
-
- Jul 16, 2020
- Jul 08, 2020
-
-
Petr Špaček authored
It was only generating noise in test logs, especially when network is not abvailable/is intentionally disabled.
-
- May 18, 2020
-
-
Attacker might generate fake NS records pointing to victim's DNS zone. If the zone contains wildcard the attacker might force us into packet exchange with a (lame) DNS server on that IP address. We now limit number of consecuctive failures and kill whole request if limit is exceeded.
-
CWE-406: Insufficient Control of Network Message Volume (Network Amplification) We now limit number of failed NS name resolution attempts for each request. This does not prevent attacker from spoofing delegations but it puts upper bound on amplification factor.
-
- May 13, 2020
-
-
Vladimír Čunát authored
Now it works again with the latest gdb-9.1. As a side effect, some simplification was possible, so that some typedefs are newly defined at once with the underlying type.
-
- May 06, 2020
-
-
Lukas Jezek authored
-
- Apr 27, 2020
- Apr 14, 2020
-
-
Vladimír Čunát authored
Otherwise people could get confusing errors like: > attempt to index field 'bg_worker' (a nil value)
- Apr 02, 2020
-
-
Vladimír Čunát authored
Some rules need it and it was nil until now.
-
- Mar 27, 2020
-
-
Vladimír Čunát authored
The new allocation approach isn't perfectly optimal, but it seems relatively easy to understand and handles OOM conditions OK (I think).
-
- Mar 26, 2020
-
-
Vladimír Čunát authored
-
- Mar 25, 2020
-
-
Petr Špaček authored
This new approach uses per-request variables in Lua and creates new callback for each DEBUG_IF call instead of each request.
-
Petr Špaček authored
It creates new callback functions for every request which uses "callback chaining" but these should be rare.
-
Petr Špaček authored
It seems there is no reason to keep this function private in policy module.
-
Petr Špaček authored
Attempt to avoid duplicating ten lines in debug_logfinish_cb lead me to splitting kr_log_qverbose_impl into two functions kr_log_q and kr_log_req. This is another minor change to API exposed to modules.
-
Petr Špaček authored
Formerly both logs used slightly different formats and duplicated code. From now on verbose log and request tracing are generated using the same code. This required a small change to request trace_log_f definition so it might affect external modules.
-
Petr Špaček authored
-
- Feb 25, 2020
-
-
These files did not have GNU GPL v3 boilderplate in them so I've added machine readable tag with appropriate license.
-
- Jan 29, 2020
-
-
Vladimír Čunát authored
-
- Jan 21, 2020
-
-
Tomas Krizek authored
-
Tomas Krizek authored
-
Tomas Krizek authored
The preconfig is used to set distro-specific values to avoid messing with user config, in partciular: - binding to control sockets under systemd - setting default cache location
-
- Jan 17, 2020
-
-
Tomas Krizek authored
-
- Jan 15, 2020
- Jan 07, 2020
-
-
It also improves error reporting from store:add() call. Sometimes the error message from lua-ossl is incomplete. This is fixed by https://github.com/wahern/luaossl/pull/176.
-
Previous code inconsistently thrown some errors and returned as string other ones, so we now return all errors as strings in classic Lua-style.
-
Lukas Jezek authored