diff options
author | Stephen Smalley <sds@tycho.nsa.gov> | 2012-01-13 08:53:56 -0500 |
---|---|---|
committer | Stephen Smalley <sds@tycho.nsa.gov> | 2012-02-03 11:11:15 -0500 |
commit | 8290d1083ec7eee3f32265012f5d6be2774c4afc (patch) | |
tree | 6d7e239b2a5b3d4a8faf8c3f404f8d9b3270f61d /toolbox/Android.mk | |
parent | 0458d373261d89979529853fa63cdd998b12e04a (diff) | |
download | system_core-8290d1083ec7eee3f32265012f5d6be2774c4afc.zip system_core-8290d1083ec7eee3f32265012f5d6be2774c4afc.tar.gz system_core-8290d1083ec7eee3f32265012f5d6be2774c4afc.tar.bz2 |
Extend toolbox with SE Android support.
Add -Z option to ls and ps for displaying security contexts.
Modify id to display security context.
Add new SELinux commands: chcon, getenforce, getsebool, load_policy, restorecon, runcon, setenforce, setsebool.
Change-Id: Ia20941be4a6cd706fe392fed6e38a37d880ec5f1
Diffstat (limited to 'toolbox/Android.mk')
-rw-r--r-- | toolbox/Android.mk | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/toolbox/Android.mk b/toolbox/Android.mk index d7a675a..9daeed3 100644 --- a/toolbox/Android.mk +++ b/toolbox/Android.mk @@ -57,6 +57,21 @@ TOOLS := \ touch \ lsof +ifeq ($(HAVE_SELINUX),true) + +TOOLS += \ + getenforce \ + setenforce \ + chcon \ + restorecon \ + runcon \ + getsebool \ + setsebool \ + load_policy + +endif + + ifneq (,$(filter userdebug eng,$(TARGET_BUILD_VARIANT))) TOOLS += r endif @@ -68,6 +83,14 @@ LOCAL_SRC_FILES:= \ LOCAL_SHARED_LIBRARIES := libcutils libc libusbhost +ifeq ($(HAVE_SELINUX),true) + +LOCAL_CFLAGS += -DHAVE_SELINUX +LOCAL_SHARED_LIBRARIES += libselinux +LOCAL_C_INCLUDES += external/libselinux/include + +endif + LOCAL_MODULE:= toolbox # Including this will define $(intermediates). |