public inbox for linux-man@vger.kernel.org
 help / color / mirror / Atom feed
* IPPROTO_ICMP
@ 2016-12-03  4:58 Kees Cook
       [not found] ` <CAGXu5jLwj7p_ueaz-vEH_MJLC_xxwpXUT_GFLAnMOvdh7HUxmQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Kees Cook @ 2016-12-03  4:58 UTC (permalink / raw)
  To: linux-man

Hi,

So, while playing with IPPROTO_ICMP[1], I rediscovered the sysctl
needed to use it, and went to make sure that it was covered in the
man-pages. It is, in man.7 (ping_group_range), though there is no
mention of IPPROTO_ICMP there. Also, it seems that socket.2 says to
either look at protocols.5 (which just talks about the file) or ip.7
for AF_INET. ip.7 says:

       udp_socket = socket(AF_INET, SOCK_DGRAM, 0);

And continues to make assumptions that IPPROTO_ICMP doesn't exist:
"SOCK_DGRAM to  open a  udp(7) socket", "The  only  valid  values  for
protocol  are ... 0 and IPPROTO_UDP", etc. Additionally, EACCESS is
missing the error condition for not having ping_group_range set
correctly.

Does it make sense to put IPPROTO_ICMP details in ip.7? Or is there a
better place to list it? Are there additional details beyond what I
pointed out that should be updated in ip.7?

Thanks!

-Kees

[1] https://lwn.net/Articles/443051/

-- 
Kees Cook
Nexus Security
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: IPPROTO_ICMP
       [not found] ` <CAGXu5jLwj7p_ueaz-vEH_MJLC_xxwpXUT_GFLAnMOvdh7HUxmQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2016-12-03 12:43   ` walter harms
       [not found]     ` <5842BDE4.3010204-fPG8STNUNVg@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: walter harms @ 2016-12-03 12:43 UTC (permalink / raw)
  To: Kees Cook; +Cc: linux-man



Am 03.12.2016 05:58, schrieb Kees Cook:
> Hi,
> 
> So, while playing with IPPROTO_ICMP[1], I rediscovered the sysctl
> needed to use it, and went to make sure that it was covered in the
> man-pages. It is, in man.7 (ping_group_range), though there is no
> mention of IPPROTO_ICMP there. Also, it seems that socket.2 says to
> either look at protocols.5 (which just talks about the file) or ip.7
> for AF_INET. ip.7 says:
> 
>        udp_socket = socket(AF_INET, SOCK_DGRAM, 0);
> 
> And continues to make assumptions that IPPROTO_ICMP doesn't exist:
> "SOCK_DGRAM to  open a  udp(7) socket", "The  only  valid  values  for
> protocol  are ... 0 and IPPROTO_UDP", etc. Additionally, EACCESS is
> missing the error condition for not having ping_group_range set
> correctly.
> 
> Does it make sense to put IPPROTO_ICMP details in ip.7? Or is there a
> better place to list it? Are there additional details beyond what I
> pointed out that should be updated in ip.7?
> 
> Thanks!
> 
> -Kees
> 
> [1] https://lwn.net/Articles/443051/
> 

Interesting, i have never heard about it.
But i would suggest this as a special chapter in ICMP(7).

When I would search for information about ping, i would go to icmp
not to IP.


re,
 wh

