Commit 4f09d6c2 by Christian Brauner Committed by Stéphane Graber

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: 's avatarChristian Brauner <christianvanbrauner@gmail.com> Acked-by: 's avatarSerge E. Hallyn <serge.hallyn@ubuntu.com>
parent 5eb6e03a
...@@ -302,6 +302,9 @@ static struct caps_opt caps_opt[] = { ...@@ -302,6 +302,9 @@ static struct caps_opt caps_opt[] = {
#ifdef CAP_WAKE_ALARM #ifdef CAP_WAKE_ALARM
{ "wake_alarm", CAP_WAKE_ALARM }, { "wake_alarm", CAP_WAKE_ALARM },
#endif #endif
#ifdef CAP_BLOCK_SUSPEND
{ "block_suspend", CAP_BLOCK_SUSPEND },
#endif
}; };
#else #else
static struct caps_opt caps_opt[] = {}; static struct caps_opt caps_opt[] = {};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment