Re: /sys/ file access

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

 



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?

Best Regards,

Ken

On Mon, Jul 15, 2013 at 10:34 AM, Viresh Kumar <viresh.kumar@xxxxxxxxxx> wrote:
> On Fri, Jul 12, 2013 at 2:25 PM, kernel kernel <kernel@xxxxxxxxxxxxx> wrote:
>> I wish to read the file "/sys/devices/system/cpu/cpu0/cpufreq" as an
>> unprivileged user. The default permissions on this file are:
>>
>> -r-------- 1 root root
>>
>> What is the rationale behind this? All other files in this directory
>> are world readable.
>
> Permissions as shown on my Thinkpad with ubuntu 12.04
>
> viresh@blr-linut-001:$ ll /sys/devices/system/cpu/cpu0/
> drwxr-xr-x 3 root root    0 Jul 11 17:53 cpufreq/



-- 
Ken O'Brien
PhD Researcher
Simulation Science and Extreme Events Cluster,
3B1, UCD CASL,
8 Belfield Business Park,
Dublin 4,
Ireland.
--
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