Merge "Add code to check for unescaped periods in file_contexts."
am: 0ab9b61370
Change-Id: I74ad72ea3307586f7ded8c68a0805d936c5bf8f9
This commit is contained in:
commit
b02dc1162e
1 changed files with 4 additions and 0 deletions
|
@ -108,6 +108,10 @@ find $sedir -name "*.te" -not -path "*prebuilts*" | while read -r file; do
|
|||
fi
|
||||
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 "Scanning for rules that use the wrong file/dir macros."
|
||||
grep -r ":file.*_dir_perms" --exclude=\*_macros $sedir
|
||||
|
|
Loading…
Reference in a new issue