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

Unified Diff: remoting/host/win/chromoting_module.cc

Issue 884713010: Remove ElevatedController (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updating 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 | « remoting/host/win/chromoting_lib_idl.templ ('k') | remoting/host/win/elevated_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/win/chromoting_module.cc
diff --git a/remoting/host/win/chromoting_module.cc b/remoting/host/win/chromoting_module.cc
index f7a89d5ce99e3ab86f72af8ab72843f32fc1f80e..bab939c2b8f48c7a09e7baea8fa7e1a0a11a6267 100644
--- a/remoting/host/win/chromoting_module.cc
+++ b/remoting/host/win/chromoting_module.cc
@@ -4,8 +4,6 @@
#include "remoting/host/win/chromoting_module.h"
-#include <sddl.h>
-
#include "base/lazy_instance.h"
#include "base/logging.h"
#include "base/message_loop/message_loop.h"
@@ -16,25 +14,12 @@
#include "remoting/base/auto_thread_task_runner.h"
#include "remoting/base/typed_buffer.h"
#include "remoting/host/host_exit_codes.h"
-#include "remoting/host/win/com_security.h"
-#include "remoting/host/win/elevated_controller.h"
#include "remoting/host/win/rdp_desktop_session.h"
namespace remoting {
namespace {
-// A security descriptor allowing local processes running under SYSTEM, built-in
-// administrators and interactive users to call COM methods.
-const wchar_t kElevatedControllerSd[] =
- SDDL_OWNER L":" SDDL_BUILTIN_ADMINISTRATORS
- SDDL_GROUP L":" SDDL_BUILTIN_ADMINISTRATORS
- SDDL_DACL L":"
- SDDL_ACE(SDDL_ACCESS_ALLOWED, SDDL_COM_EXECUTE_LOCAL, SDDL_LOCAL_SYSTEM)
- SDDL_ACE(SDDL_ACCESS_ALLOWED, SDDL_COM_EXECUTE_LOCAL,
- SDDL_BUILTIN_ADMINISTRATORS)
- SDDL_ACE(SDDL_ACCESS_ALLOWED, SDDL_COM_EXECUTE_LOCAL, SDDL_INTERACTIVE);
-
// Holds a reference to the task runner used by the module.
base::LazyInstance<scoped_refptr<AutoThreadTaskRunner> > g_module_task_runner =
LAZY_INSTANCE_INITIALIZER;
@@ -195,24 +180,6 @@ HRESULT ChromotingModule::RevokeClassObjects() {
return S_OK;
}
-// Elevated controller entry point.
-int ElevatedControllerMain() {
- ATL::_ATL_OBJMAP_ENTRY elevated_controller_entry[] = {
- OBJECT_ENTRY(__uuidof(ElevatedController), ElevatedController)
- };
-
- ChromotingModule module(elevated_controller_entry,
- elevated_controller_entry + 1);
-
- if (!InitializeComSecurity(base::WideToUTF8(kElevatedControllerSd), "", true))
- return kInitializationFailed;
-
- if (!module.Run())
- return kInitializationFailed;
-
- return kSuccessExitCode;
-}
-
// RdpClient entry point.
int RdpDesktopSessionMain() {
// Lower the integrity level to medium, which is the lowest level at which
« no previous file with comments | « remoting/host/win/chromoting_lib_idl.templ ('k') | remoting/host/win/elevated_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698