summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramVertexFixedFunction.java
diff options
context:
space:
mode:
authorAbodunrinwa Toki <toki@google.com>2019-07-01 19:41:44 +0100
committerAbodunrinwa Toki <toki@google.com>2019-07-08 15:16:19 +0100
commite8492693c234853c76d19531dabea3aaa41970f3 (patch)
tree3346a787b877e6213d4d5548709f08494b302fcb /rs/java/android/renderscript/ProgramVertexFixedFunction.java
parentd6f8273add3ddfc9bf5aae45f0d826a2749a6a98 (diff)
TextClassifier cross-user vulnerability in direct-reply
Sys UI runs on user 0. This can lead to the TextClassifier (TC) running for the wrong user. Consequencies are user A can launch apps in user B via the TC's predicted actions and selected text being unintentionally shared from user A to an app running in user B. This fix ensures that the correct user id is passed and verified for every TC request going across process boundaries (i.e. via SystemTC). - Sys UI sets the appropriate user id in the TextView - TextClassificationManager (TCM) system service is constructed using a context generated from this user id - SystemTC sets this user id before querying the TCMService - TCMService validates the user id before forwarding the request to the TCService belonging to that user id. Bug: 136483597 Test: atest android.view.textclassifier atest android.widget.TextViewActivityTest (manual) Verified according to steps in bug 123232892 Change-Id: I2fdffd8eb4221782cb1f34d2ddbe41dd3d36595c
Diffstat (limited to 'rs/java/android/renderscript/ProgramVertexFixedFunction.java')
0 files changed, 0 insertions, 0 deletions