Commit 71c3c86a authored by Fei's avatar Fei Committed by Treehugger Robot
Browse files

ANDROID: module: Add vendor hooks



Add vendor hook for module init, so we can get memory type and addr
info, then we can use this info to set corresponding memory access
atrribute in EL2 stage2 page table. We can get enhanced security
protection by this way, as long as the stage2 page table is not
corrupted.
For releasing modules, corresponding page table attributes should be
destroyed and restored.

Bug: 441537639
Change-Id: Ieccb3bdd1041dfe41a9c808a91cc19f04389e826
Signed-off-by: default avatarFei <xuefei7@xiaomi.com>
(cherry picked from commit 6bc6743e)
parent 695893ef
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment