]> git.baikalelectronics.ru Git - kernel.git/commit
drop_monitor: Require CAP_NET_ADMIN for drop monitor configuration
authorIdo Schimmel <idosch@mellanox.com>
Sun, 11 Aug 2019 07:35:49 +0000 (10:35 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sun, 11 Aug 2019 17:53:30 +0000 (10:53 -0700)
commit78148ba7e9ac49727a03b4c9690b0504a250d986
tree2eedefd8b42ec9ec812d959448a17caf2a200e0c
parent2b189dcaf90d81b61f8be5756323c273c1f2dfdb
drop_monitor: Require CAP_NET_ADMIN for drop monitor configuration

Currently, the configure command does not do anything but return an
error. Subsequent patches will enable the command to change various
configuration options such as alert mode and packet truncation.

Similar to other netlink-based configuration channels, make sure only
users with the CAP_NET_ADMIN capability set can execute this command.

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/drop_monitor.c