From: Christian Brauner Date: Sun, 27 Sep 2015 10:27:07 +0000 (+0200) Subject: Add CAP_BLOCK_SUSPEND X-Git-Tag: lxc-1.0.8~27 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=997e00a406440a6b7cfa0c01c7b831542b346d62;p=thirdparty%2Flxc.git Add CAP_BLOCK_SUSPEND 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 Acked-by: Serge E. Hallyn --- diff --git a/src/lxc/conf.c b/src/lxc/conf.c index 4f8d7b3b6..4b84442e9 100644 --- a/src/lxc/conf.c +++ b/src/lxc/conf.c @@ -293,6 +293,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[] = {};