forked from pool/xtables-addons
Accepting request 724378 from home:adkorte:branches:openSUSE:Factory
Kernel 5.2 removed the flags field from the crypto shash_desc struct OBS-URL: https://build.opensuse.org/request/show/724378 OBS-URL: https://build.opensuse.org/package/show/security:netfilter/xtables-addons?expand=0&rev=128
This commit is contained in:
parent
3c32d7edfa
commit
5ddec3de5b
24
remove_flags.patch
Normal file
24
remove_flags.patch
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
--- 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;
|
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Aug 4 10:29:06 UTC 2019 - Arjen de Korte <suse+build@de-korte.org>
|
||||||
|
|
||||||
|
- Remove unused variable 'flags' from 'struct shash_desc'
|
||||||
|
* Support for Linux 5.2 (add remove_flags.patch)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Mar 7 09:22:45 UTC 2019 - Jan Engelhardt <jengelh@inai.de>
|
Thu Mar 7 09:22:45 UTC 2019 - Jan Engelhardt <jengelh@inai.de>
|
||||||
|
|
||||||
|
@ -30,6 +30,7 @@ Source: http://downloads.sf.net/%name/%name-%version.tar.xz
|
|||||||
Source2: http://downloads.sf.net/%name/%name-%version.tar.asc
|
Source2: http://downloads.sf.net/%name/%name-%version.tar.asc
|
||||||
Source3: %name-preamble
|
Source3: %name-preamble
|
||||||
Source4: %name.keyring
|
Source4: %name.keyring
|
||||||
|
Patch0: remove_flags.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildRequires: %kernel_module_package_buildreqs
|
BuildRequires: %kernel_module_package_buildreqs
|
||||||
BuildRequires: kernel-syms >= 4.15
|
BuildRequires: kernel-syms >= 4.15
|
||||||
@ -71,6 +72,7 @@ main kernel/iptables packages.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%patch0 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
pushd ../
|
pushd ../
|
||||||
|
Loading…
Reference in New Issue
Block a user