openwrtv3/package/base-files/files/lib
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
..
functions linux-atm: add br2684ctl option to specify the netdev name 2018-01-10 08:08:53 +01:00
preinit merge: base: update base-files and basic config 2017-12-08 19:41:18 +01:00
upgrade base-files: don't evaluate block-device uevent 2018-02-13 00:01:44 +01:00
functions.sh base-files: fix getting gid from group_add_next 2017-11-09 17:42:36 +08:00