Change the condition to check ASLR applied. 05/194305/1 accepted/tizen/unified/20181203.144816 submit/tizen/20181203.042911
authorjin-gyu.kim <jin-gyu.kim@samsung.com>
Mon, 3 Dec 2018 02:41:47 +0000 (11:41 +0900)
committerjin-gyu.kim <jin-gyu.kim@samsung.com>
Mon, 3 Dec 2018 02:44:57 +0000 (11:44 +0900)
- "file" cmd can print "pie" not "shared object" for ASLR applied exec.

Change-Id: I0bd6caba258f3b12239f9cd6487b98c54c168431

test/aslr_test/scripts/run_aslr_test_all_files.sh

index a9f3292c3309ed74e25eb611478ab9c69a905499..857e6defa6582bf28f15fb1766747f36981973f5 100644 (file)
@@ -26,7 +26,7 @@ fi
 
 /usr/bin/echo "Start aslr check test"
 
-/usr/bin/find / -type f -executable 2>/dev/null | /usr/bin/xargs $utl_path/file | /usr/bin/grep "executable" | /usr/bin/grep -v "script" | /usr/bin/cut -d ":" -f1 >> $log_file
+/usr/bin/find / -type f -executable 2>/dev/null | /usr/bin/xargs $utl_path/file | /usr/bin/grep "executable" | /usr/bin/grep -v "shared object" | /usr/bin/grep -v "pie" | /usr/bin/grep -v "script" | /usr/bin/cut -d ":" -f1 >> $log_file
 
 # Retrieve exec permission (chmod & cat need to be considered separately to finish below lines)
 # Checking "/etc/smack/onlycap" is temporary. This should be considered again later.