]> git.baikalelectronics.ru Git - kernel.git/commit
PM: Rename CAP_EPOLLWAKEUP to CAP_BLOCK_SUSPEND
authorMichael Kerrisk <mtk.manpages@gmail.com>
Tue, 17 Jul 2012 19:37:27 +0000 (21:37 +0200)
committerRafael J. Wysocki <rjw@sisk.pl>
Tue, 17 Jul 2012 19:37:27 +0000 (21:37 +0200)
commita5c461082f1c2e03a04fd2ad8fa9f4e446ef4909
tree60665bc18212e1bf4dd45d811c49f561234ddbd4
parenta23eef3496ac9d2d9a409159ca874459c63d2478
PM: Rename CAP_EPOLLWAKEUP to CAP_BLOCK_SUSPEND

As discussed in
http://thread.gmane.org/gmane.linux.kernel/1249726/focus=1288990,
the capability introduced in 6230651ea92879b0ef86435f2aa40a6a01d4f5c4
to govern EPOLLWAKEUP seems misnamed: this capability is about governing
the ability to suspend the system, not using a particular API flag
(EPOLLWAKEUP). We should make the name of the capability more general
to encourage reuse in related cases. (Whether or not this capability
should also be used to govern the use of /sys/power/wake_lock is a
question that needs to be separately resolved.)

This patch renames the capability to CAP_BLOCK_SUSPEND. In order to ensure
that the old capability name doesn't make it out into the wild, could you
please apply and push up the tree to ensure that it is incorporated
for the 3.5 release.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Acked-by: Serge Hallyn <serge.hallyn@canonical.com>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
fs/eventpoll.c
include/linux/capability.h
include/linux/eventpoll.h