]> 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>
Wed, 4 Jun 2014 14:55:15 +0000 (10:55 -0400)
commitdcfd0c996df288b28fbffb3d61fa460adadcc07a
tree66a289fa964dde43e2e32b139cc074f45d01974c
parent70f3eb4e850daa87ab50e3515380520ed44363d3
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