Searched refs:self (Results 1 - 18 of 18) sorted by relevance

/lxc/src/python-lxc/lxc/
H A D__init__.py39 def __init__(self, container, index):
40 self.container = container
41 self.index = index
43 for key in self.container.get_keys("lxc.network.%s" % self.index):
45 self.props[key.replace(".", "_")] = key
47 self.props[key] = key
49 if not self.props:
52 def __delattr__(self, key):
54 return object.__delattr__(self, ke
[all...]
/lxc/src/python-lxc/
H A Dlxc.c262 LXC_arch_to_personality(PyObject *self, PyObject *arg) argument
291 LXC_attach_run_command(PyObject *self, PyObject *arg) argument
323 LXC_attach_run_shell(PyObject *self, PyObject *arg) argument
333 LXC_get_global_config_item(PyObject *self, PyObject *args, PyObject *kwds) argument
354 LXC_get_version(PyObject *self, PyObject *args) argument
367 LXC_list_containers(PyObject *self, PyObject *args, PyObject *kwds) argument
436 Container_dealloc(Container* self) argument
438 lxc_container_put(self->container);
439 Py_TYPE(self)->tp_free((PyObject*)self);
443 Container_init(Container *self, PyObject *args, PyObject *kwds) argument
476 Container *self; local
485 Container_config_file_name(Container *self, void *closure) argument
498 Container_controllable(Container *self, void *closure) argument
508 Container_defined(Container *self, void *closure) argument
518 Container_init_pid(Container *self, void *closure) argument
524 Container_name(Container *self, void *closure) argument
534 Container_running(Container *self, void *closure) argument
544 Container_state(Container *self, void *closure) argument
559 Container_attach_interface(Container *self, PyObject *args, PyObject *kwds) argument
594 Container_detach_interface(Container *self, PyObject *args, PyObject *kwds) argument
619 Container_add_device_node(Container *self, PyObject *args, PyObject *kwds) argument
655 Container_attach_and_possibly_wait(Container *self, PyObject *args, PyObject *kwds, int wait) argument
696 Container_attach(Container *self, PyObject *args, PyObject *kwds) argument
702 Container_attach_wait(Container *self, PyObject *args, PyObject *kwds) argument
708 Container_clear_config(Container *self, PyObject *args, PyObject *kwds) argument
716 Container_clear_config_item(Container *self, PyObject *args, PyObject *kwds) argument
733 Container_clone(Container *self, PyObject *args, PyObject *kwds) argument
797 Container_console(Container *self, PyObject *args, PyObject *kwds) argument
816 Container_console_getfd(Container *self, PyObject *args, PyObject *kwds) argument
833 Container_create(Container *self, PyObject *args, PyObject *kwds) argument
880 Container_destroy(Container *self, PyObject *args, PyObject *kwds) argument
890 Container_freeze(Container *self, PyObject *args, PyObject *kwds) argument
900 Container_get_cgroup_item(Container *self, PyObject *args, PyObject *kwds) argument
936 Container_get_config_item(Container *self, PyObject *args, PyObject *kwds) argument
976 Container_get_config_path(Container *self, PyObject *args, PyObject *kwds) argument
990 Container_get_keys(Container *self, PyObject *args, PyObject *kwds) argument
1026 Container_get_interfaces(Container *self) argument
1077 Container_get_ips(Container *self, PyObject *args, PyObject *kwds) argument
1137 Container_get_running_config_item(Container *self, PyObject *args, PyObject *kwds) argument
1161 Container_load_config(Container *self, PyObject *args, PyObject *kwds) argument
1186 Container_reboot(Container *self, PyObject *args, PyObject *kwds) argument
1196 Container_rename(Container *self, PyObject *args, PyObject *kwds) argument
1213 Container_remove_device_node(Container *self, PyObject *args, PyObject *kwds) argument
1249 Container_save_config(Container *self, PyObject *args, PyObject *kwds) argument
1274 Container_set_cgroup_item(Container *self, PyObject *args, PyObject *kwds) argument
1292 Container_set_config_item(Container *self, PyObject *args, PyObject *kwds) argument
1310 Container_set_config_path(Container *self, PyObject *args, PyObject *kwds) argument
1327 Container_shutdown(Container *self, PyObject *args, PyObject *kwds) argument
1344 Container_snapshot(Container *self, PyObject *args, PyObject *kwds) argument
1379 Container_snapshot_destroy(Container *self, PyObject *args, PyObject *kwds) argument
1396 Container_snapshot_list(Container *self, PyObject *args, PyObject *kwds) argument
1434 Container_snapshot_restore(Container *self, PyObject *args, PyObject *kwds) argument
1452 Container_start(Container *self, PyObject *args, PyObject *kwds) argument
1515 Container_stop(Container *self, PyObject *args, PyObject *kwds) argument
1525 Container_unfreeze(Container *self, PyObject *args, PyObject *kwds) argument
1535 Container_wait(Container *self, PyObject *args, PyObject *kwds) argument
[all...]
/lxc/src/lua-lxc/
H A Dlxc.lua60 nextc = string.find(self, delim, start)
62 table.insert(cols, string.sub(self, start, nextc-1))
65 table.insert(cols, string.sub(self, start, string.len(self)))
68 until nextc == nil or start > #self
95 return self.core:attach(what, ...)
99 return self.core:config_file_name()
103 return self.core:defined()
107 return self.core:init_pid()
111 return self
[all...]
/lxc/src/lxc/tools/
H A Dlxc-top.lua53 nextc = string.find(self, delim, start)
55 table.insert(cols, string.sub(self, start, nextc-1))
58 table.insert(cols, string.sub(self, start, string.len(self)))
61 until nextc == nil or start > #self
H A Dlxc-checkconfig.in121 CGROUP_MNT_PATH=`print_cgroups cgroup /proc/self/mounts | head -n 1`
/lxc/templates/
H A Dlxc-cirros.in51 [ -e /proc/self/uid_map ] || { echo no; return; }
52 [ "$(wc -l /proc/self/uid_map | awk '{ print $1 }')" -eq 1 ] || { echo yes; return; }
53 line=$(awk '{ print $1 " " $2 " " $3 }' /proc/self/uid_map)
H A Dlxc-download.in166 [ -e /proc/self/uid_map ] || { echo no; return; }
171 done < /proc/self/uid_map
173 [ "$(cat /proc/self/uid_map)" = "$(cat /proc/1/uid_map)" ] && \
H A Dlxc-busybox.in31 [ -e /proc/self/uid_map ] || { echo no; return; }
32 [ "$(wc -l /proc/self/uid_map | awk '{ print $1 }')" -eq 1 ] || { echo yes; return; }
33 line=$(awk '{ print $1 " " $2 " " $3 }' /proc/self/uid_map)
H A Dlxc-ubuntu-cloud.in39 [ -e /proc/self/uid_map ] || { echo no; return; }
40 [ "$(wc -l /proc/self/uid_map | awk '{ print $1 }')" -eq 1 ] || { echo yes; return; }
41 line=$(awk '{ print $1 " " $2 " " $3 }' /proc/self/uid_map)
H A Dlxc-altlinux.in151 ln -s /proc/self/fd ${dev_path}/fd
H A Dlxc-debian.in79 ln -s /proc/self/mounts "$rootfs/etc/mtab"
H A Dlxc-opensuse.in224 ln -sf /proc/self/mounts $cache/partial-$arch/etc/mtab
H A Dlxc-slackware.in127 ln -s /proc/self/fd ${DEV}/fd
/lxc/src/tests/
H A Dlxc-test-apparmor-mount26 if [ -f /proc/self/ns/cgroup ]; then
120 for d in $(cut -d : -f 2 /proc/self/cgroup); do
H A Dlxc-test-usernic.in93 for d in $(cut -d : -f 2 /proc/self/cgroup); do
H A Dlxc-test-unpriv136 for d in $(cut -d : -f 2 /proc/self/cgroup); do
H A Dlxc-test-automount25 [ -f /proc/self/ns/cgroup ] && exit 0
/lxc/src/lxc/
H A Dstart.c200 dir = opendir("/proc/self/fd");
498 pid_t self = getpid(); local
510 ns_info[i].proc_name, self, handler->nsfd[i]);
820 * earlier we end up with a wrong view of /proc/self/cgroup. For
823 * /proc/self/cgroup would show us:

Completed in 541 milliseconds