Commit 6bc6743e 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: 373794466
Bug: 399785745
Change-Id: Ieccb3bdd1041dfe41a9c808a91cc19f04389e826
Signed-off-by: default avatarxuefei7 <xuefei7@xiaomi.com>
parent b346d6be
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment