From: Michel Normand Date: Thu, 21 Jan 2010 16:21:33 +0000 (+0100) Subject: Add some define to compile on rhel5u1 X-Git-Tag: lxc-0.6.5~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b09094da2d1b08dd912f4c18c3bf0fcfdcbd3652;p=thirdparty%2Flxc.git Add some define to compile on rhel5u1 the last patch commit 81810dd120291b78daf7c6833e6fcbca0289aad5 make lxc to not compile anymore on rhel5u1 Signed-off-by: Michel Normand Signed-off-by: Daniel Lezcano --- diff --git a/src/lxc/conf.c b/src/lxc/conf.c index 3f75527d8..1a9f5df61 100644 --- a/src/lxc/conf.c +++ b/src/lxc/conf.c @@ -67,6 +67,22 @@ lxc_log_define(lxc_conf, lxc); #define MS_REC 16384 #endif +#ifndef CAP_SETFCAP +#define CAP_SETFCAP 31 +#endif + +#ifndef CAP_MAC_OVERRIDE +#define CAP_MAC_OVERRIDE 32 +#endif + +#ifndef CAP_MAC_ADMIN +#define CAP_MAC_ADMIN 33 +#endif + +#ifndef PR_CAPBSET_DROP +#define PR_CAPBSET_DROP 24 +#endif + extern int pivot_root(const char * new_root, const char * put_old); typedef int (*instanciate_cb)(struct lxc_netdev *);