SHARE
TWEET

Untitled

a guest Dec 9th, 2019 101 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [root@Sailfish init]# cat /system/etc/ld.config.txt
  2. # Copyright (C) 2017 The Android Open Source Project
  3. #
  4. # Bionic loader config file.
  5. #
  6.  
  7. # Don't change the order here.
  8. dir.system = /system/bin/
  9. dir.system = /system/xbin/
  10. dir.vendor = /vendor/bin/
  11. dir.vendor = /data/nativetest/vendor
  12. dir.vendor = /data/nativetest64/vendor
  13. dir.vendor = /data/benchmarktest/vendor
  14. dir.vendor = /data/benchmarktest64/vendor
  15. dir.system = /data/nativetest
  16. dir.system = /data/nativetest64
  17. dir.system = /data/benchmarktest
  18. dir.system = /data/benchmarktest64
  19.  
  20. [system]
  21. additional.namespaces = sphal,vndk,rs
  22.  
  23. ###############################################################################
  24. # "default" namespace
  25. #
  26. # Framework-side code runs in this namespace. Anything from /vendor partition
  27. # can't be loaded in this namespace.
  28. ###############################################################################
  29. namespace.default.isolated = false
  30. namespace.default.search.paths = /system/${LIB}:/vendor/${LIB}
  31. namespace.default.permitted.paths = /system/${LIB}:/vendor/${LIB}
  32.  
  33. namespace.default.asan.search.paths = /data/asan/system/${LIB}:/system/${LIB}:/data/asan/vendor/${LIB}:/vendor/${LIB}
  34. namespace.default.asan.permitted.paths = /data/asan/system/${LIB}:/system/${LIB}:/data/asan/vendor/${LIB}:/vendor/${LIB}
  35.  
  36. # TODO(b/37013858): remove all dependencies to /vendor/lib from system processes
  37. # When this is done, comment out following three lines and remove the three
  38. # lines above
  39. #namespace.default.isolated = true
  40. #namespace.default.search.paths = /system/${LIB}
  41. #namespace.default.permitted.paths = /system/${LIB}
  42. #
  43. #namespace.default.asan.search.paths = /data/asan/system/${LIB}:/system/${LIB}
  44. #namespace.default.asan.permitted.paths = /data/asan/system/${LIB}:/system/${LIB}
  45.  
  46. ###############################################################################
  47. # "sphal" namespace
  48. #
  49. # SP-HAL(Sameprocess-HAL)s are the only vendor libraries that are allowed to be
  50. # loaded inside system processes. libEGL_<chipset>.so, libGLESv2_<chipset>.so,
  51. # android.hardware.graphics.mapper@2.0-impl.so, etc are SP-HALs.
  52. #
  53. # This namespace is exclusivly for SP-HALs. When the framework tries to dynami-
  54. # cally load SP-HALs, android_dlopen_ext() is used to explicitly specifying
  55. # that they should be searched and loaded from this namespace.
  56. #
  57. # Note that there is no link from the default namespace to this namespace.
  58. ###############################################################################
  59. namespace.sphal.isolated = true
  60. namespace.sphal.visible = true
  61. namespace.sphal.search.paths = /vendor/${LIB}/egl:/vendor/${LIB}/hw:/vendor/${LIB}
  62. namespace.sphal.permitted.paths = /vendor/${LIB}:/system/${LIB}/vndk-sp/hw
  63.  
  64. namespace.sphal.asan.search.paths = /data/asan/vendor/${LIB}/egl:/vendor/${LIB}/egl:/data/asan/vendor/${LIB}/hw:/vendor/${LIB}/hw:/data/asan/vendor/${LIB}:/vendor/${LIB}
  65. namespace.sphal.asan.permitted.paths = /data/asan/vendor/${LIB}:/vendor/${LIB}
  66.  
  67. # Once in this namespace, access to libraries in /system/lib is restricted. Only
  68. # libs listed here can be used.
  69. namespace.sphal.links = default,vndk,rs
  70.  
  71. # WARNING: only NDK libs can be listed here.
  72. namespace.sphal.link.default.shared_libs = libc.so:libm.so:libdl.so:libstdc++.so:liblog.so:libnativewindow.so:libEGL.so:libsync.so:libGLESv1_CM.so:libGLESv2.so:libvndksupport.so:libz.so
  73.  
  74. # WARNING: only VNDK-SP libs can be listed here. DO NOT EDIT this line.
  75. namespace.sphal.link.vndk.shared_libs = android.hardware.renderscript@1.0.so:android.hardware.graphics.allocator@2.0.so:android.hardware.graphics.mapper@2.0.so:android.hardware.graphics.common@1.0.so:android.hidl.memory@1.0.so:libhwbinder.so:libbase.so:libcutils.so:libhardware.so:libhidlbase.so:libhidlmemory.so:libhidltransport.so:libion.so:libutils.so:libc++.so
  76.  
  77. # Renderscript gets separate namespace
  78. namespace.sphal.link.rs.shared_libs = libRS_internal.so
  79.  
  80. ###############################################################################
  81. # "rs" namespace
  82. #
  83. # This namespace is exclusively for Renderscript internal libraries.
  84. # This namespace has slightly looser restriction than the vndk namespace because
  85. # of the genuine characteristics of Renderscript; /data is in the permitted path
  86. # to load the compiled *.so file and libmediandk.so can be used here.
  87. ###############################################################################
  88. namespace.rs.isolated = true
  89. namespace.rs.visible = true
  90. namespace.rs.search.paths = /vendor/${LIB}/vndk-sp:/system/${LIB}/vndk-sp:/vendor/${LIB}
  91. namespace.rs.permitted.paths = /vendor/${LIB}:/data
  92.  
  93. namespace.rs.asan.search.paths = /data/asan/vendor/${LIB}/vndk-sp:/vendor/${LIB}/vndk-sp:/data/asan/system/${LIB}/vndk-sp:/system/${LIB}/vndk-sp:/data/asan/vendor/${LIB}:/vendor/${LIB}
  94. namespace.rs.asan.permitted.paths = /data/asan/vendor/${LIB}:/vendor/${LIB}:/data
  95.  
  96. namespace.rs.links = default,vndk
  97. namespace.rs.link.default.shared_libs = libc.so:libm.so:libdl.so:libstdc++.so:liblog.so:libnativewindow.so:libEGL.so:libsync.so:libGLESv1_CM.so:libGLESv2.so:libmediandk.so:libvndksupport.so:libz.so:libft2.so
  98. namespace.rs.link.vndk.shared_libs = android.hardware.renderscript@1.0.so:android.hardware.graphics.allocator@2.0.so:android.hardware.graphics.mapper@2.0.so:android.hardware.graphics.common@1.0.so:android.hidl.memory@1.0.so:libhwbinder.so:libbase.so:libcutils.so:libhardware.so:libhidlbase.so:libhidlmemory.so:libhidltransport.so:libion.so:libutils.so:libc++.so
  99.  
  100. ###############################################################################
  101. # "vndk" namespace
  102. #
  103. # This namespace is exclusively for vndk-sp libs.
  104. ###############################################################################
  105. namespace.vndk.isolated = true
  106. namespace.vndk.visible = true
  107. namespace.vndk.search.paths = /vendor/${LIB}/vndk-sp:/system/${LIB}/vndk-sp
  108. namespace.vndk.permitted.paths = /vendor/${LIB}/hw:/vendor/${LIB}/egl
  109.  
  110. namespace.vndk.asan.search.paths = /data/asan/vendor/${LIB}/vndk-sp:/vendor/${LIB}/vndk-sp:/data/asan/system/${LIB}/vndk-sp:/system/${LIB}/vndk-sp
  111. namespace.vndk.asan.permitted.paths = /data/asan/vendor/${LIB}/hw:/vendor/${LIB}/hw:/data/asan/vendor/${LIB}/egl:/vendor/${LIB}/egl
  112.  
  113. # When these NDK libs are required inside this namespace, then it is redirected
  114. # to the default namespace. This is possible since their ABI is stable across
  115. # Android releases.
  116. namespace.vndk.links = default
  117. namespace.vndk.link.default.shared_libs = android.hidl.memory@1.0-impl.so:libc.so:libm.so:libdl.so:libstdc++.so:liblog.so:libnativewindow.so:libEGL.so:libsync.so:libvndksupport.so:libz.so
  118.  
  119. ###############################################################################
  120. # Namespace config for vendor processes. In O, no restriction is enforced for
  121. # them. However, in O-MR1, access to /system/${LIB} will not be allowed to
  122. # the default namespace. 'system' namespace will be added to give limited
  123. # (LL-NDK only) access.
  124. ###############################################################################
  125. [vendor]
  126. namespace.default.isolated = false
  127. namespace.default.search.paths = /vendor/${LIB}/hw:/vendor/${LIB}/egl:/vendor/${LIB}:/system/${LIB}/vndk:/vendor/${LIB}/vndk-sp:/system/${LIB}/vndk-sp:/system/${LIB}
  128.  
  129. namespace.default.asan.search.paths = /data/asan/vendor/${LIB}/hw:/vendor/${LIB}/hw:/data/asan/vendor/${LIB}/egl:/vendor/${LIB}/egl:/data/asan/vendor/${LIB}:/vendor/${LIB}:/data/asan/system/${LIB}/vndk:/system/${LIB}/vndk:/data/asan/vendor/${LIB}/vndk-sp:/vendor/${LIB}/vndk-sp:/data/asan/system/${LIB}/vndk-sp:/system/${LIB}/vndk-sp:/data/asan/system/${LIB}:/system/${LIB}
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top