Add PATH setting at rw update script (#300)
author조웅석/Common Platform Lab(SR)/Principal Engineer/삼성전자 <ws77.cho@samsung.com>
Thu, 3 Dec 2020 06:41:00 +0000 (15:41 +0900)
committer조웅석/Common Platform Lab(SR)/삼성전자 <ws77.cho@samsung.com>
Tue, 29 Mar 2022 03:39:24 +0000 (12:39 +0900)
Security Test return "FAIL" if shell script doesnot contain PATH setting,
even though all command line tool is executed as absolute path.
So, to avoid unnecessary failure, add PATH setting at shell script

packaging/715.dotnet_regen_app_ni.patch.sh

index 9aa2d7b..1a6dda6 100644 (file)
@@ -2,6 +2,8 @@
 #
 # RW Update Script to regenerate dotnet application native image file
 
+PATH=/usr/bin:/bin:/usr/sbin:/sbin
+
 /usr/bin/dotnettool --tac-regen-all
 /usr/bin/dotnettool --ni-regen-all-app