Repository : ssh://git@open-mesh.org/batctl
On branch : master
commit 10f278e8ec5fcb6592c55ad7d7f0350d6a684522 Author: Sven Eckelmann sven@narfation.org Date: Sun Jan 22 13:21:09 2017 +0100
batctl: Allow to retrieve interface stats as non-root
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 Signed-off-by: Simon Wunderlich sw@simonwunderlich.de
10f278e8ec5fcb6592c55ad7d7f0350d6a684522 ioctl.c | 2 -- 1 file changed, 2 deletions(-)
diff --git a/ioctl.c b/ioctl.c index 838e11b..832a274 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';