powerpc/powernv: Restrict OPAL symbol map to only be readable by root
authorAndrew Donnellan <ajd@linux.ibm.com>
Fri, 3 May 2019 07:52:53 +0000 (17:52 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 5 Aug 2019 08:53:04 +0000 (18:53 +1000)
commite7de4f7b64c23e503a8c42af98d56f2a7462bd6d
tree257229b7c69375e6070b14880695d35f9fd9b847
parent8b856a0942a1b4d832966985fcdf1a455eb6ab8c
powerpc/powernv: Restrict OPAL symbol map to only be readable by root

Currently the OPAL symbol map is globally readable, which seems bad as
it contains physical addresses.

Restrict it to root.

Fixes: c8742f85125d ("powerpc/powernv: Expose OPAL firmware symbol map")
Cc: stable@vger.kernel.org # v3.19+
Suggested-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Andrew Donnellan <ajd@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20190503075253.22798-1-ajd@linux.ibm.com
arch/powerpc/platforms/powernv/opal.c