]> git.ipfire.org Git - thirdparty/lxc.git/commit
Add attach.[ch]: Helper functions for lxc-attach
authorChristian Seiler <christian@iwakd.de>
Thu, 23 Feb 2012 08:57:14 +0000 (09:57 +0100)
committerDaniel Lezcano <daniel.lezcano@free.fr>
Thu, 23 Feb 2012 08:57:14 +0000 (09:57 +0100)
commite073270504f2f5c5df90bfcc4917d2d20b73d1e7
tree4810a46166fffd8b0238630d3b12a5236d2237df
parent525f00025700ae351b9c53dfb0d5f10a70d6b083
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>
src/lxc/Makefile.am
src/lxc/attach.c [new file with mode: 0644]
src/lxc/attach.h [new file with mode: 0644]