Fix the security configuration issue (Shell Script) 93/254193/2 accepted/tizen/unified/20210226.131923 submit/tizen/20210225.094448
authorDoHyun Pyun <dh79.pyun@samsung.com>
Wed, 24 Feb 2021 23:20:16 +0000 (08:20 +0900)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Wed, 24 Feb 2021 23:22:05 +0000 (08:22 +0900)
All command line tools in any shell script should be executed
in designated location or executed as absolute path.

Change-Id: I8f9548f7fda0db656ede895be2fd7c92e2c9161f
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
ua-daemon/data/create-ua-db.sh

index 912793b..9bb6e42 100755 (executable)
@@ -1,4 +1,5 @@
 #!/bin/bash
+PATH=/bin:/usr/bin:/sbin:/usr/sbin
 
 sqlite3 /opt/usr/dbspace/.ua-manager-data.db < /usr/share/ua_db.sql
 chown network_fw:network_fw /opt/usr/dbspace/.ua-manager-data.db*