sepgrep -- function to grep SELinux policy files.

(cherry picked from commit ba5fc8e593)

Change-Id: I7840dc698c5e479e65c66cb2a3ab0405127b64ec
This commit is contained in:
Alex Klyubin 2013-05-06 14:11:48 -07:00
parent 37a14b15e9
commit 3c9f18228c

View file

@ -945,6 +945,11 @@ function mangrep()
find . -name .repo -prune -o -name .git -prune -o -path ./out -prune -o -type f -name 'AndroidManifest.xml' -print0 | xargs -0 grep --color -n "$@"
}
function sepgrep()
{
find . -name .repo -prune -o -name .git -prune -o -path ./out -prune -o -name sepolicy -type d -print0 | xargs -0 grep --color -n -r --exclude-dir=\.git "$@"
}
case `uname -s` in
Darwin)
function mgrep()