Searched defs:conf (Results 1 - 25 of 31) sorted by relevance

12

/lxc/src/lxc/
H A Dlxcseccomp.h27 #include "conf.h"
30 int lxc_seccomp_load(struct lxc_conf *conf);
31 int lxc_read_seccomp_config(struct lxc_conf *conf);
32 void lxc_seccomp_free(struct lxc_conf *conf);
34 static inline int lxc_seccomp_load(struct lxc_conf *conf) { argument
38 static inline int lxc_read_seccomp_config(struct lxc_conf *conf) { argument
42 static inline void lxc_seccomp_free(struct lxc_conf *conf) { argument
43 if (conf->seccomp) {
44 free(conf->seccomp);
45 conf
[all...]
H A Dexecute.c30 #include "conf.h"
55 if (!handler->conf->rootfs.path) {
73 if (!handler->conf->rootfs.path) {
114 struct lxc_conf *conf, const char *lxcpath, bool backgrounded)
121 if (lxc_check_inherited(conf, false, -1))
124 conf->is_execute = 1;
125 return __lxc_start(name, conf, &execute_start_ops, &args, lxcpath, backgrounded);
113 lxc_execute(const char *name, char *const argv[], int quiet, struct lxc_conf *conf, const char *lxcpath, bool backgrounded) argument
H A Dstart.h52 struct lxc_conf *conf; member in struct:lxc_handler
72 extern int lxc_check_inherited(struct lxc_conf *conf, bool closeall, int fd_to_ignore);
H A Dconsole.c39 #include "conf.h"
210 struct lxc_conf *conf)
212 struct lxc_console *console = &conf->console;
214 if (conf->is_execute) {
219 if (!conf->rootfs.path) {
359 int lxc_console_allocate(struct lxc_conf *conf, int sockfd, int *ttyreq) argument
362 struct lxc_tty_info *tty_info = &conf->tty_info;
363 struct lxc_console *console = &conf->console;
401 void lxc_console_free(struct lxc_conf *conf, int fd) argument
404 struct lxc_tty_info *tty_info = &conf
209 lxc_console_mainloop_add(struct lxc_epoll_descr *descr, struct lxc_conf *conf) argument
509 lxc_console_create(struct lxc_conf *conf) argument
[all...]
H A Dlxcutmp.c59 #include "conf.h"
400 struct lxc_conf *conf = handler->conf; local
420 conf->reboot = 1;
H A Dseccomp.c38 static int parse_config_v1(FILE *f, struct lxc_conf *conf) argument
50 conf->seccomp_ctx,
305 static int parse_config_v2(FILE *f, char *line, struct lxc_conf *conf) argument
395 ret = seccomp_reset(conf->seccomp_ctx, default_policy_action);
400 if (seccomp_attr_set(conf->seccomp_ctx, SCMP_FLTATR_CTL_NNP, 0)) {
405 if (seccomp_attr_set(conf->seccomp_ctx, SCMP_FLTATR_ATL_TSKIP, 1)) {
577 if (!do_resolve_add_rule(SCMP_ARCH_NATIVE, line, conf->seccomp_ctx, action))
591 if (!do_resolve_add_rule(SCMP_ARCH_NATIVE, line, conf->seccomp_ctx, action))
604 if (seccomp_merge(conf->seccomp_ctx, compat_ctx[0]) != 0 ||
605 (compat_ctx[1] != NULL && seccomp_merge(conf
624 parse_config_v2(FILE *f, char *line, struct lxc_conf *conf) argument
638 parse_config(FILE *f, struct lxc_conf *conf) argument
707 lxc_read_seccomp_config(struct lxc_conf *conf) argument
757 lxc_seccomp_load(struct lxc_conf *conf) argument
776 lxc_seccomp_free(struct lxc_conf *conf) argument
[all...]
H A Dstart.c62 #include "conf.h"
80 static bool do_destroy_container(struct lxc_conf *conf);
186 * - If lxc-start was passed "-C", then conf->close_all_fds will be true, in
190 int lxc_check_inherited(struct lxc_conf *conf, bool closeall, int fd_to_ignore) argument
196 if (conf && conf->close_all_fds)
353 if (lxc_console_mainloop_add(&descr, handler->conf)) {
363 if (handler->conf->need_utmp_watch) {
385 struct lxc_handler *lxc_init(const char *name, struct lxc_conf *conf, const char *lxcpath) argument
397 handler->conf
606 must_drop_cap_sys_boot(struct lxc_conf *conf) argument
956 save_phys_nics(struct lxc_conf *conf) argument
999 struct lxc_conf *conf = handler->conf; local
1299 __lxc_start(const char *name, struct lxc_conf *conf, struct lxc_operations* ops, void *data, const char *lxcpath, bool backgrounded) argument
1456 lxc_start(const char *name, char *const argv[], struct lxc_conf *conf, const char *lxcpath, bool backgrounded) argument
1519 do_destroy_container(struct lxc_conf *conf) argument
[all...]
/lxc/src/lxc/lsm/
H A Dnop.c32 static int nop_process_label_set(const char *label, struct lxc_conf *conf, argument
H A Dlsm.h36 int (*process_label_set)(const char *label, struct lxc_conf *conf,
45 int lsm_process_label_set(const char *label, struct lxc_conf *conf,
53 struct lxc_conf *conf, int use_default, int on_exec) { return 0; }
52 lsm_process_label_set(const char *label, struct lxc_conf *conf, int use_default, int on_exec) argument
H A Dlsm.c32 #include "conf.h"
88 int lsm_process_label_set(const char *label, struct lxc_conf *conf, argument
95 return drv->process_label_set(label, conf, use_default, on_exec);
H A Dselinux.c32 #include "conf.h"
66 * @conf : the container configuration to use @label is NULL
74 static int selinux_process_label_set(const char *inlabel, struct lxc_conf *conf, argument
77 const char *label = inlabel ? inlabel : conf->lsm_se_context;
H A Dapparmor.c33 #include "conf.h"
166 * @conf : the container configuration to use @label is NULL
174 static int apparmor_process_label_set(const char *inlabel, struct lxc_conf *conf, argument
177 const char *label = inlabel ? inlabel : conf->lsm_aa_profile;
219 if (!conf->lsm_aa_allow_incomplete) {
/lxc/src/lxc/tools/
H A Dlxc_execute.c37 #include "conf.h"
108 struct lxc_conf *conf; local
143 conf = lxc_conf_init();
144 if (!conf) {
149 if (rcfile && lxc_config_read(rcfile, conf, NULL)) {
154 if (lxc_config_define_load(&defines, conf))
158 conf->init_uid = my_args.uid;
161 conf->init_gid = my_args.gid;
163 ret = lxc_execute(my_args.name, my_args.argv, my_args.quiet, conf, my_args.lxcpath[0], false);
165 lxc_conf_free(conf);
[all...]
H A Dlxc_start.c47 #include "conf.h"
207 struct lxc_conf *conf; local
311 conf = c->lxc_conf;
313 if (lxc_config_define_load(&defines, conf))
321 if (ensure_path(&conf->console.path, my_args.console) < 0) {
326 if (ensure_path(&conf->console.log_path, my_args.console_log) < 0) {
350 conf->inherit_ns_fd[i] = fd;
H A Dlxc_attach.c285 struct lxc_conf *conf; local
295 conf = c->lxc_conf;
296 free(conf->console.log_path);
298 conf->console.log_path = strdup(my_args.console_log);
300 conf->console.log_path = NULL;
309 free(conf->console.path);
310 conf->console.path = strdup("/dev/tty");
311 if (!conf->console.path)
315 if (lxc_console_create(conf) < 0)
317 ts = conf
[all...]
/lxc/src/lxc/bdev/
H A Dlxcdir.c40 int snap, uint64_t newsize, struct lxc_conf *conf)
38 dir_clonepaths(struct bdev *orig, struct bdev *new, const char *oldname, const char *cname, const char *oldpath, const char *lxcpath, int snap, uint64_t newsize, struct lxc_conf *conf) argument
H A Dlxcloop.c48 int snap, uint64_t newsize, struct lxc_conf *conf)
46 loop_clonepaths(struct bdev *orig, struct bdev *new, const char *oldname, const char *cname, const char *oldpath, const char *lxcpath, int snap, uint64_t newsize, struct lxc_conf *conf) argument
H A Dlxcrbd.c40 int snap, uint64_t newsize, struct lxc_conf *conf)
38 rbd_clonepaths(struct bdev *orig, struct bdev *new, const char *oldname, const char *cname, const char *oldpath, const char *lxcpath, int snap, uint64_t newsize, struct lxc_conf *conf) argument
H A Dlxcaufs.c45 int snap, uint64_t newsize, struct lxc_conf *conf)
61 if (am_unpriv() && chown_mapped_root(new->dest, conf) < 0)
88 if (am_unpriv() && chown_mapped_root(delta, conf) < 0)
129 if (am_unpriv() && chown_mapped_root(ndelta, conf) < 0)
136 ret = userns_exec_1(conf, rsync_delta_wrapper, &rdata);
43 aufs_clonepaths(struct bdev *orig, struct bdev *new, const char *oldname, const char *cname, const char *oldpath, const char *lxcpath, int snap, uint64_t newsize, struct lxc_conf *conf) argument
H A Dlxclvm.c280 uint64_t newsize, struct lxc_conf *conf)
278 lvm_clonepaths(struct bdev *orig, struct bdev *new, const char *oldname, const char *cname, const char *oldpath, const char *lxcpath, int snap, uint64_t newsize, struct lxc_conf *conf) argument
H A Dlxcnbd.c53 bool attach_nbd(char *src, struct lxc_conf *conf) argument
73 conf->nbd_idx = i;
92 int snap, uint64_t newsize, struct lxc_conf *conf)
90 nbd_clonepaths(struct bdev *orig, struct bdev *new, const char *oldname, const char *cname, const char *oldpath, const char *lxcpath, int snap, uint64_t newsize, struct lxc_conf *conf) argument
H A Dlxczfs.c206 uint64_t newsize, struct lxc_conf *conf)
204 zfs_clonepaths(struct bdev *orig, struct bdev *new, const char *oldname, const char *cname, const char *oldpath, const char *lxcpath, int snap, uint64_t newsize, struct lxc_conf *conf) argument
H A Dlxcbtrfs.c363 struct lxc_conf *conf)
401 return userns_exec_1(conf, btrfs_snapshot_wrapper, &sdata);
360 btrfs_clonepaths(struct bdev *orig, struct bdev *new, const char *oldname, const char *cname, const char *oldpath, const char *lxcpath, int snap, uint64_t newsize, struct lxc_conf *conf) argument
H A Dbdev.c50 #include "conf.h"
204 static const struct bdev_type *bdev_query(struct lxc_conf *conf, const char *src);
261 bool attach_block_device(struct lxc_conf *conf) argument
265 if (!conf->rootfs.path)
267 path = conf->rootfs.path;
274 if (!attach_nbd(path, conf))
279 bool bdev_can_backup(struct lxc_conf *conf) argument
281 struct bdev *bdev = bdev_init(conf, NULL, NULL, NULL);
497 bool bdev_destroy(struct lxc_conf *conf) argument
502 r = bdev_init(conf, con
515 struct lxc_conf *conf = data; local
533 bdev_init(struct lxc_conf *conf, const char *src, const char *dst, const char *mntopts) argument
567 bdev_is_dir(struct lxc_conf *conf, const char *path) argument
607 detach_block_device(struct lxc_conf *conf) argument
784 rootfs_is_blockdev(struct lxc_conf *conf) argument
857 bdev_query(struct lxc_conf *conf, const char *src) argument
[all...]
H A Dlxcoverlay.c31 #include "conf.h"
50 struct lxc_conf *conf);
59 int snap, uint64_t newsize, struct lxc_conf *conf)
75 if (am_unpriv() && chown_mapped_root(new->dest, conf) < 0)
107 if (am_unpriv() && chown_mapped_root(delta, conf) < 0)
132 if (am_unpriv() && chown_mapped_root(work, conf) < 0)
176 if (am_unpriv() && chown_mapped_root(ndelta, conf) < 0)
207 if (am_unpriv() && chown_mapped_root(work, conf) < 0)
224 return ovl_do_rsync(orig, new, conf);
745 static int ovl_do_rsync(struct bdev *orig, struct bdev *new, struct lxc_conf *conf) argument
57 ovl_clonepaths(struct bdev *orig, struct bdev *new, const char *oldname, const char *cname, const char *oldpath, const char *lxcpath, int snap, uint64_t newsize, struct lxc_conf *conf) argument
[all...]

Completed in 63 milliseconds

12