libexplain  1.4.D001
Defines | Functions
libexplain/capability/net_admin.c File Reference
#include <libexplain/ac/sys/capability.h>
#include <libexplain/capability.h>

Go to the source code of this file.

Defines

#define CAP_NET_ADMIN   42

Functions

int explain_capability_net_admin (void)

Define Documentation

#define CAP_NET_ADMIN   42

Definition at line 25 of file net_admin.c.


Function Documentation

The explain_capability_net_admin function may be used to determine whether or not the process has the CAP_NET_ADMIN capability

Allow interface configuration Allow administration of IP firewall, masquerading and accounting Allow setting debug option on sockets Allow modification of routing tables Allow setting arbitrary process / process group ownership on sockets Allow binding to any address for transparent proxying Allow setting TOS (type of service) Allow setting promiscuous mode Allow clearing driver statistics Allow multicasting Allow read/write of device-specific registers Allow activation of ATM control sockets

Returns:
int; non-zero (true) if have the capability, zero (false) if not

Definition at line 30 of file net_admin.c.