Commit 021709aa authored by Alistair Delva's avatar Alistair Delva Committed by Treehugger Robot
Browse files

ANDROID: Add filp_open_block() for zram



We currently plan to disallow use of filp_open() from drivers in GKI,
however the ZRAM driver still needs it. Add a new GKI-only variant of
filp_open() which only permits a block device to be opened, which can
be exported instead. This keeps ZRAM working but cuts down on drivers
that attempt to open and write files in kernel mode.

Bug: 179220339
Bug: 205141088
Change-Id: Id696b4aaf204b0499ce0a1b6416648670236e570
Signed-off-by: default avatarAlistair Delva <adelva@google.com>
(cherry picked from commit 62d9cb66)
Signed-off-by: default avatarDongyue Hao <dongyue.hao@unisoc.com>
parent 78adeb53
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment