openwrt/target/linux/generic
Bruno Pena de80424f70 kernel: mtd: Make subpartitions inherit parent's access mode
Currently it's not possible to effectively mark a "firmware" partition
as read-only. The sub-partitions "kernel", "rootfs" and "rootfs_data"
are always created as read-write (ignoring the parent access mode).

This patch enforces the access mode of sub-partitions to match the
parent partition, which is useful for recovery images that are meant
to be fully read-only to avoid accidental damage from end-user.

An example of such implementation (read-only firmware image) is the
recovery image used on the Zsun-SD100 [1].

Please note the related patch for fstools [2] to enable this read-only
concept.

[1] https://github.com/brunompena/zsun-resources
[2] http://lists.infradead.org/pipermail/openwrt-devel/2020-January/021043.html

Signed-off-by: Bruno Pena <brunompena@gmail.com>
[removed already obsolete 4.9 kernel patch]
Signed-off-by: Petr Štetiar <ynezz@true.cz>
2020-01-20 20:57:21 +01:00
..
backport-4.14 kernel: bump 4.14 to 4.14.165 2020-01-20 13:41:49 +01:00
backport-4.19 kernel: bump 4.19 to 4.19.90 2019-12-24 15:34:43 +01:00
files swconfig: fix Broadcom b53 support 2020-01-12 14:12:50 +01:00
hack-4.14 kernel: mtd: Make subpartitions inherit parent's access mode 2020-01-20 20:57:21 +01:00
hack-4.19 kernel: mtd: Make subpartitions inherit parent's access mode 2020-01-20 20:57:21 +01:00
image treewide: replace nbd@openwrt.org with nbd@nbd.name 2016-06-07 08:58:42 +02:00
other-files kernel: move initramfs's init script out of base-files 2017-04-04 14:06:40 +02:00
pending-4.14 kernel: bump 4.14 to 4.14.164 2020-01-20 13:41:49 +01:00
pending-4.19 kernel: bump 4.19 to 4.19.95 2020-01-20 13:41:49 +01:00
config-4.14 generic: update config-4.14 2020-01-12 16:27:33 +01:00
config-4.19 generic: update config-4.19 2020-01-12 14:12:50 +01:00
PATCHES kernel: update PATCHES with a stricter policy 2013-07-09 20:52:07 +00:00