openwrt/package/base-files/files/lib/upgrade
Daniel Golle 267873ac9b
base-files: don't evaluate block-device uevent
Current code and also before commit da52dd0c83 was vulnerable to shell
injection using volume lables in the GPT partition table of block
devices. Given that partition names can be freely defined in GPT tables
we really shouldn't evaluate a string which is potentially crafted with
evil intentions. Hence rather use `export -n` to absorb the uevent's
variables into the environment.

Fixes commit da52dd0c83 (base-files: quote values when evaluating uevent)
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
[mschiffer@universe-factory.net: suggested export -n usage]
2018-02-13 00:01:44 +01:00
..
keep.d
common.sh base-files: don't evaluate block-device uevent 2018-02-13 00:01:44 +01:00
fwtool.sh
nand.sh procd: nand: remove nand_board_name platform override 2017-12-08 20:57:12 +01:00
stage2 sysupgrade: don't kill our own parent 2017-11-15 21:11:23 +01:00