Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(984)

Unified Diff: sandbox/win/src/broker_services.cc

Issue 977193002: Adding lowbox condition to IsTokenCacheable function. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Modified comment. Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sandbox/win/src/broker_services.cc
diff --git a/sandbox/win/src/broker_services.cc b/sandbox/win/src/broker_services.cc
index 8a29f9ba6aa7d3e39a1a58dff899881448649f83..d88e5eba0192335af1df721ea3ca7dd80d3e3d76 100644
--- a/sandbox/win/src/broker_services.cc
+++ b/sandbox/win/src/broker_services.cc
@@ -88,8 +88,8 @@ bool IsTokenCacheable(const sandbox::PolicyBase* policy) {
const sandbox::AppContainerAttributes* app_container =
policy->GetAppContainer();
- // We cannot cache tokens with an app container.
- if (app_container)
+ // We cannot cache tokens with an app container or lowbox.
+ if (app_container || policy->GetLowBoxSid())
return false;
return true;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698