mkinitrd-recovery: Add default PATH variable
authorDongwoo Lee <dwoo08.lee@samsung.com>
Thu, 11 Jun 2020 02:32:07 +0000 (11:32 +0900)
committer김승우/Tizen Platform Lab(SR)/Staff Engineer/삼성전자 <sw0312.kim@samsung.com>
Thu, 13 Aug 2020 00:20:57 +0000 (09:20 +0900)
To mitigate security vulnerability, this defines default PATH
variable explicitly.

Change-Id: Ie12be4367fef7fd20b421fb34e0ede3cadaf2065
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
src/initrd-recovery/mkinitrd-recovery.sh.in

index 21ac1c1..dc2675c 100755 (executable)
@@ -1,5 +1,7 @@
 #!/bin/sh
 
+PATH=/bin:/usr/bin:/sbin:/usr/sbin
+
 CP="/bin/cp"
 LN="/bin/ln"
 SED="/bin/sed"