RLBox
Public Types | Protected Member Functions | Static Protected Member Functions | List of all members
rlbox::rlbox_noop_sandbox Class Reference

Class that implements the null sandbox. This sandbox doesn't actually provide any isolation and only serves as a stepping stone towards migrating an application to use the RLBox API. More...

#include <rlbox_noop_sandbox.hpp>

Public Types

using T_LongLongType = long long
 
using T_LongType = long
 
using T_IntType = int
 
using T_PointerType = void *
 
using T_ShortType = short
 
using can_grant_deny_access = void
 

Protected Member Functions

void impl_create_sandbox ()
 
void impl_destroy_sandbox ()
 
template<typename T >
void * impl_get_unsandboxed_pointer (T_PointerType p) const
 
template<typename T >
T_PointerType impl_get_sandboxed_pointer (const void *p) const
 
T_PointerType impl_malloc_in_sandbox (size_t size)
 
void impl_free_in_sandbox (T_PointerType p)
 
bool impl_is_pointer_in_sandbox_memory (const void *)
 
bool impl_is_pointer_in_app_memory (const void *)
 
size_t impl_get_total_memory ()
 
void * impl_get_memory_location ()
 
template<typename T = void>
void * impl_lookup_symbol (const char *)
 
template<typename T , typename T_Converted , typename... T_Args>
auto impl_invoke_with_func_ptr (T_Converted *func_ptr, T_Args &&... params)
 
template<typename T_Ret , typename... T_Args>
T_PointerType impl_register_callback (void *key, void *callback)
 
template<typename T_Ret , typename... T_Args>
void impl_unregister_callback (void *key)
 
template<typename T >
T * impl_grant_access (T *src, size_t num, bool &success)
 
template<typename T >
T * impl_deny_access (T *src, size_t num, bool &success)
 

Static Protected Member Functions

template<typename T >
static void * impl_get_unsandboxed_pointer_no_ctx (T_PointerType p, const void *, rlbox_noop_sandbox *(*)(const void *example_unsandboxed_ptr))
 
template<typename T >
static T_PointerType impl_get_sandboxed_pointer_no_ctx (const void *p, const void *, rlbox_noop_sandbox *(*)(const void *example_unsandboxed_ptr))
 
static bool impl_is_in_same_sandbox (const void *, const void *)
 
static std::pair< rlbox_noop_sandbox *, void * > impl_get_executed_callback_sandbox_and_key ()
 

Detailed Description

Class that implements the null sandbox. This sandbox doesn't actually provide any isolation and only serves as a stepping stone towards migrating an application to use the RLBox API.


The documentation for this class was generated from the following file: