]> git.proxmox.com Git - mirror_lxc.git/commit
liblxc: Handle missing PR_CAPBSET_DROP definition
authorMatt Helsley <matthltc@us.ibm.com>
Sun, 8 Mar 2009 16:09:27 +0000 (17:09 +0100)
committerDaniel Lezcano <dlezcano@fr.ibm.com>
Sun, 8 Mar 2009 16:09:27 +0000 (17:09 +0100)
commit656994bbfabe378c8e9e5b40ce93eac074a0f7e4
tree5a07170ec997ef3a75b8ccb746ab7f11d4318cee
parent54b1eb68600edde8d54d6d43fdb9474f4ab1c4d9
liblxc: Handle missing PR_CAPBSET_DROP definition

On distros with older headers liblxc fails to build because PR_CAPBSET_DROP is
not defined by including /usr/include/sys/prctl.h. This adds an autoconf
test and, if not present, defines it. When prctl() is called on systems that
do not support PR_CAPBSET_DROP we should expect EINVAL. This case is already
handled by the liblxc code so no further changes are needed.

Signed-off-by: Matt Helsley <matthltc@us.ibm.com>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
configure.in
src/lxc/start.c