[lxc-devel] [PATCH] Add CAP_BLOCK_SUSPEND

Christian Brauner christianvanbrauner at gmail.com
Sun Sep 27 10:27:07 UTC 2015


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>
---
 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



More information about the lxc-devel mailing list