From 4cf2637ddd76da9e43fdc4f545c4f1202bad2b24 Mon Sep 17 00:00:00 2001 From: "alexeypa@chromium.org" Date: Tue, 18 Jun 2013 16:32:34 +0000 Subject: Configure security of the elevated controller in runtime. This CL makes the elevated controller to configure its security (including the security descriptor of the server) in runtime by calling CoInitializeSecurity() instead of using declarative registry key (AccessPermissions). The problem is that when over-the-shoulder (OTS) COM elevation is used COM runtime uses the executable name to lookup the corresponding AppID\{xxx}\AccessPermissions value. We use the same binary to run different kind of processes so this mapping does not work for us very well. Collateral changes: - CoInitializeSecurity() wrapper was moved to a separate file. BUG=129477 R=jamiewalch@chromium.org Review URL: https://codereview.chromium.org/17089004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207014 0039d316-1c4b-4281-b951-d872f2087c98 --- remoting/host/installer/win/chromoting.wxs | 14 +----- remoting/host/win/chromoting_module.cc | 24 +++++++++- remoting/host/win/com_security.cc | 67 ++++++++++++++++++++++++++ remoting/host/win/com_security.h | 38 +++++++++++++++ remoting/host/win/host_service.cc | 75 +++--------------------------- 5 files changed, 136 insertions(+), 82 deletions(-) create mode 100644 remoting/host/win/com_security.cc create mode 100644 remoting/host/win/com_security.h (limited to 'remoting/host') diff --git a/remoting/host/installer/win/chromoting.wxs b/remoting/host/installer/win/chromoting.wxs index 077e373..ce329c4 100644 --- a/remoting/host/installer/win/chromoting.wxs +++ b/remoting/host/installer/win/chromoting.wxs @@ -41,7 +41,7 @@ "{987bca97-9d40-42fc-a00d-e6a701261af5}" ?> - - -