diff options
author | Stephen Smalley <sds@tycho.nsa.gov> | 2012-01-13 08:16:58 -0500 |
---|---|---|
committer | Stephen Smalley <sds@tycho.nsa.gov> | 2012-01-24 14:47:42 -0500 |
commit | 4f78e1225cf16c8acbb8e9d9b849977ec04594df (patch) | |
tree | 867f1898f58a9bd835ce0d618426f8c01fb36130 /vm/ReconfigureDvm.mk | |
parent | a669206dc91323e664a84b2a4ca170ec0332c926 (diff) | |
download | android_dalvik-4f78e1225cf16c8acbb8e9d9b849977ec04594df.tar.gz android_dalvik-4f78e1225cf16c8acbb8e9d9b849977ec04594df.tar.bz2 android_dalvik-4f78e1225cf16c8acbb8e9d9b849977ec04594df.zip |
Extend forkAndSpecialize to take additional inputs and to set the SELinux security context.
forkAndSpecialize presently sets the DAC credentials for the app process.
Modify it to invoke libselinux to set the SELinux security context as well.
Extend it to take additional inputs from the caller in order to provide
more selectors for deciding what SELinux security context to use.
Change-Id: I2611671ad6f10ce3d8cbda8471bcacb8c9955546
Diffstat (limited to 'vm/ReconfigureDvm.mk')
-rw-r--r-- | vm/ReconfigureDvm.mk | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/vm/ReconfigureDvm.mk b/vm/ReconfigureDvm.mk index 20e562635..09fbb5d72 100644 --- a/vm/ReconfigureDvm.mk +++ b/vm/ReconfigureDvm.mk @@ -28,6 +28,12 @@ include $(LOCAL_PATH)/Dvm.mk LOCAL_SHARED_LIBRARIES += liblog libcutils libnativehelper libz libdl +ifeq ($(HAVE_SELINUX),true) +LOCAL_C_INCLUDES += external/libselinux/include +LOCAL_SHARED_LIBRARIES += libselinux +LOCAL_CFLAGS += -DHAVE_SELINUX +endif # HAVE_SELINUX + LOCAL_STATIC_LIBRARIES += libdex LOCAL_C_INCLUDES += external/stlport/stlport bionic/ bionic/libstdc++/include |