[lxc-devel] [PATCH] Define PR_CAPBSET_READ when missing

Serge Hallyn serge.hallyn at canonical.com
Thu Jan 10 20:34:31 UTC 2013


Quoting Stéphane Graber (stgraber at ubuntu.com):
> PR_CAPBSET_READ isn't defined in bionic, so define it if it's not.
> 
> Signed-off-by: Stéphane Graber <stgraber at ubuntu.com>

Acked-by: Serge E. Hallyn <serge.hallyn at ubuntu.com>

> ---
>  src/lxc/caps.c | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/src/lxc/caps.c b/src/lxc/caps.c
> index 53c552b..7e64a38 100644
> --- a/src/lxc/caps.c
> +++ b/src/lxc/caps.c
> @@ -37,6 +37,10 @@ lxc_log_define(lxc_caps, lxc);
>  #if HAVE_SYS_CAPABILITY_H
>  #include <sys/capability.h>
>  
> +#ifndef PR_CAPBSET_READ
> +#define PR_CAPBSET_READ 23
> +#endif
> +
>  int lxc_caps_reset(void)
>  {
>  	cap_t cap = cap_init();
> -- 
> 1.8.0
> 
> 
> ------------------------------------------------------------------------------
> Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
> MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
> with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
> MVPs and experts. ON SALE this month only -- learn more at:
> http://p.sf.net/sfu/learnmore_122712
> _______________________________________________
> Lxc-devel mailing list
> Lxc-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/lxc-devel




More information about the lxc-devel mailing list