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

Commit 02d55287 authored by Nikhilesh Reddy's avatar Nikhilesh Reddy
Browse files

uio: msm_sharedmem: Restrict debugfs write to root.



Restrict the write permissions to the debugfs entries
only to the root user and set the permissions as 0200.

Change-Id: I5339cf531de7b26dacffe5c3e9010ee892193bb1
Signed-off-by: default avatarNikhilesh Reddy <reddyn@codeaurora.org>
parent 093d9369
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -333,13 +333,13 @@ static void debugfs_init(void)
		return;
	}

	f_ent = debugfs_create_file("rfsa", 0222, dir_ent, NULL, &rfsa_fops);
	f_ent = debugfs_create_file("rfsa", 0200, dir_ent, NULL, &rfsa_fops);
	if (IS_ERR(f_ent)) {
		pr_err("Failed to create debug_fs rfsa file");
		return;
	}

	f_ent = debugfs_create_file("rmts", 0222, dir_ent, NULL, &rmts_fops);
	f_ent = debugfs_create_file("rmts", 0200, dir_ent, NULL, &rmts_fops);
	if (IS_ERR(f_ent)) {
		pr_err("Failed to create debug_fs rmts file");
		return;