Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e758417e authored by Biswajit Paul's avatar Biswajit Paul Committed by Gerrit - the friendly Code Review server
Browse files

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: default avatarBiswajit Paul <biswajitpaul@codeaurora.org>
Signed-off-by: default avatarAvijit Kanti Das <avijitnsec@codeaurora.org>
parent 399f73ac
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -153,7 +153,7 @@ static const struct file_operations proc_iomem_operations = {
static int __init ioresources_init(void)
{
	proc_create("ioports", 0, NULL, &proc_ioports_operations);
	proc_create("iomem", 0, NULL, &proc_iomem_operations);
	proc_create("iomem", S_IRUSR, NULL, &proc_iomem_operations);
	return 0;
}
__initcall(ioresources_init);