Skip to content

Commit 29237d2

Browse files
Hans Wippeldavem330
authored andcommitted
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>
1 parent 3ccc897 commit 29237d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/smc/smc_pnet.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,7 @@ static const struct genl_ops smc_pnet_ops[] = {
611611
{
612612
.cmd = SMC_PNETID_GET,
613613
.validate = GENL_DONT_VALIDATE_STRICT | GENL_DONT_VALIDATE_DUMP,
614-
.flags = GENL_ADMIN_PERM,
614+
/* can be retrieved by unprivileged users */
615615
.doit = smc_pnet_get,
616616
.dumpit = smc_pnet_dump,
617617
.start = smc_pnet_dump_start

0 commit comments

Comments
 (0)