--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: IPPROTO_ICMP
       [not found]     ` <5842BDE4.3010204-fPG8STNUNVg@public.gmane.org>
@ 2016-12-03 14:15       ` Michael Kerrisk (man-pages)
       [not found]         ` <5e52b0bd-6465-7432-8e79-3c835627d73d-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Michael Kerrisk (man-pages) @ 2016-12-03 14:15 UTC (permalink / raw)
  To: wharms-fPG8STNUNVg, Kees Cook
  Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w, linux-man

On 12/03/2016 01:43 PM, walter harms wrote:
> 
> 
> Am 03.12.2016 05:58, schrieb Kees Cook:
>> Hi,
>>
>> So, while playing with IPPROTO_ICMP[1], I rediscovered the sysctl
>> needed to use it, and went to make sure that it was covered in the
>> man-pages. It is, in man.7 (ping_group_range), though there is no
>> mention of IPPROTO_ICMP there. Also, it seems that socket.2 says to
>> either look at protocols.5 (which just talks about the file) or ip.7
>> for AF_INET. ip.7 says:
>>
>>        udp_socket = socket(AF_INET, SOCK_DGRAM, 0);
>>
>> And continues to make assumptions that IPPROTO_ICMP doesn't exist:
>> "SOCK_DGRAM to  open a  udp(7) socket", "The  only  valid  values  for
>> protocol  are ... 0 and IPPROTO_UDP", etc. Additionally, EACCESS is
>> missing the error condition for not having ping_group_range set
>> correctly.
>>
>> Does it make sense to put IPPROTO_ICMP details in ip.7? Or is there a
>> better place to list it? Are there additional details beyond what I
>> pointed out that should be updated in ip.7?
>>
>> Thanks!
>>
>> -Kees
>>
>> [1] https://lwn.net/Articles/443051/
>>
> 
> Interesting, i have never heard about it.
> But i would suggest this as a special chapter in ICMP(7).
> 
> When I would search for information about ping, i would go to icmp
> not to IP.

Yes, icmp(7) would be the right place I think.

Do yo plan to write a patch, Kees?

Cheers,

Michael



-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: IPPROTO_ICMP
       [not found]         ` <5e52b0bd-6465-7432-8e79-3c835627d73d-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
@ 2016-12-03 20:06           ` Kees Cook
  0 siblings, 0 replies; 4+ messages in thread
From: Kees Cook @ 2016-12-03 20:06 UTC (permalink / raw)
  To: Michael Kerrisk (man-pages); +Cc: wharms-fPG8STNUNVg, linux-man

On Sat, Dec 3, 2016 at 6:15 AM, Michael Kerrisk (man-pages)
<mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> On 12/03/2016 01:43 PM, walter harms wrote:
>>
>>
>> Am 03.12.2016 05:58, schrieb Kees Cook:
>>> Hi,
>>>
>>> So, while playing with IPPROTO_ICMP[1], I rediscovered the sysctl
>>> needed to use it, and went to make sure that it was covered in the
>>> man-pages. It is, in man.7 (ping_group_range), though there is no
>>> mention of IPPROTO_ICMP there. Also, it seems that socket.2 says to
>>> either look at protocols.5 (which just talks about the file) or ip.7
>>> for AF_INET. ip.7 says:
>>>
>>>        udp_socket = socket(AF_INET, SOCK_DGRAM, 0);
>>>
>>> And continues to make assumptions that IPPROTO_ICMP doesn't exist:
>>> "SOCK_DGRAM to  open a  udp(7) socket", "The  only  valid  values  for
>>> protocol  are ... 0 and IPPROTO_UDP", etc. Additionally, EACCESS is
>>> missing the error condition for not having ping_group_range set
>>> correctly.
>>>
>>> Does it make sense to put IPPROTO_ICMP details in ip.7? Or is there a
>>> better place to list it? Are there additional details beyond what I
>>> pointed out that should be updated in ip.7?
>>>
>>> Thanks!
>>>
>>> -Kees
>>>
>>> [1] https://lwn.net/Articles/443051/
>>>
>>
>> Interesting, i have never heard about it.
>> But i would suggest this as a special chapter in ICMP(7).
>>
>> When I would search for information about ping, i would go to icmp
>> not to IP.
>
> Yes, icmp(7) would be the right place I think.
>
> Do yo plan to write a patch, Kees?

Yeah, I can. I wanted to know where to put the bulk of it. I think
some minor reorganization of ip.7 is needed too (to account for
SOCK_DRAM not being only UDP with AF_INET).

-Kees

-- 
Kees Cook
Nexus Security
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-12-03 20:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-03  4:58 IPPROTO_ICMP Kees Cook
     [not found] ` <CAGXu5jLwj7p_ueaz-vEH_MJLC_xxwpXUT_GFLAnMOvdh7HUxmQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-12-03 12:43   ` IPPROTO_ICMP walter harms
     [not found]     ` <5842BDE4.3010204-fPG8STNUNVg@public.gmane.org>
2016-12-03 14:15       ` IPPROTO_ICMP Michael Kerrisk (man-pages)
     [not found]         ` <5e52b0bd-6465-7432-8e79-3c835627d73d-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2016-12-03 20:06           ` IPPROTO_ICMP Kees Cook

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox