ipset 6.20 compile failure on <3.8
The openSUSE build system reports for their kernel 3.7 a FTBFS for ipset 6.20 (path abridged with a '~'):
[ 94s] CC [M] ~/kernel/net/sched/em_ipset.o [ 94s] CC [M] ~/kernel/net/netfilter/xt_set.o [ 97s] CC [M] ~/kernel/net/netfilter/ipset/ip_set_core.o [ 97s] CC [M] ~/kernel/net/netfilter/ipset/ip_set_getport.o [ 97s] ~/kernel/net/netfilter/ipset/ip_set_core.c: In function 'ip_set_sockfn_get': [ 97s] ~/kernel/net/netfilter/ipset/ip_set_core.c:1867:21: error: 'struct net' has no member named 'user_ns'
The lines 1867+ are:
if (!ns_capable(net->user_ns, CAP_NET_ADMIN))
return -EPERM;But net->user_ns is only available starting from 3.8.
Hi Jan,
Quoted 10 lines · Jan Engelhardt
The openSUSE build system reports for their kernel 3.7 a FTBFS for ipset 6.20 (path abridged with a '~'):
[ 94s] CC [M] ~/kernel/net/sched/em_ipset.o [ 94s] CC [M] ~/kernel/net/netfilter/xt_set.o [ 97s] CC [M] ~/kernel/net/netfilter/ipset/ip_set_core.o [ 97s] CC [M] ~/kernel/net/netfilter/ipset/ip_set_getport.o [ 97s] ~/kernel/net/netfilter/ipset/ip_set_core.c: In function 'ip_set_sockfn_get': [ 97s] ~/kernel/net/netfilter/ipset/ip_set_core.c:1867:21: error: 'struct net' has no member named 'user_ns'
Quoted 5 lines
The lines 1867+ are:
if (!ns_capable(net->user_ns, CAP_NET_ADMIN)) return -EPERM;But
net->user_nsis only available starting from 3.8.
I have added the compatibility checking, thanks for reporting it.
Best regards,
Jozsef
-
E-mail : [email protected], [email protected] PGP key : http://www.kfki.hu/~kadlec/pgp_public_key.txt
Address : Wigner Research Centre for Physics, Hungarian Academy of Sciences
H-1525 Budapest 114, POB. 49, Hungary