* ping_group_range documentation patch (question)
@ 2013-06-07 12:56 Kevin Wilson
2013-06-08 9:59 ` Cong Wang
0 siblings, 1 reply; 2+ messages in thread
From: Kevin Wilson @ 2013-06-07 12:56 UTC (permalink / raw)
To: netdev@vger•kernel.org; +Cc: amwang, lorenzo
Hello,
There was this patch which was sent in the past (4.11.13)
and was not integrated:
http://www.linuxhorizon.com/9-linux/9871b9d326872317.htm
Now, there is no entry about /proc/sys/net/ipv4/ping_group_range in
the Documentation/networking/ip-sysctl.txt file.
When I try
echo 1000 1000 > /proc/sys/net/ipv4/ping_group_range
It does not say an error,
and then su to a user with uid and gid of 1000,
I can ping successfully using ICMP socket.
Now, when I try, according to "set enable it for the world" as mentioned
in that documentation patch, and run:
echo 0 4294967295 > /proc/sys/net/ipv4/ping_group_range
I get
-bash: echo: write error: Invalid argument
Any ideas what should I do in order to enable ICMP sockets "for all the world"
so any use can use them ? and shouldn't this be documented in
Documentation/networking/ip-sysctl.tx?
regards,
Kevin
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: ping_group_range documentation patch (question)
2013-06-07 12:56 ping_group_range documentation patch (question) Kevin Wilson
@ 2013-06-08 9:59 ` Cong Wang
0 siblings, 0 replies; 2+ messages in thread
From: Cong Wang @ 2013-06-08 9:59 UTC (permalink / raw)
To: Kevin Wilson; +Cc: netdev@vger•kernel.org, lorenzo
On Fri, 2013-06-07 at 15:56 +0300, Kevin Wilson wrote:
>
>
> Any ideas what should I do in order to enable ICMP sockets "for all the world"
> so any use can use them ? and shouldn't this be documented in
> Documentation/networking/ip-sysctl.tx?
>
GID_T_MAX is the max you can set, and it is defined as:
#define GID_T_MAX (((gid_t)~0U) >> 1)
that is 2147483647, 4294967295 is larger than it, therefore you got
EINVAL.
Yes, this should be documented, patch is welcome! :)
Thanks!
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-06-08 9:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-07 12:56 ping_group_range documentation patch (question) Kevin Wilson
2013-06-08 9:59 ` Cong Wang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox