From 2b54359b24a87215c16c978e31d1dfa39ca36ff0 Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Sun, 27 Sep 2015 12:27:07 +0200 Subject: [PATCH] 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 --- src/lxc/conf.c | 3 +++ 1 file changed, 3 insertions(+) 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[] = {}; -- 2.47.2