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 <kuba@kernel.org> Link: https://lore.kernel.org/netdev/20230619120515.5045132a@kernel.org/ Signed-off-by: Vlad Buslov <vladbu@nvidia.com> Reviewed-by: Gal Pressman <gal@nvidia.com> Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
1 parent 39646d9 commit eb02b93

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)