Home
last modified time | relevance | path

Searched refs:minijail (Results 1 – 18 of 18) sorted by relevance

/external/minijail/
Dlibminijail.h31 struct minijail;
34 struct minijail *minijail_new(void);
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,
46 void minijail_keep_supplementary_gids(struct minijail *j);
48 int minijail_change_user(struct minijail *j, const char *user);
50 int minijail_change_group(struct minijail *j, const char *group);
51 void minijail_use_seccomp(struct minijail *j);
52 void minijail_no_new_privs(struct minijail *j);
[all …]
Dlibminijail-private.h25 struct minijail;
32 extern size_t minijail_size(const struct minijail *j);
49 extern int minijail_marshal(const struct minijail *j,
60 extern int minijail_unmarshal(struct minijail *j,
70 extern int minijail_from_fd(int fd, struct minijail *j);
78 extern int minijail_to_fd(struct minijail *j, int fd);
83 extern void minijail_preexec(struct minijail *j);
88 extern void minijail_preenter(struct minijail *j);
Dlibminijail.c99 struct minijail { struct
177 void minijail_preenter(struct minijail *j) in minijail_preenter() argument
194 void minijail_preexec(struct minijail *j) in minijail_preexec()
219 struct minijail API *minijail_new(void) in minijail_new()
221 return calloc(1, sizeof(struct minijail)); in minijail_new()
224 void API minijail_change_uid(struct minijail *j, uid_t uid) in minijail_change_uid()
232 void API minijail_change_gid(struct minijail *j, gid_t gid) in minijail_change_gid()
240 void API minijail_set_supplementary_gids(struct minijail *j, size_t size, in minijail_set_supplementary_gids()
270 void API minijail_keep_supplementary_gids(struct minijail *j) { in minijail_keep_supplementary_gids()
274 int API minijail_change_user(struct minijail *j, const char *user) in minijail_change_user()
[all …]
Dminijail0.c21 static void set_user(struct minijail *j, const char *arg) in set_user()
36 static void set_group(struct minijail *j, const char *arg) in set_group()
51 static void skip_securebits(struct minijail *j, const char *arg) in skip_securebits()
63 static void use_caps(struct minijail *j, const char *arg) in use_caps()
75 static void add_binding(struct minijail *j, char *arg) in add_binding()
90 static void add_rlimit(struct minijail *j, char *arg) in add_rlimit()
106 static void add_mount(struct minijail *j, char *arg) in add_mount()
229 static int parse_args(struct minijail *j, int argc, char *argv[], in parse_args()
592 struct minijail *j = minijail_new(); in main()
Dscoped_minijail.h24 inline void operator()(minijail *j) const { in operator()
32 using ScopedMinijail = std::unique_ptr<minijail, ScopedMinijailDeleter>;
Dlibminijail_unittest.cc40 size_t minijail_get_tmpfs_size(const struct minijail *);
145 struct minijail *m_;
146 struct minijail *j_;
178 struct minijail *j = minijail_new(); in TEST()
238 struct minijail *j = minijail_new(); in TEST()
DHACKING8 but that don't take a 'struct minijail' argument, should go in system.{h|c}.
Dlibminijailpreload.c51 struct minijail *j; in fake_main()
/external/libbrillo/brillo/minijail/
Dminijail.h30 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);
[all …]
Dmock_minijail.h22 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));
34 bool(struct minijail* jail,
38 bool(struct minijail* jail,
42 bool(struct minijail* jail,
[all …]
Dminijail.cc25 struct minijail* Minijail::New() { in New()
29 void Minijail::Destroy(struct minijail* jail) { in Destroy()
33 void Minijail::DropRoot(struct minijail* jail, uid_t uid, gid_t gid) { in DropRoot()
38 bool Minijail::DropRoot(struct minijail* jail, in DropRoot()
47 void Minijail::EnterNewPidNamespace(struct minijail* jail) { in EnterNewPidNamespace()
51 void Minijail::MountTmp(struct minijail* jail) { in MountTmp()
55 void Minijail::UseSeccompFilter(struct minijail* jail, const char* path) { in UseSeccompFilter()
61 void Minijail::UseCapabilities(struct minijail* jail, uint64_t capmask) { in UseCapabilities()
65 void Minijail::ResetSignalMask(struct minijail* jail) { in ResetSignalMask()
69 void Minijail::Enter(struct minijail* jail) { in Enter()
[all …]
/external/libbrillo/
DAndroid.mk29 LOCAL_MODULE := libbrillo-minijail
30 LOCAL_SRC_FILES := brillo/minijail/minijail.cc
Dlibbrillo.gypi25 'libbrillo-minijail-<(libbase_ver)',
193 'target_name': 'libbrillo-minijail-<(libbase_ver)',
212 'brillo/minijail/minijail.cc',
/external/autotest/client/site_tests/security_Minijail_seccomp/
Dcontrol8 Tests seccomp_filter setup in minijail.
11 PURPOSE = "Regression test for seccomp_filter setup from minijail."
/external/autotest/client/site_tests/security_SandboxedServices/
Dexclude42 # The minijail daemon itself isn't useful to track as it just launches other
45 minijail-init
/external/minijail/test/
Dlibminijail_test.cpp115 minijail* j = minijail_new(); in main()
127 minijail* j2 = minijail_new(); in main()
/external/minijail/examples/
Ddrop_privs.cpp57 minijail *j = minijail_new(); in main()
/external/autotest/client/site_tests/security_AltSyscall/
Dcontrol9 Tests alt_syscall functionality using minijail.