aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Klyubin <klyubin@google.com>2013-05-06 14:11:48 -0700
committerAlex Klyubin <klyubin@google.com>2013-05-07 10:19:48 -0700
commitba5fc8e59397ff2d986681457ed590742ce522e8 (patch)
tree710a35d347a08e41c20c68f795ebd94c1e1ebe0c
parentb4314f15346b05eed956c979c7d05f4732caaae3 (diff)
downloadbuild-ba5fc8e59397ff2d986681457ed590742ce522e8.tar.gz
sepgrep -- function to grep SELinux policy files.
Change-Id: Ib86a124296ecbc2b2ce9a0323c40c85ceb6cd466
-rw-r--r--envsetup.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/envsetup.sh b/envsetup.sh
index 63a29e9182..70cb2de757 100644
--- a/envsetup.sh
+++ b/envsetup.sh
@@ -882,6 +882,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()