HomeSort by relevance Sort by last modified time
    Searched refs:minijail (Results 1 - 19 of 19) sorted by null

  /external/minijail/
libminijail-private.h 25 struct minijail;
32 extern size_t minijail_size(const struct minijail *j);
35 * @j minijail to serialize
43 * by minijail0.c and libminijailpreload.c. minijail flags that
49 extern int minijail_marshal(const struct minijail *j,
54 * @j minijail to initialize
60 extern int minijail_unmarshal(struct minijail *j,
65 * @j minijail to initialize
70 extern int minijail_from_fd(int fd, struct minijail *j);
73 * @j minijail to sen
    [all...]
libminijail.h 8 * 1) Construct a minijail with minijail_new()
32 struct minijail;
36 * A hook that can be used to execute code at various events during minijail
46 * The events during minijail setup in which hooks can run. All the events are
63 /* Allocates a new minijail with no restrictions. */
64 struct minijail *minijail_new(void);
67 * These functions add restrictions to the minijail. They are not applied until
71 void minijail_change_uid(struct minijail *j, uid_t uid);
72 void minijail_change_gid(struct minijail *j, gid_t gid);
74 void minijail_set_supplementary_gids(struct minijail *j, size_t size
    [all...]
minijail0_cli.h 17 struct minijail;
19 int parse_args(struct minijail *j, int argc, char *const argv[],
scoped_minijail.h 18 inline void operator()(minijail *j) const {
30 std::unique_ptr<minijail, mj::internal::ScopedMinijailDeleter>;
libminijail.c 122 struct minijail { struct
203 static void run_hooks_or_die(const struct minijail *j,
206 static void free_mounts_list(struct minijail *j)
226 void minijail_preenter(struct minijail *j)
247 void minijail_preexec(struct minijail *j)
278 /* Minijail API. */
280 struct minijail API *minijail_new(void)
282 struct minijail *j = calloc(1, sizeof(struct minijail));
287 void API minijail_change_uid(struct minijail *j, uid_t uid
    [all...]
minijail0.c 20 struct minijail *j = minijail_new();
minijail0_cli.c 32 static void set_user(struct minijail *j, const char *arg, uid_t *out_uid,
54 static void set_group(struct minijail *j, const char *arg, gid_t *out_gid)
75 static void skip_securebits(struct minijail *j, const char *arg)
87 static void use_caps(struct minijail *j, const char *arg)
131 static void add_binding(struct minijail *j, char *arg)
150 static void add_rlimit(struct minijail *j, char *arg)
198 static void add_mount(struct minijail *j, char *arg)
285 static void set_ugid_mapping(struct minijail *j, int set_uidmap, uid_t uid,
336 static void use_chroot(struct minijail *j, const char *path, int *chroot,
351 static void use_pivot_root(struct minijail *j, const char *path
    [all...]
libminijail_unittest.cc 5 * Test platform independent logic of Minijail using gtest.
99 size_t minijail_get_tmpfs_size(const struct minijail *);
204 struct minijail *m_;
205 struct minijail *j_;
223 struct minijail* j = minijail_new();
281 struct minijail *j = minijail_new();
335 struct minijail *j = minijail_new();
381 struct minijail *j = minijail_new();
425 struct minijail *j = minijail_new();
459 struct minijail *j = minijail_new()
    [all...]
libminijailpreload.c 51 struct minijail *j;
71 die("preload: failed to parse minijail from parent");
minijail0_cli_unittest.cc 7 * Note: We don't verify that the minijail struct was set correctly from these
49 struct minijail *j = minijail_new();
367 // runtime kernel. Minijail will simply write verbatim what the user gave
  /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 Minijail::Minijail() {}
16 Minijail::~Minijail() {}
19 Minijail* Minijail::GetInstance() {
20 static Minijail* minijail = new Minijail() local
    [all...]
  /external/minijail/test/
libminijail_test.cpp 115 minijail* j = minijail_new();
127 minijail* j2 = minijail_new();
  /cts/tests/tests/os/jni/
android_os_cts_SeccompTest.cpp 43 minijail* j = minijail_new();
  /external/minijail/examples/
drop_privs.cpp 57 minijail *j = minijail_new();
68 // minijail *j2 = minijail_new();
  /device/google/cuttlefish_vmm/
rebuild_gce.sh 56 # minijail does not exist in upstream linux distros.
57 git clone https://android.googlesource.com/platform/external/minijail
58 cd minijail
  /frameworks/av/media/codec2/hidl/services/
vendor.cpp 23 #include <minijail.h>
  /cts/tests/tests/os/
Android.mk 59 # Do not compress minijail policy files.

Completed in 1659 milliseconds