Searched refs:attach (Results 1 - 15 of 15) sorted by relevance
/lxc/src/tests/ |
H A D | lxc-test-lxc-attach | 8 # This is a test script for the lxc-attach program. It tests whether I/O 28 # lxc-attach allocates a pty on the host and attaches any standard file 30 # refer to a pty are not attached. In order to determine whether lxc-attach 33 # lxc-attach -n busy -- hostname < /dev/null 36 # /dev/null is (a) left alone and (b) that lxc-attach does not fail. When 37 # lxc-attach fails we know that it's behavior has been altered, e.g. by trying 38 # to attach a standard file descriptor that does not refer to a pty. 63 echo "Tests for lxc-attach pty allocation and I/O redirection" 71 attach=$(lxc-attach [all...] |
H A D | attach.c | 32 #define TSTNAME "lxc-attach-test" 93 TSTOUT("Testing attach lsm label with func...\n"); 103 ret = ct->attach(ct, test_attach_lsm_func_func, NULL, &attach_options, &pid); 105 TSTERR("attach failed"); 142 TSTOUT("Testing attach lsm label with cmd...\n"); 151 ret = ct->attach(ct, lxc_attach_run_command, &command, &attach_options, &pid); 153 TSTERR("attach failed"); 204 TSTOUT("Testing attach with func...\n"); 217 ret = ct->attach(ct, test_attach_func_func, NULL, &attach_options, &pid); 219 TSTERR("attach faile [all...] |
H A D | lxc-test-unpriv | 186 run_cmd lxc-attach -n c1 -- /bin/true 206 run_cmd lxc-attach -n c1 -- /bin/true 209 echo "Testing lxc-attach and lxc-cgroup from different cgroup" 211 run_cmd lxc-attach -n c1 -- /bin/true
|
H A D | aa.c | 60 * 1 if the file open succeeded. Return -1 if attach itself failed - perhas an 80 ret = c->attach(c, test_attach_write_file, fnam, &attach_options, &pid); 82 fprintf(stderr, "attach failed\n"); 122 fprintf(stderr, "attach failed; skipping test\n"); 136 fprintf(stderr, "attach failed; skipping test\n");
|
/lxc/src/lxc/cgroups/ |
H A D | cgroup.h | 58 bool (*attach)(const char *name, const char *lxcpath, pid_t pid); member in struct:cgroup_ops
|
H A D | cgroup.c | 182 return ops->attach(name, lxcpath, pid);
|
H A D | cgfsng.c | 1470 * root can write to the files to attach. We chmod them 664 so that 1846 SYSERROR("Failed to attach %d to %s", (int)pid, fullpath); 2004 .attach = cgfsng_attach,
|
H A D | cgmanager.c | 1670 .attach = cgm_attach,
|
H A D | cgfs.c | 2703 .attach = lxc_cgroupfs_attach,
|
/lxc/src/lxc/tools/ |
H A D | lxc_attach.c | 38 #include "attach.h" 132 /* The identifiers for namespaces used with lxc-attach as given 135 * identifiers are: "mnt", "uts", and "net" whereas lxc-attach 193 .progname = "lxc-attach", 212 Don't attach to all the namespaces of the container\n\ 222 lxc-attach(1) manual page for details.\n\ 302 /* In the case of lxc-attach our peer pty will always be the current 328 if (c->attach(c, get_pty_on_host_callback, wrap, wrap->options, pid) < 0) 470 ret = c->attach(c, lxc_attach_run_command, &command, &attach_options, &pid); 472 ret = c->attach( [all...] |
H A D | lxc_ls.c | 348 * can simply attach to its namespace to retrieve nested containers. */ 515 check = c->attach(c, ls_get_wrapper, &wargs, &aopt, &out); 543 * attach to it we need another strategy to retrieve
|
/lxc/src/lxc/ |
H A D | lxccontainer.h | 624 int (*attach)(struct lxc_container *c, lxc_attach_exec_t exec_function, member in struct:lxc_container 631 * \param options See \ref attach options. 644 * \param options See \ref attach options.
|
H A D | lxccontainer.c | 41 #include "attach.h" 4194 c->attach = lxcapi_attach;
|
/lxc/src/lua-lxc/ |
H A D | lxc.lua | 94 function container:attach(what, ...) 95 return self.core:attach(what, ...)
|
/lxc/src/python-lxc/ |
H A D | lxc.c | 666 PyErr_Format(PyExc_TypeError, "attach: object not callable"); 674 ret = self->container->attach(self->container, lxc_attach_python_exec, 683 /* handle case where attach fails */ 1604 {"attach", (PyCFunction)Container_attach, 1606 "attach(run, payload) -> int\n" 1612 "attach(run, payload) -> int\n" 1870 "Runs a command when attaching, to use as the run parameter for attach " 1874 "attach or attach_wait"}, 1924 /* attach: environment variable handling */ 1928 /* attach [all...] |
Completed in 49 milliseconds