Lines Matching refs:minijail
22 #include <brillo/minijail/minijail.h>
60 void SetupLogging(brillo::Minijail* minijail,
85 struct minijail* jail = minijail->New();
86 minijail->DropRoot(jail, kLoggerUser, kLoggerUser);
88 if (!minijail->RunPipeAndDestroy(jail, logger_command_line,
106 void DropPrivileges(brillo::Minijail* minijail) {
107 struct minijail* jail = minijail->New();
108 minijail->DropRoot(jail, apmanager::Daemon::kAPManagerUserName,
112 minijail->UseCapabilities(jail, CAP_TO_MASK(CAP_NET_ADMIN) |
115 minijail->UseSeccompFilter(jail, kSeccompFilePath);
117 minijail->Destroy(jail);
121 brillo::Minijail* minijail = brillo::Minijail::GetInstance();
122 SetupLogging(minijail, cl->HasSwitch(switches::kForeground), daemon_name);
133 DropPrivileges(minijail);