mirror of
git://git.code.sf.net/p/xtables-addons/xtables-addons
synced 2025-09-20 03:24:56 +02:00
pknock: disallow running peer_gc too early
It is no longer possible to specify gc_expir_time with a time lower than its default value (65000 msecs). This is to avoid running peer_gc() earlier than 1 minute [well, 65 s actually] in the future, which would otherwise render anti-spoof protection in SPA mode non-functional.
This commit is contained in:

committed by
Jan Engelhardt

parent
1bc7f1be67
commit
e0276b4875
@@ -1104,6 +1104,8 @@ static struct xt_match xt_pknock_mt_reg __read_mostly = {
|
||||
|
||||
static int __init xt_pknock_mt_init(void)
|
||||
{
|
||||
if (gc_expir_time < DEFAULT_GC_EXPIRATION_TIME)
|
||||
gc_expir_time = DEFAULT_GC_EXPIRATION_TIME;
|
||||
#ifdef PK_CRYPTO
|
||||
if (request_module(crypto.algo) < 0) {
|
||||
printk(KERN_ERR PKNOCK "request_module('%s') error.\n",
|
||||
|
Reference in New Issue
Block a user