aboutsummaryrefslogtreecommitdiffstats
path: root/net/smc
diff options
context:
space:
mode:
authorHans Wippel <ndev@hwipl.net>2020-01-21 01:04:46 +0100
committerDavid S. Miller <davem@davemloft.net>2020-01-21 11:39:56 +0100
commit29237d22bc45d340792be217f40fb728ca48b6e6 (patch)
tree6084d457bd6cfd630df3f5ba421615ba2d9b82d4 /net/smc
parentMerge branch 'phy-add-new-version-of-phy_do_ioctl-and-convert-suitable-drivers' (diff)
downloadlinux-dev-29237d22bc45d340792be217f40fb728ca48b6e6.tar.xz
linux-dev-29237d22bc45d340792be217f40fb728ca48b6e6.zip
net/smc: allow unprivileged users to read pnet table
The current flags of the SMC_PNET_GET command only allow privileged users to retrieve entries from the pnet table via netlink. The content of the pnet table may be useful for all users though, e.g., for debugging smc connection problems. This patch removes the GENL_ADMIN_PERM flag so that unprivileged users can read the pnet table. Signed-off-by: Hans Wippel <ndev@hwipl.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/smc')
-rw-r--r--net/smc/smc_pnet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/smc/smc_pnet.c b/net/smc/smc_pnet.c
index 82dedf052d86..2a5ed47c3e08 100644
--- a/net/smc/smc_pnet.c
+++ b/net/smc/smc_pnet.c
@@ -611,7 +611,7 @@ static const struct genl_ops smc_pnet_ops[] = {
{
.cmd = SMC_PNETID_GET,
.validate = GENL_DONT_VALIDATE_STRICT | GENL_DONT_VALIDATE_DUMP,
- .flags = GENL_ADMIN_PERM,
+ /* can be retrieved by unprivileged users */
.doit = smc_pnet_get,
.dumpit = smc_pnet_dump,
.start = smc_pnet_dump_start