[lxc-devel] [PATCH] Add CAP_BLOCK_SUSPEND

Serge Hallyn serge.hallyn at ubuntu.com
Mon Sep 28 03:56:54 UTC 2015


Quoting Christian Brauner (christianvanbrauner at gmail.com):
> CAP_BLOCK_SUSPEND (since Linux 3.5)
>     Employ features that can block system suspend (epoll(7) EPOLLWAKEUP, /proc/sys/wake_lock).
> 
> Signed-off-by: Christian Brauner <christianvanbrauner at gmail.com>

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

> ---
>  src/lxc/conf.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/src/lxc/conf.c b/src/lxc/conf.c
> index 6665546..53057de 100644
> --- a/src/lxc/conf.c
> +++ b/src/lxc/conf.c
> @@ -302,6 +302,9 @@ static struct caps_opt caps_opt[] = {
>  #ifdef CAP_WAKE_ALARM
>  	{ "wake_alarm",        CAP_WAKE_ALARM        },
>  #endif
> +#ifdef CAP_BLOCK_SUSPEND
> +	{ "block_suspend",     CAP_BLOCK_SUSPEND     },
> +#endif
>  };
>  #else
>  static struct caps_opt caps_opt[] = {};
> -- 
> 2.5.3
> 
> _______________________________________________
> lxc-devel mailing list
> lxc-devel at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-devel


More information about the lxc-devel mailing list