Index: mojo/edk/embedder/system_impl_private_entrypoints.cc |
diff --git a/mojo/edk/embedder/system_impl_private_entrypoints.cc b/mojo/edk/embedder/system_impl_private_entrypoints.cc |
index 0f1b18dec8d9bd084e5f606b8a6781c110203e6c..fb705c4038933c603f5445819f843362931a240e 100644 |
--- a/mojo/edk/embedder/system_impl_private_entrypoints.cc |
+++ b/mojo/edk/embedder/system_impl_private_entrypoints.cc |
@@ -100,6 +100,26 @@ MojoResult MojoSystemImplGetRights(MojoSystemImpl system, |
return core->GetRights(handle, MakeUserPointer(rights)); |
} |
+MojoResult MojoSystemImplDuplicateHandleWithReducedRights( |
+ MojoSystemImpl system, |
+ MojoHandle handle, |
+ MojoHandleRights rights_to_remove, |
+ MojoHandle* new_handle) { |
+ mojo::system::Core* core = static_cast<mojo::system::Core*>(system); |
+ DCHECK(core); |
+ return core->DuplicateHandleWithReducedRights(handle, rights_to_remove, |
+ MakeUserPointer(new_handle)); |
+} |
+ |
+MojoResult MojoSystemImplDuplicateHandle(MojoSystemImpl system, |
+ MojoHandle handle, |
+ MojoHandle* new_handle) { |
+ mojo::system::Core* core = static_cast<mojo::system::Core*>(system); |
+ DCHECK(core); |
+ return core->DuplicateHandleWithReducedRights(handle, MOJO_HANDLE_RIGHT_NONE, |
+ MakeUserPointer(new_handle)); |
+} |
+ |
MojoResult MojoSystemImplWait(MojoSystemImpl system, |
MojoHandle handle, |
MojoHandleSignals signals, |