aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorMichael Walle <[email protected]>2021-03-03 16:57:35 +0100
committerMiquel Raynal <[email protected]>2021-03-28 19:20:11 +0200
commit1e97743fd180981bef5f01402342bb54bf1c6366 (patch)
tree071f135ba46015e00f531351644d9e4afb5d3d82 /tools/perf/scripts/python/export-to-sqlite.py
parent3ba6d1ff041f07cfbbe1fdf0f25094590d7e543e (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