OSDN Git Service

btlinux: Fix sepolicy for split policy (Treble) builds
authorRob Herring <robh@kernel.org>
Mon, 18 Sep 2017 14:25:58 +0000 (09:25 -0500)
committerRob Herring <robh@kernel.org>
Mon, 18 Sep 2017 21:35:27 +0000 (16:35 -0500)
In full Treble builds, the btlinux HAL fails to build the sepolicy:

neverallow check failed at out/target/product/linaro_x86_64/obj/ETC/plat_sepolicy.cil_intermediates/plat_sepolicy.cil:4518
from system/sepolicy/public/domain.te:673
  (neverallow base_typeattr_55 base_typeattr_56 (file (execute execute_no_trans entrypoint)))
    <root>
    allow at out/target/product/linaro_x86_64/obj/ETC/nonplat_sepolicy.cil_intermediates/nonplat_sepolicy.cil:6054
      (allow hal_bluetooth_btlinux hal_bluetooth_btlinux_exec (file (read getattr map execute entrypoint open)))

Test: Build completes successfully
Change-Id: Ibb8dbe7f2ca823c87ae4404c40cdc35656c8e0af
Signed-off-by: Rob Herring <robh@kernel.org>
vendor_libs/linux/sepolicy/hal_bluetooth_btlinux.te

index 32349b9..22d9cf0 100644 (file)
@@ -1,5 +1,5 @@
 type hal_bluetooth_btlinux, domain;
-type hal_bluetooth_btlinux_exec, exec_type, file_type;
+type hal_bluetooth_btlinux_exec, exec_type, file_type, vendor_file_type;
 
 hal_server_domain(hal_bluetooth_btlinux, hal_bluetooth)
 init_daemon_domain(hal_bluetooth_btlinux)