[LTP] [PATCH] cve/cve-2017-2671.c: check if socket() supports IPPROTO_ICMP

Cyril Hrubis chrubis@suse.cz
Thu Aug 3 17:52:29 CEST 2017


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.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list