Sending ECHO_REQUEST (pinging) with python

Nick Craig-Wood nick at
Tue Mar 27 07:34:45 CEST 2007

Jean-Paul Calderone <exarkun at> wrote:
>  On Mon, 26 Mar 2007 16:50:33 +0200, Thomas Dybdahl Ahle <lobais at> wrote:
> >Den Mon, 26 Mar 2007 06:30:04 -0500 skrev Nick Craig-Wood:
> >> Under linux the only priviledge you need is CAP_NET_RAW.  It is possible
> >> to give this to a process - a bit of searching with google will show you
> >> how!
> >
> >How, I did google, but I wasn't able to find any way to do this in
> >python..
>  You need a sendmsg wrapper (there are several, none in the stdlib), then
>  you need a privileged process which is willing to give you the privilege.
>  It's pretty inconvenient.

You start a user process with an extra capability using want using
libcap and the execcap and sucap tools.

Nick Craig-Wood <nick at> --

More information about the Python-list mailing list