diff options
author | Michael Walle <[email protected]> | 2021-03-03 16:57:35 +0100 |
---|---|---|
committer | Miquel Raynal <[email protected]> | 2021-03-28 19:20:11 +0200 |
commit | 1e97743fd180981bef5f01402342bb54bf1c6366 (patch) | |
tree | 071f135ba46015e00f531351644d9e4afb5d3d82 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 3ba6d1ff041f07cfbbe1fdf0f25094590d7e543e (diff) |
mtd: require write permissions for locking and badblock ioctls
MEMLOCK, MEMUNLOCK and OTPLOCK modify protection bits. Thus require
write permission. Depending on the hardware MEMLOCK might even be
write-once, e.g. for SPI-NOR flashes with their WP# tied to GND. OTPLOCK
is always write-once.
MEMSETBADBLOCK modifies the bad block table.
Fixes: f7e6b19bc764 ("mtd: properly check all write ioctls for permissions")
Signed-off-by: Michael Walle <[email protected]>
Reviewed-by: Greg Kroah-Hartman <[email protected]>
Acked-by: Rafał Miłecki <[email protected]>
Acked-by: Richard Weinberger <[email protected]>
Signed-off-by: Miquel Raynal <[email protected]>
Link: https://lore.kernel.org/linux-mtd/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions