Skip to content

Commit eb02b93

Browse files
w1ldptrSaeed Mahameed
authored andcommitted
net/mlx5: Bridge, set debugfs access right to root-only
As suggested during code review set the access rights for bridge 'fdb' debugfs file to root-only. Fixes: 791eb78 ("net/mlx5: Bridge, expose FDB state via debugfs") Reported-by: Jakub Kicinski <[email protected]> Link: https://lore.kernel.org/netdev/[email protected]/ Signed-off-by: Vlad Buslov <[email protected]> Reviewed-by: Gal Pressman <[email protected]> Signed-off-by: Saeed Mahameed <[email protected]>
1 parent 39646d9 commit eb02b93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/mellanox/mlx5/core/esw/bridge_debugfs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ void mlx5_esw_bridge_debugfs_init(struct net_device *br_netdev, struct mlx5_esw_
6464

6565
bridge->debugfs_dir = debugfs_create_dir(br_netdev->name,
6666
bridge->br_offloads->debugfs_root);
67-
debugfs_create_file("fdb", 0444, bridge->debugfs_dir, bridge,
67+
debugfs_create_file("fdb", 0400, bridge->debugfs_dir, bridge,
6868
&mlx5_esw_bridge_debugfs_fops);
6969
}
7070

0 commit comments

Comments
 (0)