summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Keith <javelinanddart@gmail.com>2018-02-15 23:33:28 +0100
committerArian <arian.kulmer@web.de>2019-10-07 11:11:29 +0200
commit9da00512d5b02866f1925aaa589059307bff8df8 (patch)
tree30672dec3091b6e5f9f15b6d0d8a2a40b4f30d70
parent96c99cd46cbf78dd13bed968b45ef5d42a1fa756 (diff)
shi-m-ano-common: Transition to TARGET_LD_SHIM_LIBS
* Limits security exposure from shims * As a bonus, we no longer need noatsecure to make LD_SHIM_LIBS persist through services Change-Id: I877192422062f3e59c81a7130ad1a2b4be5d1647
-rw-r--r--BoardConfigCommon.mk11
-rw-r--r--rootdir/init.camera.rc10
2 files changed, 11 insertions, 10 deletions
diff --git a/BoardConfigCommon.mk b/BoardConfigCommon.mk
index be7c3b4..45ac60a 100644
--- a/BoardConfigCommon.mk
+++ b/BoardConfigCommon.mk
@@ -78,6 +78,17 @@ TARGET_KEYMASTER_WAIT_FOR_QSEE := true
BOARD_SEPOLICY_DIRS += \
device/sony/shinano-common/sepolicy
+# Shims
+TARGET_LD_SHIM_LIBS := \
+ /system/vendor/bin/credmgrd|/system/vendor/lib/libshims_signal.so \
+ /system/vendor/bin/iddd|/system/vendor/lib/libshims_idd.so \
+ /system/vendor/bin/suntrold|/system/vendor/lib/libshims_signal.so \
+ /system/lib/hw/camera.vendor.qcom.so|/system/vendor/lib/libsonycamera.so \
+ /system/vendor/bin/mm-qcamera-daemon|libandroid.so \
+ /system/lib/libcammw.so|libsensor.so \
+ /system/lib/libsomc_chokoballpal.so|/system/vendor/lib/libGraphicBuffer.so \
+ /system/lib/hw/camera.vendor.qcom.so|libsensor.so
+
# Props for hotplugging
TARGET_SYSTEM_PROP += device/sony/shinano-common/system.prop
diff --git a/rootdir/init.camera.rc b/rootdir/init.camera.rc
index 0f12b5b..c14d9c7 100644
--- a/rootdir/init.camera.rc
+++ b/rootdir/init.camera.rc
@@ -15,16 +15,6 @@
#
on init
-export LD_SHIM_LIBS " \
-:/system/vendor/bin/credmgrd|/system/vendor/lib/libshims_signal.so \
-:/system/vendor/bin/iddd|/system/vendor/lib/libshims_idd.so \
-:/system/vendor/bin/suntrold|/system/vendor/lib/libshims_signal.so \
-:/system/lib/hw/camera.vendor.qcom.so|/system/vendor/lib/libsonycamera.so \
-:/system/vendor/bin/mm-qcamera-daemon|libandroid.so \
-:/system/lib/libcammw.so|libsensor.so \
-:/system/lib/libsomc_chokoballpal.so|/system/vendor/lib/libGraphicBuffer.so \
-:/system/lib/hw/camera.vendor.qcom.so|libsensor.so \
-"
on early-fs
wait /dev/block/mmcblk0p1