Home | History | Annotate | Download | only in minijail

Lines Matching refs:minijail

21 // A Minijail abstraction allowing Minijail mocking in tests.
22 class Minijail {
24 virtual ~Minijail();
26 // This is a singleton -- use Minijail::GetInstance()->Foo().
27 static Minijail* GetInstance();
30 virtual struct minijail* New();
32 virtual void Destroy(struct minijail* jail);
35 virtual void DropRoot(struct minijail* jail, uid_t uid, gid_t gid);
38 virtual bool DropRoot(struct minijail* jail,
43 virtual void EnterNewPidNamespace(struct minijail* jail);
46 virtual void MountTmp(struct minijail* jail);
50 virtual void UseSeccompFilter(struct minijail* jail, const char* path);
53 virtual void UseCapabilities(struct minijail* jail, uint64_t capmask);
56 virtual void ResetSignalMask(struct minijail* jail);
59 virtual void Enter(struct minijail* jail);
62 virtual bool Run(struct minijail* jail, std::vector<char*> args, pid_t* pid);
65 virtual bool RunSync(struct minijail* jail,
70 virtual bool RunPipe(struct minijail* jail,
76 virtual bool RunPipes(struct minijail* jail,
84 virtual bool RunAndDestroy(struct minijail* jail,
89 virtual bool RunSyncAndDestroy(struct minijail* jail,
94 virtual bool RunPipeAndDestroy(struct minijail* jail,
100 virtual bool RunPipesAndDestroy(struct minijail* jail,
108 Minijail();
111 DISALLOW_COPY_AND_ASSIGN(Minijail);