[LTP] [PATCH] cve/cve-2017-2671.c: check if socket() supports IPPROTO_ICMP
Xiao Yang
yangx.jy@cn.fujitsu.com
Fri Aug 4 03:00:57 CEST 2017
On 2017/08/03 23:52, Cyril Hrubis wrote:
> Hi!
>> socket() does not support IPPROTO_ICMP, and the ping_group_range file
>> does not exist in older kernels(e.g. RHEL5.11GA). these supports are
>> introduced by:
>> 'c319b4d("net: ipv4: add IPPROTO_ICMP socket kind")'
> Hm, the question is if there is a system that supports IPPROTO_ICMP
> and where the ping_group_range file is missing. Does that even happen?
>
> If not we should simplify this by exitting (tst_brk()) with TCONF if the
> ping_group_range is missing instead of doing that later on
> EPROTONOSUPPORT.
>
Hi Cyril,
Thanks for your comments. I think there is not a system that supports
IPPROTO_ICMP
and where the ping_group_range file is missing. I will simplify it as
you suggested.
Thanks,
Xiao Yang.
More information about the ltp
mailing list