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

Commit f9fbe47c authored by Vasiliy Kulikov's avatar Vasiliy Kulikov Committed by Tony Lindgren
Browse files

mach-omap2: pm: world-writable debugfs timer files



Don't allow all users to change timer settings.

Signed-off-by: default avatarVasiliy Kulikov <segoon@openwall.com>
Acked-by: default avatarKevin Hilman <khilman@ti.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 9b12771a
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -637,14 +637,14 @@ static int __init pm_dbg_init(void)

		}

	(void) debugfs_create_file("enable_off_mode", S_IRUGO | S_IWUGO, d,
	(void) debugfs_create_file("enable_off_mode", S_IRUGO | S_IWUSR, d,
				   &enable_off_mode, &pm_dbg_option_fops);
	(void) debugfs_create_file("sleep_while_idle", S_IRUGO | S_IWUGO, d,
	(void) debugfs_create_file("sleep_while_idle", S_IRUGO | S_IWUSR, d,
				   &sleep_while_idle, &pm_dbg_option_fops);
	(void) debugfs_create_file("wakeup_timer_seconds", S_IRUGO | S_IWUGO, d,
	(void) debugfs_create_file("wakeup_timer_seconds", S_IRUGO | S_IWUSR, d,
				   &wakeup_timer_seconds, &pm_dbg_option_fops);
	(void) debugfs_create_file("wakeup_timer_milliseconds",
			S_IRUGO | S_IWUGO, d, &wakeup_timer_milliseconds,
			S_IRUGO | S_IWUSR, d, &wakeup_timer_milliseconds,
			&pm_dbg_option_fops);
	pm_dbg_init_done = 1;