Re: /sys/ file access

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 17 July 2013 03:44, kernel kernel <kernel@xxxxxxxxxxxxx> wrote:
> Apologies,
>
> I gave the wrong filename. I'm attempting to read
>
> -r-------- 1 root root 4096 Jul 16 21:03 cpuinfo_cur_freq
>
> as an unprivileged user. Why is this not world readable by default?

This one actually reads the values directly from the hardware underneath
and so doesn't have permissions for everyone to do it.

Whereas /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq gets
the value which cpufreq core believes is currently set and so is readable
by everybody.
--
To unsubscribe from this list: send the line "unsubscribe cpufreq" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel Devel]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Forum]     [Linux SCSI]

  Powered by Linux