]> git.ipfire.org Git - thirdparty/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>
Tue, 29 Sep 2015 16:40:49 +0000 (12:40 -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 4f8d7b3b612a432ba8ce42cd32229b608cbcab68..4b84442e95839286e8f7a48d02aad53654932321 100644 (file)
@@ -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[] = {};