Add PATH variable in dalireslog.sh 94/77994/1
authorminho.sun <minho.sun@samsung.com>
Mon, 4 Jul 2016 01:24:43 +0000 (10:24 +0900)
committerminho.sun <minho.sun@samsung.com>
Mon, 4 Jul 2016 01:34:13 +0000 (10:34 +0900)
Add PATH variable in dalireslog.sh to reinforce security

Someone can attack with modifying $PATH variable when excuting shell script

To prevent this, declare $PATH on top of scripts

Signed-off-by: minho.sun <minho.sun@samsung.com>
Change-Id: I9c8a359366abd0d1bc47e42b98ff2b37d2db6fdb

adaptors/scripts/dalireslog.sh

index c1d8416..ae86a9e 100755 (executable)
@@ -1,4 +1,5 @@
 #!/bin/bash
+PATH=/bin:/usr/bin:/sbin:/usr/sbin
 # Log resource analyser tool for Dali
 # Monitors resource usage of last run Dali app
 # Shows memory uploaded to GPU or normal RAM