Commit graph

8 commits

Author SHA1 Message Date
Peter Collingbourne
0122099251 Export some additional symbols from libselinux.
This will allow certain other platform components to link against
libselinux dynamically instead of statically.
2018-09-13 14:34:12 -07:00
Steven Moreland
080ddd2df0 Fix vendor situation for selinux_log_callback.
Add a new function selinux_vendor_log_callback to support
    the non-VNDK vendor case (where /system/etc/event-log-tags
    isn't available for consistency of all PRODUCT_FULL_TREBLE
    devices whether they are VNDK or the legacy VNDK).

Bug: 113083310
Test: boot Pixel 1, use new APIs in vndservicemanager, check
      for denials.
Change-Id: I032dbb6e6fb5d9b825feab9dee0de617c055cfe2
2018-09-07 15:07:42 -07:00
Jiyong Park
5340684e43 Export more symbols for init
Following symbols from libselinux are used by init. They need to be
exposed in order for the init to dynamically link to libselinux.

Note that this does not affect symbols visibility to vendor, which is
controlled by other map file, exported_vendor.map.

Bug: 63673171
Test: m -j
Test: adb reboot recovery
Change-Id: Ic149801b60fc739ab99f29711a522d460001a293
2018-06-19 16:51:29 +09:00
Robert Sesek
35a33f5b8e Add security_get_initial_context to the exported.map.
This will be used by ss(8) in platform/external/iproute2.

Test: With topic merged, `m` and `adb shell ss -Z` shows SELinux labels.
Change-Id: I30d5e180fee1c9d99ba8d31586468f83ffd3e177
2018-04-09 16:15:42 -04:00
Martijn Coenen
71328c2d4b Add a method to load hwservice_contexts.
Bug: 34454312
Test: WIP
Change-Id: I29f790c8c3667115476b4b8b4918d44e9a439703
2017-04-07 16:13:58 -07:00
Martijn Coenen
69e45cdfee Add a method to load vendor_service_context only.
This is used by vndservicemanager, which will only
have access to the vndservice_contexts on the vendor
partition.

Bug: 36052864
Test: vndservicemanager can load the context
Change-Id: Ifd5caa4f74236184ef970ce39a8be227c50b48d4
2017-04-03 15:40:40 -07:00
Yifan Hong
a1084cc463 Export security_policyvers().
libvintf is using this.

Test: mma
Change-Id: I2aac61695f9680a4c21fb7fed19fbc72118477b9
2017-01-19 16:39:56 -08:00
Nick Kralevich
e31efd69c5 libselinux: be strict about what symbols we export
Make sure shared libraries we create export only the minimum number of
symbols, and not a bit more. We want to be careful what SELinux APIs we
(directly or indirectly) expose to other processes.

Test: Android compiles. Link time restrictions only.
Change-Id: Ia6d1788cd944b46f1e97f621f4466fb8ada29191
2017-01-18 09:11:13 -08:00