Home
last modified time | relevance | path

Searched refs:cfjail (Results 1 – 6 of 6) sorted by relevance

/freebsd/usr.sbin/jail/
H A Djailp.h170 TAILQ_HEAD(cfjails, cfjail);
173 struct cfjail { struct
174 TAILQ_ENTRY(cfjail) tq;
180 struct cfjail *cfparent; argument
197 struct cfjail *j[2]; argument
209 extern int create_jail(struct cfjail *j);
210 extern void failed(struct cfjail *j);
211 extern void jail_note(const struct cfjail *j, const char *fmt, ...);
212 extern void jail_warnx(const struct cfjail *j, const char *fmt, ...);
214 extern int next_command(struct cfjail *j);
[all …]
H A Dstate.c41 static void dep_add(struct cfjail *from, struct cfjail *to, unsigned flags);
44 static struct cfjail *find_jail(const char *name);
45 static struct cfjail *running_jail(const char *name, int flags);
47 static struct cfjail **jails_byname;
56 struct cfjail *j, *dj; in dep_setup()
86 jails_byname = emalloc(njails * sizeof(struct cfjail *)); in dep_setup()
90 qsort(jails_byname, njails, sizeof(struct cfjail *), cmp_jailptr); in dep_setup()
155 dep_check(struct cfjail *j) in dep_check()
158 struct cfjail *dj; in dep_check()
232 dep_done(struct cfjail *j, unsigned flags) in dep_done()
[all …]
H A Dcommand.c61 struct cfjail *j;
69 static int run_command(struct cfjail *j);
70 static int add_proc(struct cfjail *j, pid_t pid);
71 static void clear_procs(struct cfjail *j);
72 static struct cfjail *find_proc(pid_t pid);
73 static int term_procs(struct cfjail *j);
74 static int get_user_info(struct cfjail *j, const char *username,
76 static int check_path(struct cfjail *j, const char *pname, const char *path,
103 next_command(struct cfjail *j) in next_command()
180 finish_command(struct cfjail *j) in finish_command()
[all …]
H A Djail.c61 static void clear_persist(struct cfjail *j);
62 static int update_jail(struct cfjail *j);
63 static int rdtun_params(struct cfjail *j, int dofail);
64 static void running_jid(struct cfjail *j);
65 static void jail_quoted_warnx(const struct cfjail *j, const char *name_msg,
67 static int jailparam_set_note(const struct cfjail *j, struct jailparam *jp,
69 static void print_jail(FILE *fp, struct cfjail *j, int oldcl, int running);
168 struct cfjail *j; in main()
574 failed(struct cfjail *j) in failed()
622 jail_note(const struct cfjail *j, const char *fmt, ...) in jail_note()
[all …]
H A Djailparse.y41 static struct cfjail *current_jail;
42 static struct cfjail *global_jail;
75 struct cfjail *j = current_jail;
98 struct cfjail *j = add_jail();
H A Dconfig.c135 struct cfjail *j, *tj, *wj; in load_config()
333 struct cfjail *
336 struct cfjail *j; in add_jail()
338 j = emalloc(sizeof(struct cfjail)); in add_jail()
339 memset(j, 0, sizeof(struct cfjail)); in add_jail()
352 add_param(struct cfjail *j, const struct cfparam *p, enum intparam ipnum, in add_param()
517 check_intparams(struct cfjail *j) in check_intparams()
747 import_params(struct cfjail *j) in import_params()