Home
last modified time | relevance | path

Searched refs:jail (Results 1 – 3 of 3) sorted by relevance

/system/tpm/attestation/server/
Dmain.cc51 struct minijail* jail = minijail->New(); in InitMinijailSandbox() local
53 minijail->DropRoot(jail, kAttestationUser, kAttestationGroup); in InitMinijailSandbox()
54 minijail_inherit_usergroups(jail); in InitMinijailSandbox()
55 minijail->UseSeccompFilter(jail, kAttestationSeccompPath); in InitMinijailSandbox()
56 minijail->Enter(jail); in InitMinijailSandbox()
57 minijail->Destroy(jail); in InitMinijailSandbox()
/system/core/adb/daemon/
Dmain.cpp98 ScopedMinijail jail(minijail_new()); in drop_privileges() local
114 minijail_set_supplementary_gids(jail.get(), arraysize(groups), groups); in drop_privileges()
119 drop_capabilities_bounding_set_if_needed(jail.get()); in drop_privileges()
121 minijail_change_gid(jail.get(), AID_SHELL); in drop_privileges()
122 minijail_change_uid(jail.get(), AID_SHELL); in drop_privileges()
124 minijail_enter(jail.get()); in drop_privileges()
129 minijail_enter(jail.get()); in drop_privileges()
/system/tpm/trunks/
Dtrunksd.cc59 struct minijail* jail = minijail->New(); in InitMinijailSandbox() local
60 minijail->DropRoot(jail, kTrunksUser, kTrunksGroup); in InitMinijailSandbox()
61 minijail->UseSeccompFilter(jail, kTrunksSeccompPath); in InitMinijailSandbox()
62 minijail->Enter(jail); in InitMinijailSandbox()
63 minijail->Destroy(jail); in InitMinijailSandbox()