1
0
xtables-addons/remove_flags.patch

25 lines
885 B
Diff

--- xtables-addons-3.3/extensions/pknock/xt_pknock.c 2019-03-07 10:24:08.000000000 +0100
+++ xtables-addons-3.3/extensions/pknock/xt_pknock.c 2019-08-03 12:03:23.853137954 +0200
@@ -1125,7 +1125,9 @@ static int __init xt_pknock_mt_init(void
crypto.size = crypto_shash_digestsize(crypto.tfm);
crypto.desc.tfm = crypto.tfm;
+#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 2, 0)
crypto.desc.flags = 0;
+#endif
pde = proc_mkdir("xt_pknock", init_net.proc_net);
if (pde == NULL) {
--- xtables-addons-3.3/extensions/xt_SYSRQ.c 2019-03-07 10:24:08.000000000 +0100
+++ xtables-addons-3.3/extensions/xt_SYSRQ.c 2019-08-03 12:16:23.823303357 +0200
@@ -114,7 +114,9 @@ static unsigned int sysrq_tg(const void
}
desc.tfm = sysrq_tfm;
+#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 2, 0)
desc.flags = 0;
+#endif
ret = crypto_shash_init(&desc);
if (ret != 0)
goto hash_fail;