]> git.ipfire.org Git - thirdparty/lxc.git/commit
attach: get personality through get_config command
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Thu, 22 May 2014 21:53:40 +0000 (16:53 -0500)
committerStéphane Graber <stgraber@ubuntu.com>
Sun, 25 May 2014 14:40:29 +0000 (10:40 -0400)
commit9b8e3c96d87b7208c11204d46f4dd946e0060c95
treeab408ff93c539c9656a573fa13b82c85005ca18c
parent7e36f87e2560ede94f171f14b6be1cfd5498c0d6
attach: get personality through get_config command

Newer kernels optionally disallow reading /proc/$$/personality by
non-root users.  We can get the personality through the lxc command
interface, so do so.

Also try to be more consistent about personality being a signed long.
We had it as int, unsigned long, signed long throughout the code.

(This addresses bug
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1322067 :
3.15.0-1.x breaks lxc-attach for unprivileged containers)

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
src/lxc/attach.c
src/lxc/attach.h
src/lxc/conf.h