/external/minijail/ |
libminijail.h | 8 * 1) Construct a minijail with minijail_new() 31 struct minijail; 33 /* Allocates a new minijail with no restrictions. */ 34 struct minijail *minijail_new(void); 37 * These functions add restrictions to the minijail. They are not applied until 41 void minijail_change_uid(struct minijail *j, uid_t uid); 42 void minijail_change_gid(struct minijail *j, gid_t gid); 44 void minijail_set_supplementary_gids(struct minijail *j, size_t size, 47 int minijail_change_user(struct minijail *j, const char *user); 49 int minijail_change_group(struct minijail *j, const char *group) [all...] |
libminijail-private.h | 21 struct minijail; 28 extern size_t minijail_size(const struct minijail *j); 31 * @j minijail to serialize 39 * by minijail0.c and libminijailpreload.c. minijail flags that 45 extern int minijail_marshal(const struct minijail *j, 50 * @j minijail to initialize 56 extern int minijail_unmarshal(struct minijail *j, 61 * @j minijail to initialize 66 extern int minijail_from_fd(int fd, struct minijail *j); 69 * @j minijail to sen [all...] |
libminijail.c | 85 struct minijail { struct 146 void minijail_preenter(struct minijail *j) 161 void minijail_preexec(struct minijail *j) 208 /* Minijail API. */ 210 struct minijail API *minijail_new(void) 212 return calloc(1, sizeof(struct minijail)); 215 void API minijail_change_uid(struct minijail *j, uid_t uid) 223 void API minijail_change_gid(struct minijail *j, gid_t gid) 231 void API minijail_set_supplementary_gids(struct minijail *j, size_t size, 259 int API minijail_change_user(struct minijail *j, const char *user [all...] |
minijail0.c | 18 static void set_user(struct minijail *j, const char *arg) 33 static void set_group(struct minijail *j, const char *arg) 48 static void use_caps(struct minijail *j, const char *arg) 60 static void add_binding(struct minijail *j, char *arg) 75 static void add_mount(struct minijail *j, char *arg) 159 static int parse_args(struct minijail *j, int argc, char *argv[], 344 struct minijail *j = minijail_new();
|
libminijailpreload.c | 51 struct minijail *j; 69 die("preload: failed to parse minijail from parent");
|
libminijail_unittest.c | 6 * Test platform independent logic of minijail. 115 struct minijail *m; 116 struct minijail *j; 163 struct minijail *j = minijail_new();
|
/external/libbrillo/brillo/minijail/ |
minijail.h | 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 [all...] |
mock_minijail.h | 13 #include "brillo/minijail/minijail.h" 17 class MockMinijail : public brillo::Minijail { 22 MOCK_METHOD0(New, struct minijail*()); 23 MOCK_METHOD1(Destroy, void(struct minijail*)); 26 bool(struct minijail* jail, 29 MOCK_METHOD2(UseSeccompFilter, void(struct minijail* jail, const char* path)); 30 MOCK_METHOD2(UseCapabilities, void(struct minijail* jail, uint64_t capmask)); 31 MOCK_METHOD1(ResetSignalMask, void(struct minijail* jail)); 32 MOCK_METHOD1(Enter, void(struct minijail* jail)) [all...] |
minijail.cc | 5 #include "brillo/minijail/minijail.h" 14 static base::LazyInstance<Minijail> g_minijail = LAZY_INSTANCE_INITIALIZER; 16 Minijail::Minijail() {} 18 Minijail::~Minijail() {} 21 Minijail* Minijail::GetInstance() { 25 struct minijail* Minijail::New() [all...] |
/system/connectivity/apmanager/ |
main.cc | 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) { 121 brillo::Minijail* minijail = brillo::Minijail::GetInstance(); local [all...] |
/system/tpm/attestation/server/ |
main.cc | 25 #include <brillo/minijail/minijail.h> 51 brillo::Minijail* minijail = brillo::Minijail::GetInstance(); local 52 struct minijail* jail = minijail->New(); 54 minijail->DropRoot(jail, kAttestationUser, kAttestationGroup); 56 minijail->UseSeccompFilter(jail, kAttestationSeccompPath); 57 minijail->Enter(jail) [all...] |
/system/tpm/trunks/ |
trunksd.cc | 23 #include <brillo/minijail/minijail.h> 60 brillo::Minijail* minijail = brillo::Minijail::GetInstance(); local 61 struct minijail* jail = minijail->New(); 62 minijail->DropRoot(jail, kTrunksUser, kTrunksGroup); 63 minijail->UseSeccompFilter(jail, kTrunksSeccompPath); 64 minijail->Enter(jail) [all...] |
/frameworks/av/services/mediacodec/minijail/ |
minijail.cpp | 21 #include "minijail.h" 28 int MiniJail() 36 struct minijail *jail = minijail_new(); 38 ALOGW("Failed to create minijail.");
|
/frameworks/av/services/mediaextractor/minijail/ |
minijail.cpp | 21 #include "minijail.h" 28 int MiniJail() 36 struct minijail *jail = minijail_new(); 38 ALOGW("Failed to create minijail.");
|
/frameworks/av/services/mediacodec/ |
Android.mk | 18 LOCAL_SRC_FILES := main_codecservice.cpp minijail/minijail.cpp
|
/frameworks/av/services/mediaextractor/ |
Android.mk | 16 LOCAL_SRC_FILES := main_extractorservice.cpp minijail/minijail.cpp
|
/system/connectivity/shill/ |
shill_main.cc | 30 #include <brillo/minijail/minijail.h> 147 brillo::Minijail* minijail = brillo::Minijail::GetInstance(); local 148 struct minijail* jail = minijail->New(); 149 minijail->DropRoot(jail, kLoggerUser, kLoggerUser); 151 if (!minijail->RunPipeAndDestroy(jail, logger_command_line, nullptr,
|
crypto_util_proxy.h | 28 #include <brillo/minijail/minijail.h>
|
process_manager.h | 30 #include <brillo/minijail/minijail.h> 174 brillo::Minijail* minijail_;
|
/system/webservd/webservd/ |
main.cc | 27 #include <brillo/minijail/minijail.h> 142 // TODO: Re-enable this for Android once minijail works with libcap-ng. 146 // which is required for brillo::Minijail::GetInstance() to work. 147 brillo::Minijail* minijail_instance = brillo::Minijail::GetInstance(); 148 minijail* jail = minijail_instance->New();
|
/external/minijail/test/ |
libminijail_test.cpp | 114 minijail *j = minijail_new(); 126 minijail *j2 = minijail_new();
|
/system/tpm/tpm_manager/server/ |
main.cc | 23 #include <brillo/minijail/minijail.h>
|
/external/minijail/examples/ |
drop_privs.cpp | 56 minijail *j = minijail_new(); 67 // minijail *j2 = minijail_new();
|
/system/firewalld/ |
Android.mk | 26 libbrillo-minijail \
|
/system/core/adb/daemon/ |
main.cpp | 110 std::unique_ptr<minijail, void (*)(minijail*)> jail(minijail_new(),
|