Android-cuttlefish cvd tool
Namespaces | Classes | Functions | Variables
cuttlefish::process_sandboxer Namespace Reference

Namespaces

namespace  anonymous_namespace{logs.cpp}
 
namespace  anonymous_namespace{main.cpp}
 
namespace  anonymous_namespace{sandbox_manager.cpp}
 
namespace  anonymous_namespace{sandboxer_proxy.cpp}
 

Classes

class  CredentialedUnixServer
 
struct  HostInfo
 
class  Message
 
class  PidFd
 
class  PollCallback
 
class  SandboxManager
 
class  SignalFd
 

Functions

absl::Status LogToFiles (const std::vector< std::string > &paths)
 
static absl::StatusOr< std::vector< std::string > > ReadNullSepFile (const std::string &path)
 
static absl::StatusOr< std::vector< pid_t > > FindChildPids (pid_t pid)
 
std::ostream & operator<< (std::ostream &out, const HostInfo &host)
 
std::unique_ptr< sandbox2::Policy > PolicyForExecutable (const HostInfo &host, std::string_view server_socket_outside_path, std::string_view executable)
 
sandbox2::PolicyBuilder BaselinePolicy (const HostInfo &, std::string_view exe)
 
sandbox2::PolicyBuilder AdbConnectorPolicy (const HostInfo &)
 
sandbox2::PolicyBuilder AssembleCvdPolicy (const HostInfo &)
 
sandbox2::PolicyBuilder AvbToolPolicy (const HostInfo &)
 
sandbox2::PolicyBuilder CasimirPolicy (const HostInfo &)
 
sandbox2::PolicyBuilder CfVhostUserInput (const HostInfo &)
 
sandbox2::PolicyBuilder CasimirControlServerPolicy (const HostInfo &)
 
sandbox2::PolicyBuilder ControlEnvProxyServerPolicy (const HostInfo &)
 
sandbox2::PolicyBuilder CvdInternalStartPolicy (const HostInfo &)
 
sandbox2::PolicyBuilder EchoServerPolicy (const HostInfo &)
 
sandbox2::PolicyBuilder GnssGrpcProxyPolicy (const HostInfo &)
 
sandbox2::PolicyBuilder KernelLogMonitorPolicy (const HostInfo &)
 
sandbox2::PolicyBuilder LogTeePolicy (const HostInfo &)
 
sandbox2::PolicyBuilder LogcatReceiverPolicy (const HostInfo &)
 
sandbox2::PolicyBuilder MetricsPolicy (const HostInfo &host)
 
sandbox2::PolicyBuilder MkEnvImgSlimPolicy (const HostInfo &host)
 
sandbox2::PolicyBuilder ModemSimulatorPolicy (const HostInfo &)
 
sandbox2::PolicyBuilder NetsimdPolicy (const HostInfo &)
 
sandbox2::PolicyBuilder NewFsMsDosPolicy (const HostInfo &)
 
sandbox2::PolicyBuilder OpenWrtControlServerPolicy (const HostInfo &host)
 
sandbox2::PolicyBuilder OperatorProxyPolicy (const HostInfo &host)
 
sandbox2::PolicyBuilder ProcessRestarterPolicy (const HostInfo &)
 
sandbox2::PolicyBuilder RunCvdPolicy (const HostInfo &)
 
sandbox2::PolicyBuilder ScreenRecordingServerPolicy (const HostInfo &)
 
sandbox2::PolicyBuilder SecureEnvPolicy (const HostInfo &)
 
sandbox2::PolicyBuilder Simg2ImgPolicy (const HostInfo &)
 
sandbox2::PolicyBuilder SocketVsockProxyPolicy (const HostInfo &)
 
sandbox2::PolicyBuilder TcpConnectorPolicy (const HostInfo &)
 
sandbox2::PolicyBuilder TombstoneReceiverPolicy (const HostInfo &)
 
sandbox2::PolicyBuilder VhostDeviceVsockPolicy (const HostInfo &)
 
sandbox2::PolicyBuilder WebRtcPolicy (const HostInfo &)
 
