Skip to content
Snippets Groups Projects
Commit 0ab9b613 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Add code to check for unescaped periods in file_contexts."

parents d58fa3a1 b5806c47
No related branches found
No related tags found
No related merge requests found
...@@ -108,6 +108,10 @@ find $sedir -name "*.te" -not -path "*prebuilts*" | while read -r file; do ...@@ -108,6 +108,10 @@ find $sedir -name "*.te" -not -path "*prebuilts*" | while read -r file; do
fi fi
done done
echo
echo "Scanning for labels in file_contexts that do not escape '.' properly."
find $sedir -name file_contexts -not -path "*prebuilts*" -exec grep -H "^[^#].*[^\\]\.[^*]" '{}' \;
echo echo
echo "Scanning for rules that use the wrong file/dir macros." echo "Scanning for rules that use the wrong file/dir macros."
grep -r ":file.*_dir_perms" --exclude=\*_macros $sedir grep -r ":file.*_dir_perms" --exclude=\*_macros $sedir
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment