]> git.baikalelectronics.ru Git - kernel.git/commit
PM / Sleep: Require CAP_BLOCK_SUSPEND to use wake_lock/wake_unlock
authorRafael J. Wysocki <rjw@sisk.pl>
Wed, 18 Jul 2012 22:00:58 +0000 (00:00 +0200)
committerRafael J. Wysocki <rjw@sisk.pl>
Wed, 18 Jul 2012 22:00:58 +0000 (00:00 +0200)
commitd7cae4ea3208891fdddf1ece6ca74bf540afbd0f
tree60e338e5ab817de96a461b08892e0663a316d67c
parent0926704cc3f6ca0967d7ebb54aa8dae48d3e446e
PM / Sleep: Require CAP_BLOCK_SUSPEND to use wake_lock/wake_unlock

Require processes wanting to use the wake_lock/wake_unlock sysfs
files to have the CAP_BLOCK_SUSPEND capability, which also is
required for the eventpoll EPOLLWAKEUP flag to be effective, so that
all interfaces related to blocking autosleep depend on the same
capability.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Cc: stable@vger.kernel.org
Acked-by: Michael Kerrisk <mtk.man-pages@gmail.com>
kernel/power/wakelock.c