Standard users are usually able to retrieve interface statistics via the SIOCETHTOOL ioctl. Don't artificially prevent users to retrieve the statistics via batctl.
Signed-off-by: Sven Eckelmann sven@narfation.org --- ioctl.c | 2 -- 1 file changed, 2 deletions(-)
diff --git a/ioctl.c b/ioctl.c index 2ef4f8b..2f25dc0 100644 --- a/ioctl.c +++ b/ioctl.c @@ -105,8 +105,6 @@ int ioctl_statistics_get(char *mesh_iface) struct ifreq ifr; int fd = -1, ret = EXIT_FAILURE;
- check_root_or_die("batctl statistics"); - memset(&ifr, 0, sizeof(ifr)); strncpy(ifr.ifr_name, mesh_iface, sizeof(ifr.ifr_name)); ifr.ifr_name[sizeof(ifr.ifr_name) - 1] = '\0';