From: jin-gyu.kim Date: Mon, 3 Dec 2018 02:41:47 +0000 (+0900) Subject: Change the condition to check ASLR applied. X-Git-Tag: submit/tizen_4.0/20191226.005741^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cade366cb7ea4fbe0933ae181b3e64cd55a4554e;p=platform%2Fcore%2Fsecurity%2Fsecurity-config.git Change the condition to check ASLR applied. - "file" cmd can print "pie" not "shared object" for ASLR applied exec. Change-Id: I0bd6caba258f3b12239f9cd6487b98c54c168431 (cherry picked from commit d6bc33dd95ae82652dd0a940b5ce4cb2ba9ddc96) --- 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 14b0713..c817047 100644 --- a/test/aslr_test/scripts/run_aslr_test_all_files.sh +++ b/test/aslr_test/scripts/run_aslr_test_all_files.sh @@ -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.