diff options
author | Amith Yamasani <yamasani@google.com> | 2012-04-06 18:35:36 -0700 |
---|---|---|
committer | Amith Yamasani <yamasani@google.com> | 2012-04-11 15:44:24 -0700 |
commit | e95ce35d10d6e0a7315a57f30d9c88d89880a4e1 (patch) | |
tree | 277806ae7d0d80fba813cb071d239bdfd355b8aa /keystore/keystore.cpp | |
parent | da1ed9ab99c00698af64ec655ff668efffe2960d (diff) | |
download | system_security-e95ce35d10d6e0a7315a57f30d9c88d89880a4e1.tar.gz system_security-e95ce35d10d6e0a7315a57f30d9c88d89880a4e1.tar.bz2 system_security-e95ce35d10d6e0a7315a57f30d9c88d89880a4e1.zip |
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
Diffstat (limited to 'keystore/keystore.cpp')
-rw-r--r-- | keystore/keystore.cpp | 2 |
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) { |