Searched refs:command (Results 1 - 7 of 7) sorted by relevance

/lxc/src/lxc/tools/
H A Dlxc_attach.c247 lxc_attach_command_t *command; member in struct:wrapargs
273 if (wrap->command->program)
274 lxc_attach_run_command(wrap->command);
379 lxc_attach_command_t command = (lxc_attach_command_t){.program = NULL}; local
448 command.program = my_args.argv[0];
449 command.argv = (char**)my_args.argv;
453 .command = &command,
469 if (command.program)
470 ret = c->attach(c, lxc_attach_run_command, &command,
[all...]
/lxc/src/tests/
H A Dattach.c139 lxc_attach_command_t command = {"cat", argv}; local
151 ret = ct->attach(ct, lxc_attach_run_command, &command, &attach_options, &pid);
252 lxc_attach_command_t command = {"cmp", argv}; local
255 TSTOUT("Testing attach with success command...\n");
256 ret = ct->attach(ct, lxc_attach_run_command, &command, &attach_options, &pid);
264 TSTERR("attach success command got bad return %d", ret);
268 TSTOUT("Testing attach with failure command...\n");
270 ret = ct->attach(ct, lxc_attach_run_command, &command, &attach_options, &pid);
278 TSTERR("attach failure command got bad return %d", ret);
/lxc/src/lxc/
H A Dattach.c122 char *command = NULL; local
139 command = malloc(strlen(lsm_label) + strlen("changeprofile ") + 1);
140 if (!command) {
145 size = sprintf(command, "changeprofile %s", lsm_label);
151 if (write(lsm_labelfd, command, size + 1) < 0) {
152 SYSERROR("Unable to set LSM label: %s.", command);
155 INFO("Set LSM label to: %s.", command);
169 free(command);
H A Dutils.h190 /* popen(command, "re") replacement that restores default signal mask
192 * In short, popen(command, "re") does pipe() + fork() + exec()
193 * while lxc_popen(command) does pipe() + fork() + sigprocmask() + exec().
197 extern struct lxc_popen_FILE *lxc_popen(const char *command);
H A Dutils.c469 extern struct lxc_popen_FILE *lxc_popen(const char *command) argument
522 execl("/bin/sh", "sh", "-c", command, (char *) NULL);
H A Dlxccontainer.c1181 * we prepend the template command with:
3300 lxc_attach_command_t command; local
3307 command.program = (char*)program;
3308 command.argv = (char**)argv;
3309 r = lxc_attach(c->name, c->config_path, lxc_attach_run_command, &command, options, &pid);
4027 ERROR("invalid migrate command %u", cmd);
4368 if (!p2 || strncmp(p2, "/command", 8) != 0)
4403 * fact that the command socket exists.
/lxc/templates/
H A Dlxc-slackware.in285 if [ "$command" = "reboot" ]; then
715 echo "'installpkg' command is missing."
721 echo "'slackpkg' command is missing."

Completed in 36 milliseconds