Skip to content

Commit

Permalink
Add CAP_BLOCK_SUSPEND
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
brauner authored and stgraber committed Sep 29, 2015
1 parent 7fb4785 commit 997e00a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lxc/conf.c
Expand Up @@ -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[] = {};
Expand Down

0 comments on commit 997e00a

Please sign in to comment.