]> git.proxmox.com Git - mirror_lxc.git/commitdiff
Add CAP_BLOCK_SUSPEND
authorChristian Brauner <christianvanbrauner@gmail.com>
Sun, 27 Sep 2015 10:27:07 +0000 (12:27 +0200)
committerStéphane Graber <stgraber@ubuntu.com>
Mon, 28 Sep 2015 19:47:25 +0000 (15:47 -0400)
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@gmail.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
src/lxc/conf.c

index 666554601a5b469cab3e1e480baafe1d7d9850ff..53057dea429dfa645968f1203fda7364c87f4a8a 100644 (file)
@@ -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[] = {};