keystore: Allow network_stack uid to use AID_WIFI
The wifi stack will be running inside the network_stack process for
devices which will accept wifi mainline module in R. So, add a effective
uid entry to allow calls from wifi stack inside network_stack to use
keystore blobs stored by wifi uid.
Bug: 142298627
Test: Compiles, will verify failing tests.
Change-Id: Iff19bcad134a3531934215ea4b7d975433da787d
diff --git a/keystore/permissions.cpp b/keystore/permissions.cpp
index d17fcdd..9630c31 100644
--- a/keystore/permissions.cpp
+++ b/keystore/permissions.cpp
@@ -55,7 +55,12 @@
};
user_euid user_euids[] = {{AID_VPN, AID_SYSTEM},
+ // Wifi services will run in system_server on devices not using wifi
+ // mainline module.
{AID_WIFI, AID_SYSTEM},
+ // Wifi services will run in network_stack on devices using wifi mainline
+ // module.
+ {AID_WIFI, AID_NETWORK_STACK},
{AID_ROOT, AID_SYSTEM},
{AID_WIFI, AID_KEYSTORE},
{AID_KEYSTORE, AID_WIFI},