sandbox2::PolicyBuilder WebRtcOperatorPolicy (const HostInfo &)
 
sandbox2::PolicyBuilder WmediumdPolicy (const HostInfo &)
 
sandbox2::PolicyBuilder WmediumdGenConfigPolicy (const HostInfo &)
 
std::set< std::string > NoPolicy (const HostInfo &)
 
absl::StatusOr< size_t > SendStringMsg (int sock, std::string_view msg)
 
std::string RandomString (absl::BitGenRef gen, std::size_t size)
 

Variables

static const constexpr std::string_view kHandshakeBegin = "hello"
 
static const constexpr std::string_view kManagerSocketPath = "/manager.sock"
 

Function Documentation

◆ AdbConnectorPolicy()

sandbox2::PolicyBuilder cuttlefish::process_sandboxer::AdbConnectorPolicy ( const HostInfo host)

◆ AssembleCvdPolicy()

sandbox2::PolicyBuilder cuttlefish::process_sandboxer::AssembleCvdPolicy ( const HostInfo host)

◆ AvbToolPolicy()

sandbox2::PolicyBuilder cuttlefish::process_sandboxer::AvbToolPolicy ( const HostInfo host)

◆ BaselinePolicy()

sandbox2::PolicyBuilder cuttlefish::process_sandboxer::BaselinePolicy ( const HostInfo host,
std::string_view  exe 
)

◆ CasimirControlServerPolicy()

sandbox2::PolicyBuilder cuttlefish::process_sandboxer::CasimirControlServerPolicy ( const HostInfo host)

◆ CasimirPolicy()

sandbox2::PolicyBuilder cuttlefish::process_sandboxer::CasimirPolicy ( const HostInfo host)

◆ CfVhostUserInput()

sandbox2::PolicyBuilder cuttlefish::process_sandboxer::CfVhostUserInput ( const HostInfo host)

◆ ControlEnvProxyServerPolicy()

sandbox2::PolicyBuilder cuttlefish::process_sandboxer::ControlEnvProxyServerPolicy ( const HostInfo host)

◆ CvdInternalStartPolicy()

sandbox2::PolicyBuilder cuttlefish::process_sandboxer::CvdInternalStartPolicy ( const HostInfo host)

◆ EchoServerPolicy()

sandbox2::PolicyBuilder cuttlefish::process_sandboxer::EchoServerPolicy ( const HostInfo host)

◆ FindChildPids()

static absl::StatusOr< std::vector< pid_t > > cuttlefish::process_sandboxer::FindChildPids ( pid_t  pid)
static

◆ GnssGrpcProxyPolicy()

sandbox2::PolicyBuilder cuttlefish::process_sandboxer::GnssGrpcProxyPolicy ( const HostInfo host)

◆ KernelLogMonitorPolicy()

sandbox2::PolicyBuilder cuttlefish::process_sandboxer::KernelLogMonitorPolicy ( const HostInfo host)

◆ LogcatReceiverPolicy()

sandbox2::PolicyBuilder cuttlefish::process_sandboxer::LogcatReceiverPolicy ( const HostInfo host)

◆ LogTeePolicy()

sandbox2::PolicyBuilder cuttlefish::process_sandboxer::LogTeePolicy ( const HostInfo host)

◆ LogToFiles()

absl::Status cuttlefish::process_sandboxer::LogToFiles ( const std::vector< std::string > &  paths)

◆ MetricsPolicy()

sandbox2::PolicyBuilder cuttlefish::process_sandboxer::MetricsPolicy ( const HostInfo host)

◆ MkEnvImgSlimPolicy()

sandbox2::PolicyBuilder cuttlefish::process_sandboxer::MkEnvImgSlimPolicy ( const HostInfo host)

◆ ModemSimulatorPolicy()

sandbox2::PolicyBuilder cuttlefish::process_sandboxer::ModemSimulatorPolicy ( const HostInfo host)

◆ NetsimdPolicy()

sandbox2::PolicyBuilder cuttlefish::process_sandboxer::NetsimdPolicy ( const HostInfo host)

◆ NewFsMsDosPolicy()

