Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 40b9397a authored by Samuel Ortiz's avatar Samuel Ortiz Committed by Marcel Holtmann
Browse files

Bluetooth: Fix L2CAP LE debugfs entries permissions



0466 was probably meant to be 0644, there's no reason why everyone
except root could write there.

Signed-off-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
Cc: stable@vger.kernel.org
parent 1fb4e09a
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -7519,9 +7519,9 @@ int __init l2cap_init(void)
	l2cap_debugfs = debugfs_create_file("l2cap", 0444, bt_debugfs,
	l2cap_debugfs = debugfs_create_file("l2cap", 0444, bt_debugfs,
					    NULL, &l2cap_debugfs_fops);
					    NULL, &l2cap_debugfs_fops);


	debugfs_create_u16("l2cap_le_max_credits", 0466, bt_debugfs,
	debugfs_create_u16("l2cap_le_max_credits", 0644, bt_debugfs,
			   &le_max_credits);
			   &le_max_credits);
	debugfs_create_u16("l2cap_le_default_mps", 0466, bt_debugfs,
	debugfs_create_u16("l2cap_le_default_mps", 0644, bt_debugfs,
			   &le_default_mps);
			   &le_default_mps);


	bt_6lowpan_init();
	bt_6lowpan_init();