script: flash-init: Add default PATH variable 01/235901/1 accepted/tizen/unified/20200618.015753 submit/tizen/20200617.105114
authorDongwoo Lee <dwoo08.lee@samsung.com>
Thu, 11 Jun 2020 00:55:37 +0000 (09:55 +0900)
committerDongwoo Lee <dwoo08.lee@samsung.com>
Thu, 11 Jun 2020 00:55:37 +0000 (09:55 +0900)
To mitigate security vulnerability, this defines default PATH
variable explicitly.

Change-Id: Idb828873481fe442ddf4ed3a6a89854590420e78
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
scripts/flash-init.sh

index 33c1f8e..3d0084d 100755 (executable)
@@ -1,5 +1,7 @@
 #!/bin/bash
 
+PATH=/bin:/usr/bin:/sbin:/usr/sbin
+
 INFORM_FILE=reboot-param.bin
 INFORM_MOUNT_PATH=/mnt/inform
 TMP_PATH=/tmp