1#!/usr/bin/env bash
2
3unamestr=`uname`
4if [ "$unamestr" = "Linux" -o "$unamestr" = "linux" ]; then
5	export LD_LIBRARY_PATH=$ANDROID_BUILD_TOP/external/selinux/prebuilts/lib
6	export PYTHONPATH=$ANDROID_BUILD_TOP/prebuilts/python/linux-x86/2.7.5/lib/python2.7/site-packages
7	python $ANDROID_BUILD_TOP/external/selinux/policycoreutils/audit2allow/audit2allow "$@"
8else
9	echo "audit2allow is only supported on linux"
10fi
11