lkml.org 
[lkml]   [2019]   [Dec]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: firmware: dmi-sysfs: why is the access mode of dmi sysfs entries restricted to 0400?
On Wed, Dec 04, 2019 at 03:31:22PM +0800, Guoheyi wrote:
> Hi,
>
> Why is the access mode of dmi sysfs entries restricted to 0400? Is it for
> security concern? If it is, which information do we consider as privacy?

There's lots of "interesting" information in dmi entries that you
probably do not want all processes reading, which is why they are
restricted.

> We would like to fetch CPU information from non-root application, is there
> feasible way to do that?

What specific CPU information is not currently exported in /proc/cpuinfo
that only shows up in DMI entries that you are interested in?

You can always have root change the permissions of a sysfs file if you
have a service that wants to allow non-root programs to read specific
entries.

thanks,

greg k-h

\
 
 \ /
  Last update: 2019-12-04 08:42    [W:0.084 / U:0.048 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site