sandbox2::PolicyBuilder cuttlefish::process_sandboxer::NewFsMsDosPolicy ( const HostInfo host)

◆ NoPolicy()

std::set< std::string > cuttlefish::process_sandboxer::NoPolicy ( const HostInfo host)

◆ OpenWrtControlServerPolicy()

sandbox2::PolicyBuilder cuttlefish::process_sandboxer::OpenWrtControlServerPolicy ( const HostInfo host)

◆ operator<<()

std::ostream & cuttlefish::process_sandboxer::operator<< ( std::ostream &  out,
const HostInfo host 
)

◆ OperatorProxyPolicy()

sandbox2::PolicyBuilder cuttlefish::process_sandboxer::OperatorProxyPolicy ( const HostInfo host)

◆ PolicyForExecutable()

std::unique_ptr< sandbox2::Policy > cuttlefish::process_sandboxer::PolicyForExecutable ( const HostInfo host,
std::string_view  server_socket_outside_path,
std::string_view  executable 
)

◆ ProcessRestarterPolicy()

sandbox2::PolicyBuilder cuttlefish::process_sandboxer::ProcessRestarterPolicy ( const HostInfo host)

◆ RandomString()

std::string cuttlefish::process_sandboxer::RandomString ( absl::BitGenRef  gen,
std::size_t  size 
)

◆ ReadNullSepFile()

static absl::StatusOr< std::vector< std::string > > cuttlefish::process_sandboxer::ReadNullSepFile ( const std::string &  path)
static

◆ RunCvdPolicy()

sandbox2::PolicyBuilder cuttlefish::process_sandboxer::RunCvdPolicy ( const HostInfo host)

◆ ScreenRecordingServerPolicy()

sandbox2::PolicyBuilder cuttlefish::process_sandboxer::ScreenRecordingServerPolicy ( const HostInfo host)

◆ SecureEnvPolicy()

sandbox2::PolicyBuilder cuttlefish::process_sandboxer::SecureEnvPolicy ( const HostInfo host)

◆ SendStringMsg()

absl::StatusOr< size_t > cuttlefish::process_sandboxer::SendStringMsg ( int  sock,
std::string_view  msg 
)

◆ Simg2ImgPolicy()

sandbox2::PolicyBuilder cuttlefish::process_sandboxer::Simg2ImgPolicy ( const HostInfo host)

◆ SocketVsockProxyPolicy()

sandbox2::PolicyBuilder cuttlefish::process_sandboxer::SocketVsockProxyPolicy ( const HostInfo host)

◆ TcpConnectorPolicy()

sandbox2::PolicyBuilder cuttlefish::process_sandboxer::TcpConnectorPolicy ( const HostInfo host)

◆ TombstoneReceiverPolicy()

sandbox2::PolicyBuilder cuttlefish::process_sandboxer::TombstoneReceiverPolicy ( const HostInfo host)

◆ VhostDeviceVsockPolicy()

sandbox2::PolicyBuilder cuttlefish::process_sandboxer::VhostDeviceVsockPolicy ( const HostInfo host)

◆ WebRtcOperatorPolicy()

sandbox2::PolicyBuilder cuttlefish::process_sandboxer::WebRtcOperatorPolicy ( const HostInfo host)

◆ WebRtcPolicy()

sandbox2::PolicyBuilder cuttlefish::process_sandboxer::WebRtcPolicy ( const HostInfo host)

◆ WmediumdGenConfigPolicy()

sandbox2::PolicyBuilder cuttlefish::process_sandboxer::WmediumdGenConfigPolicy ( const HostInfo host)

◆ WmediumdPolicy()

sandbox2::PolicyBuilder cuttlefish::process_sandboxer::WmediumdPolicy ( const HostInfo host)

Variable Documentation

◆ kHandshakeBegin

const constexpr std::string_view cuttlefish::process_sandboxer::kHandshakeBegin = "hello"
staticconstexpr

◆ kManagerSocketPath

const constexpr std::string_view cuttlefish::process_sandboxer::kManagerSocketPath = "/manager.sock"
staticconstexpr