mkinitrd-recovery: Add default PATH variable 05/235905/1
authorDongwoo Lee <dwoo08.lee@samsung.com>
Thu, 11 Jun 2020 02:32:07 +0000 (11:32 +0900)
committerDongwoo Lee <dwoo08.lee@samsung.com>
Thu, 11 Jun 2020 02:32:07 +0000 (11:32 +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 21ac1c10a908b9da199d025af991755de5dfd275..dc2675c6569dc6f3cdda9665f87524914ede6726 100755 (executable)
@@ -1,5 +1,7 @@
 #!/bin/sh
 
+PATH=/bin:/usr/bin:/sbin:/usr/sbin
+
 CP="/bin/cp"
 LN="/bin/ln"
 SED="/bin/sed"