]> git.baikalelectronics.ru Git - kernel.git/commit
net/smc: allow unprivileged users to read pnet table
authorHans Wippel <ndev@hwipl.net>
Tue, 21 Jan 2020 00:04:46 +0000 (01:04 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Jan 2020 10:39:56 +0000 (11:39 +0100)
commit9239ad5e2d69e7c3d5a24153683a62caf9ba3d75
tree6084d457bd6cfd630df3f5ba421615ba2d9b82d4
parent43d8e904d5afa443f06163d001eb5fd7dc0cf217
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>
net/smc/smc_pnet.c