1
0
Fork 0
forked from mirror/openwrt
openwrt/target/linux
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
..
apm821xx apm821xx: mbl_gen_hdd_img.sh: switch to /bin/sh 2019-12-31 01:28:08 +01:00
ar71xx kernel: bump 4.14 to 4.14.164 2020-01-20 13:41:49 +01:00
arc770 arc770: gen_axs10x_sdcard_img.sh: switch to /bin/sh 2019-12-31 01:27:32 +01:00
archs38 archs38: gen_axs10x_sdcard_img.sh: switch to /bin/sh 2019-12-31 01:26:35 +01:00
armvirt treewide: Remove self from MAINTAINER entries 2019-12-23 13:18:04 -08:00
at91 at91: gen_at91_sdcard_img.sh: switch to /bin/sh 2019-12-31 01:25:44 +01:00
ath25 ath25: split up DEVICE_TITLE 2019-10-19 13:16:57 +02:00
ath79 kernel: bump 4.19 to 4.19.95 2020-01-20 13:41:49 +01:00
bcm53xx kernel: remove further obsolete kernel version switches 2020-01-18 19:39:05 +01:00
brcm47xx brcm47xx: fix switch port order for Netgear WN2500RP V1 2020-01-20 12:35:44 +01:00
brcm63xx kernel: bump 4.19 to 4.19.95 2020-01-20 13:41:49 +01:00
brcm2708 kernel: bump 4.19 to 4.19.97 2020-01-20 13:41:49 +01:00
cns3xxx kernel: bump 4.19 to 4.19.86 2019-11-29 09:59:49 +01:00
gemini gemini: dns313_gen_hdd_img.sh: switch to /bin/sh 2019-12-31 01:23:24 +01:00
generic kernel: mtd: Make subpartitions inherit parent's access mode 2020-01-20 20:57:21 +01:00
imx6 kernel: Deactivate CONFIG_SFP in generic config 2019-12-23 15:25:36 +01:00
ipq40xx ipq40xx: add support for Aruba AP-303H 2020-01-14 09:38:32 +01:00
ipq806x ipq806x: refresh kernel patches 2020-01-08 14:33:03 +01:00
kirkwood kirkwood: fix HDD LED labels for Zyxel NSA325 in 01_leds 2020-01-18 21:46:26 +01:00
lantiq lantiq: reorganize 02_network board.d files 2020-01-14 22:04:44 +01:00
layerscape kernel: bump 4.14 to 4.14.166 2020-01-20 13:41:49 +01:00
malta malta: enable HighMem on MIPS32 2020-01-15 22:35:48 +01:00
mediatek mediatek: split base-files into subtargets 2020-01-14 13:34:34 +01:00
mpc85xx treewide: move mktplinkfw to tplink-v1-image in image-commands.mk 2020-01-08 16:15:29 +01:00
mvebu mvebu: split interface configuration for clearfog pro and base 2019-12-31 02:30:08 +01:00
mxs mxs: gen_sdcard_ext4_ext4.sh: use /bin/sh 2019-12-31 01:19:48 +01:00
octeon octeon: remove redundant network setup 2020-01-18 19:39:05 +01:00
octeontx kernel: bump 4.14 to 4.14.160 2019-12-24 17:45:54 +01:00
omap omap: gen_omap_sdcard_img.sh: use /bin/sh 2019-12-31 01:17:09 +01:00
oxnas kernel: bump 4.14 to 4.14.158 2019-12-10 09:50:42 +01:00
pistachio pistachio: split up DEVICE_TITLE 2019-10-12 23:37:00 +02:00
ramips ramips: apply LED_POLARITY rt3050-esw on MT7628AN/MT7688 2020-01-19 10:55:31 +01:00
rb532 rb532: gen_image.sh: use /bin/sh 2019-12-31 01:16:17 +01:00
samsung samsung: add subtarget condition for device 2020-01-03 00:04:22 +01:00
sunxi kernel: bump 4.14 to 4.14.164 2020-01-20 13:41:49 +01:00
tegra x86,tegra,mvebu: image: use common reproducible IMG_PART_SIGNATURE 2019-11-11 16:37:13 +01:00
uml treewide: Remove self from MAINTAINER entries 2019-12-23 13:18:04 -08:00
x86 kernel: bump 4.19 to 4.19.90 2019-12-24 15:34:43 +01:00
zynq zynq: gen_zynq_sdcard_img.sh: switch to /bin/sh 2019-12-31 01:14:48 +01:00
Makefile