diff options
author | Christian Seiler <christian@iwakd.de> | 2012-02-23 09:57:14 +0100 |
---|---|---|
committer | Daniel Lezcano <daniel.lezcano@free.fr> | 2012-02-23 09:57:14 +0100 |
commit | e073270504f2f5c5df90bfcc4917d2d20b73d1e7 (patch) | |
tree | 4810a46166fffd8b0238630d3b12a5236d2237df /src/lxc/namespace.h | |
parent | Add lxc_config_parse_arch to parse architecture strings (diff) | |
download | lxc-e073270504f2f5c5df90bfcc4917d2d20b73d1e7.tar.gz lxc-e073270504f2f5c5df90bfcc4917d2d20b73d1e7.tar.bz2 lxc-e073270504f2f5c5df90bfcc4917d2d20b73d1e7.zip |
Add attach.[ch]: Helper functions for lxc-attach
The following helper functions for lxc-attach are added to a new file
attach.c:
- lxc_proc_get_context_info: Get cgroup memberships, personality and
capability bounding set from /proc for a given process.
- lxc_proc_free_context_info: Free the data structure responsible
- lxc_attach_proc_to_cgroups: Add the process specified by the pid
parameter to the cgroups given by the ctx parameter.
- lxc_attach_drop_privs: Drop capabilities to the capability mask given in
the ctx parameter.
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
Diffstat (limited to 'src/lxc/namespace.h')
0 files changed, 0 insertions, 0 deletions