/* This Source Code Form is subject to the terms of the Mozilla Public *License,v.2.0.IfacopyoftheMPLwasnotdistributedwiththisfile,
* You can obtain one at http://mozilla.org/MPL/2.0/. */
// This is the client for the sandbox broker described in // broker/SandboxBroker.h; its constructor takes the file descriptor // returned by SandboxBroker::Create, passed to the child over IPC. // // The operations exposed here can be called from any thread and in // async signal handlers, like the corresponding system calls. The // intended use is from a seccomp-bpf SIGSYS handler, to transparently // replace those syscalls, but they could also be used directly.
struct stat; struct sockaddr_un;
namespace mozilla {
class SandboxBrokerClient final : private SandboxBrokerCommon {
public: explicit SandboxBrokerClient(int aFd);
~SandboxBrokerClient();
int Open(constchar* aPath, int aFlags); int Access(constchar* aPath, int aMode); int Stat(constchar* aPath, statstruct* aStat); int LStat(constchar* aPath, statstruct* aStat); int Chmod(constchar* aPath, int aMode); int Link(constchar* aPath, constchar* aPath2); int Mkdir(constchar* aPath, int aMode); int Rename(constchar* aOldPath, constchar* aNewPath); int Unlink(constchar* aPath); int Rmdir(constchar* aPath); int Readlink(constchar* aPath, void* aBuf, size_t aBufSize); int Connect(conststruct sockaddr_un* aAddr, size_t aLen, int aType);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.