Change the condition to check ASLR applied. 84/220884/1 accepted/tizen/4.0/unified/20191226.231259 submit/tizen_4.0/20191226.005741
authorjin-gyu.kim <jin-gyu.kim@samsung.com>
Mon, 3 Dec 2018 02:41:47 +0000 (11:41 +0900)
committerKim Kidong <kd0228.kim@samsung.com>
Tue, 24 Dec 2019 07:45:31 +0000 (07:45 +0000)
- "file" cmd can print "pie" not "shared object" for ASLR applied exec.

Change-Id: I0bd6caba258f3b12239f9cd6487b98c54c168431
(cherry picked from commit d6bc33dd95ae82652dd0a940b5ce4cb2ba9ddc96)

test/aslr_test/scripts/run_aslr_test_all_files.sh

index 14b0713d2934abc7837238bfa2b0a846cb1fc980..c8170470c42ce1d1a6bba0cfde590f78f6554ded 100644 (file)
@@ -32,7 +32,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.