ANDROID: kernel: Restrict permissions of /proc/iomem.
The permissions of /proc/iomem currently are -r--r--r--. Everyone can see its content. As iomem contains information about the physical memory content of the device, restrict the information only to root. Change-Id: If0be35c3fac5274151bea87b738a48e6ec0ae891 CRs-Fixed: 786116 Signed-off-by: Biswajit Paul <biswajitpaul@codeaurora.org> Signed-off-by: Avijit Kanti Das <avijitnsec@codeaurora.org> (cherry picked from https://android.googlesource.com/kernel/msm commit 3b1ac3a37ce5e6c31c82ca85604705575cb570d6) Signed-off-by: Tao Huang <huangtao@rock-chips.com>
This commit is contained in:
parent
bd67d49f2b
commit
9c23eefd23
1 changed files with 1 additions and 1 deletions
|
|
@ -139,7 +139,7 @@ static int __init ioresources_init(void)
|
|||
{
|
||||
proc_create_seq_data("ioports", 0, NULL, &resource_op,
|
||||
&ioport_resource);
|
||||
proc_create_seq_data("iomem", 0, NULL, &resource_op, &iomem_resource);
|
||||
proc_create_seq_data("iomem", 0400, NULL, &resource_op, &iomem_resource);
|
||||
return 0;
|
||||
}
|
||||
__initcall(ioresources_init);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue