use memmove for overlapping region

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Add MovePidAbs method

This is the only way for a task (which must either be root in the
proxy's namespace, or root and in the cgmanager's pid namespace)
to escape upward from his current cgroup.

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
rename req_cgroup to cgroup

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
check for sane cgroup in all methods

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
cgproxy: fix --check-master logic

if cgproxy has already run, then we have to check against
/sys/fs/cgroup/cgmanager.lower/sock, not /sys/fs/cgroup/cgmanager/sock

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
bump api version to 2

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
bump package version to 0.19

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>