Lines Matching refs:minijail

121 struct minijail {  struct
192 void minijail_preenter(struct minijail *j) in minijail_preenter() argument
208 void minijail_preexec(struct minijail *j) in minijail_preexec()
233 struct minijail API *minijail_new(void) in minijail_new()
235 return calloc(1, sizeof(struct minijail)); in minijail_new()
238 void API minijail_change_uid(struct minijail *j, uid_t uid) in minijail_change_uid()
246 void API minijail_change_gid(struct minijail *j, gid_t gid) in minijail_change_gid()
254 void API minijail_set_supplementary_gids(struct minijail *j, size_t size, in minijail_set_supplementary_gids()
284 void API minijail_keep_supplementary_gids(struct minijail *j) { in minijail_keep_supplementary_gids()
288 int API minijail_change_user(struct minijail *j, const char *user) in minijail_change_user()
323 int API minijail_change_group(struct minijail *j, const char *group) in minijail_change_group()
353 void API minijail_use_seccomp(struct minijail *j) in minijail_use_seccomp()
358 void API minijail_no_new_privs(struct minijail *j) in minijail_no_new_privs()
363 void API minijail_use_seccomp_filter(struct minijail *j) in minijail_use_seccomp_filter()
368 void API minijail_set_seccomp_filter_tsync(struct minijail *j) in minijail_set_seccomp_filter_tsync()
377 void API minijail_log_seccomp_filter_failures(struct minijail *j) in minijail_log_seccomp_filter_failures()
386 void API minijail_use_caps(struct minijail *j, uint64_t capmask) in minijail_use_caps()
405 void API minijail_capbset_drop(struct minijail *j, uint64_t capmask) in minijail_capbset_drop()
422 void API minijail_reset_signal_mask(struct minijail *j) in minijail_reset_signal_mask()
427 void API minijail_namespace_vfs(struct minijail *j) in minijail_namespace_vfs()
432 void API minijail_namespace_enter_vfs(struct minijail *j, const char *ns_path) in minijail_namespace_enter_vfs()
442 void API minijail_new_session_keyring(struct minijail *j) in minijail_new_session_keyring()
447 void API minijail_skip_remount_private(struct minijail *j) in minijail_skip_remount_private()
452 void API minijail_namespace_pids(struct minijail *j) in minijail_namespace_pids()
460 void API minijail_namespace_ipc(struct minijail *j) in minijail_namespace_ipc()
465 void API minijail_namespace_net(struct minijail *j) in minijail_namespace_net()
470 void API minijail_namespace_enter_net(struct minijail *j, const char *ns_path) in minijail_namespace_enter_net()
480 void API minijail_namespace_cgroups(struct minijail *j) in minijail_namespace_cgroups()
485 void API minijail_close_open_fds(struct minijail *j) in minijail_close_open_fds()
490 void API minijail_remount_proc_readonly(struct minijail *j) in minijail_remount_proc_readonly()
496 void API minijail_namespace_user(struct minijail *j) in minijail_namespace_user()
501 void API minijail_namespace_user_disable_setgroups(struct minijail *j) in minijail_namespace_user_disable_setgroups()
506 int API minijail_uidmap(struct minijail *j, const char *uidmap) in minijail_uidmap()
519 int API minijail_gidmap(struct minijail *j, const char *gidmap) in minijail_gidmap()
532 void API minijail_inherit_usergroups(struct minijail *j) in minijail_inherit_usergroups()
537 void API minijail_run_as_init(struct minijail *j) in minijail_run_as_init()
546 int API minijail_enter_chroot(struct minijail *j, const char *dir) in minijail_enter_chroot()
557 int API minijail_enter_pivot_root(struct minijail *j, const char *dir) in minijail_enter_pivot_root()
568 char API *minijail_get_original_path(struct minijail *j, in minijail_get_original_path()
610 size_t minijail_get_tmpfs_size(const struct minijail *j) in minijail_get_tmpfs_size()
615 void API minijail_mount_tmp(struct minijail *j) in minijail_mount_tmp()
620 void API minijail_mount_tmp_size(struct minijail *j, size_t size) in minijail_mount_tmp_size()
626 int API minijail_write_pid_file(struct minijail *j, const char *path) in minijail_write_pid_file()
635 int API minijail_add_to_cgroup(struct minijail *j, const char *path) in minijail_add_to_cgroup()
647 int API minijail_mount_with_data(struct minijail *j, const char *src, in minijail_mount_with_data()
700 int API minijail_mount(struct minijail *j, const char *src, const char *dest, in minijail_mount()
706 int API minijail_bind(struct minijail *j, const char *src, const char *dest, in minijail_bind()
717 static void clear_seccomp_options(struct minijail *j) in clear_seccomp_options()
727 static int seccomp_should_parse_filters(struct minijail *j) in seccomp_should_parse_filters()
775 static int parse_seccomp_filters(struct minijail *j, FILE *policy_file) in parse_seccomp_filters()
792 void API minijail_parse_seccomp_filters(struct minijail *j, const char *path) in minijail_parse_seccomp_filters()
809 void API minijail_parse_seccomp_filters_from_fd(struct minijail *j, int fd) in minijail_parse_seccomp_filters_from_fd()
826 int API minijail_use_alt_syscall(struct minijail *j, const char *table) in minijail_use_alt_syscall()
875 const struct minijail *j) in minijail_marshal_helper()
905 size_t API minijail_size(const struct minijail *j) in minijail_size()
913 int minijail_marshal(const struct minijail *j, char *buf, size_t available) in minijail_marshal()
921 int minijail_unmarshal(struct minijail *j, char *serialized, size_t length) in minijail_unmarshal()
1137 static int mount_one(const struct minijail *j, struct mountpoint *m) in mount_one()
1178 static int enter_chroot(const struct minijail *j) in enter_chroot()
1194 static int enter_pivot_root(const struct minijail *j) in enter_pivot_root()
1260 static int mount_tmp(const struct minijail *j) in mount_tmp()
1277 static int remount_proc_readonly(const struct minijail *j) in remount_proc_readonly()
1305 static void kill_child_and_die(const struct minijail *j, const char *msg) in kill_child_and_die()
1311 static void write_pid_file_or_die(const struct minijail *j) in write_pid_file_or_die()
1317 static void add_to_cgroups_or_die(const struct minijail *j) in add_to_cgroups_or_die()
1327 static void write_ugid_maps_or_die(const struct minijail *j) in write_ugid_maps_or_die()
1346 static void enter_user_namespace(const struct minijail *j) in enter_user_namespace()
1376 static void drop_ugid(const struct minijail *j) in drop_ugid()
1449 static void drop_caps(const struct minijail *j, unsigned int last_valid_cap) in drop_caps()
1506 static void set_seccomp_filter(const struct minijail *j) in set_seccomp_filter()
1601 void API minijail_enter(const struct minijail *j) in minijail_enter()
1787 int API minijail_from_fd(int fd, struct minijail *j) in minijail_from_fd()
1810 int API minijail_to_fd(struct minijail *j, int fd) in minijail_to_fd()
1931 int minijail_run_internal(struct minijail *j, const char *filename,
1936 int API minijail_run(struct minijail *j, const char *filename, in minijail_run()
1943 int API minijail_run_pid(struct minijail *j, const char *filename, in minijail_run_pid()
1950 int API minijail_run_pipe(struct minijail *j, const char *filename, in minijail_run_pipe()
1957 int API minijail_run_pid_pipes(struct minijail *j, const char *filename, in minijail_run_pid_pipes()
1965 int API minijail_run_no_preload(struct minijail *j, const char *filename, in minijail_run_no_preload()
1972 int API minijail_run_pid_pipes_no_preload(struct minijail *j, in minijail_run_pid_pipes_no_preload()
1983 int minijail_run_internal(struct minijail *j, const char *filename, in minijail_run_internal()
2352 int API minijail_kill(struct minijail *j) in minijail_kill()
2362 int API minijail_wait(struct minijail *j) in minijail_wait()
2398 void API minijail_destroy(struct minijail *j) in minijail_destroy()