exit 1
fi
+PRIVILEGES=("http://tizen.org/privilege"
+ "http://samsung.com/tizen/privilege"
+ "http://developer.samsung.com/tizen/privilege"
+ "http://developer.samsung.com/privilege")
+
# TEST 1/3: check cynara privileges existence (there are too many to perform this check using xsltproc)
-grep "http://tizen.org/privilege" /var/cynara/db/* | sed -e "s/;[^;]*;$//g" -e "s/.*http/http/g" | uniq > $system_privileges_file
+for p in ${PRIVILEGES[@]}; do
+ grep $p /var/cynara/db/* | sed -e "s/;[^;]*;$//g" -e "s/.*http/http/g" | uniq >> $system_privileges_file
+done
$xslt_processor $checker_dir/extract_privilege.xsl $config_file | uniq > $conf_privileges_file
grep -Fxv -f $system_privileges_file $conf_privileges_file | while read line ; do echo "FAILED(cynara) no privilege in cynara db: $line" ; exit 1; done