From: Christian Brauner Date: Sun, 27 Sep 2015 10:27:07 +0000 (+0200) Subject: Add CAP_BLOCK_SUSPEND X-Git-Tag: lxc-2.1.1~873 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=2b54359b24a87215c16c978e31d1dfa39ca36ff0;p=mirror_lxc.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 666554601..53057dea4 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[] = {};