summaryrefslogtreecommitdiff
path: root/vulkan/libvulkan/api.cpp
diff options
context:
space:
mode:
author Siarhei Vishniakou <svv@google.com> 2019-09-24 12:46:29 +0100
committer Siarhei Vishniakou <svv@google.com> 2019-10-02 15:32:49 -0500
commit7a522bf597fe680dd74b7fc0c8dfead2cd7fe781 (patch)
treeb3826f7b8d0eda58af97ec47384c1c5235815038 /vulkan/libvulkan/api.cpp
parent4d1b46c6e2d081539a510a4baf77f96e780d0e64 (diff)
Ensure input has CAP_BLOCK_SUSPEND
The process that's running the input code (currently, SYSTEM_SERVER) should be able to prevent suspend from happening. This is to make sure that we can always process the touch events. Since the kernel is not able to enforce the permissions for CAP_BLOCK_SUSPEND when EPOLLWAKEUP is being used, and just silently fails (see http://man7.org/linux/man-pages/man2/epoll_ctl.2.html and specifically the "BUGS" section), we should really make sure that the current process is able to hold the wakelock. Bug: 141532209 Test: boot up the phone and ensure it doesn't crash Change-Id: Ibde183cf7a41dd5369873093be373c10dd580115
Diffstat (limited to 'vulkan/libvulkan/api.cpp')
0 files changed, 0 insertions, 0 deletions