From: jin-gyu.kim Date: Thu, 6 Feb 2020 05:56:21 +0000 (+0900) Subject: Run aslr test in all profiles. X-Git-Tag: submit/tizen/20200206.064637^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5608bc49fe8ad653c73b6622b76ee73277da647c;p=platform%2Fcore%2Fsecurity%2Fsecurity-config.git Run aslr test in all profiles. - 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 --- diff --git a/test/aslr_test/scripts/run_aslr_test_all_files.sh b/test/aslr_test/scripts/run_aslr_test_all_files.sh index e234db6..0f9163a 100644 --- a/test/aslr_test/scripts/run_aslr_test_all_files.sh +++ b/test/aslr_test/scripts/run_aslr_test_all_files.sh @@ -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