]> git.kernelconcepts.de Git - karo-tx-linux.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Aug 2012 15:22:51 +0000 (08:22 -0700)
commit4a8a3f40f83b93cb1a3f8392b669d8640c976448
tree183abe82866ddf32ee65999cf4b996a42080d014
parent8d0c5f5b12ef71e5656f2eae8dea498271c7cd75
PM / Sleep: Require CAP_BLOCK_SUSPEND to use wake_lock/wake_unlock

commit 11388c87d2abca1f01975ced28ce9eacea239104 upstream.

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>
Acked-by: Michael Kerrisk <mtk.man-pages@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
kernel/power/wakelock.c