Skip to content
Snippets Groups Projects
Commit b5806c47 authored by Joel Galenson's avatar Joel Galenson
Browse files

Add code to check for unescaped periods in file_contexts.

Test: Run script and find unescaped periods.
Change-Id: I35a4366aa576d5c6036d0dcfb068ca4e0f27fff9
parent 2d123fce
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