Run aslr test in all profiles. 73/224073/2 accepted/tizen/unified/20200207.122401 submit/tizen/20200206.064637
authorjin-gyu.kim <jin-gyu.kim@samsung.com>
Thu, 6 Feb 2020 05:56:21 +0000 (14:56 +0900)
committerjin-gyu.kim <jin-gyu.kim@samsung.com>
Thu, 6 Feb 2020 06:39:33 +0000 (15:39 +0900)
- Previously, aslr test was executed only for mobile / wearable.
- Now, make it run for all profiles, but execute permission is retrieved
  only in case of mobile / werarable profiles.

Change-Id: I291866495ae5db0fdaf77af47fc87fb770e4669d

test/aslr_test/scripts/run_aslr_test_all_files.sh

index e234db673e4b91d241363ba00f6f211973dca717..0f9163a60c5c06af15abe7c1447ab5d487aa18b1 100644 (file)
@@ -36,12 +36,15 @@ fi
 # Checking "/etc/smack/onlycap" is temporary. This should be considered again later.
 while read line
 do
-       if [ -e "/etc/smack/onlycap" ] && [ $line != "/usr/bin/chmod" ] && [ $line != "/usr/bin/cat" ] && [ $line != "/usr/bin/qemu-arm" ]
+       if [[ $line != "/usr/bin/chmod" ]] && [[ $line != "/usr/bin/cat" ]] && [[ $line != "/usr/bin/qemu-arm" ]]
        then
                CHECK_EXCEPTION $line
                if [ "$?" == 0 ]
                then
-                       chmod a-x $line
+                       if [[ -e "/etc/smack/onlycap" ]]
+                       then
+                               chmod a-x $line
+                       fi
                        echo "$line" >> $log_file
                fi
        fi