summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmith Yamasani <yamasani@google.com>2012-04-06 18:35:36 -0700
committerAmith Yamasani <yamasani@google.com>2012-04-11 15:44:24 -0700
commite95ce35d10d6e0a7315a57f30d9c88d89880a4e1 (patch)
tree277806ae7d0d80fba813cb071d239bdfd355b8aa
parentda1ed9ab99c00698af64ec655ff668efffe2960d (diff)
downloadsystem_security-e95ce35d10d6e0a7315a57f30d9c88d89880a4e1.zip
system_security-e95ce35d10d6e0a7315a57f30d9c88d89880a4e1.tar.gz
system_security-e95ce35d10d6e0a7315a57f30d9c88d89880a4e1.tar.bz2
Allow calls from secondary user Settings app.
This is so that Face Unlock can be a valid option for a lockscreen. Otherwise get a PERMISSION_DENIED when uid = 101000. Change-Id: I0085b27dbd4d2f1988ba654acadd72c30f76a47e
-rw-r--r--keystore/keystore.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/keystore/keystore.cpp b/keystore/keystore.cpp
index 3f13c11..af8c937 100644
--- a/keystore/keystore.cpp
+++ b/keystore/keystore.cpp
@@ -1340,7 +1340,7 @@ static ResponseCode process(KeyStore* keyStore, int sock, uid_t uid, int8_t code
struct action* action = actions;
int i;
- while (~user->uid && user->uid != uid) {
+ while (~user->uid && user->uid != (uid % AID_USER)) {
++user;
}
while (action->code && action->code != code) {