programs have no business writing to these files, wrapper scripts must
be used through sudo. This is because cpufreq needs to be poked for
cpu_mhz_max and display must be disabled when writing to sys_mhz_max,
othwise the system may crash.
{
struct proc_dir_entry *pret;
- pret = create_proc_entry(name, S_IWUGO | S_IRUGO, NULL);
+ pret = create_proc_entry(name, S_IWUSR | S_IRUGO, NULL);
if (pret == NULL) {
proc_mkdir(PROC_DIR, NULL);
- pret = create_proc_entry(name, S_IWUGO | S_IRUGO, NULL);
+ pret = create_proc_entry(name, S_IWUSR | S_IRUGO, NULL);
if (pret == NULL) {
pr_err("%s: failed to create proc file %s\n",
__func__, name);