Add sepolicy for gnssd

Bug: 265391808
Test: build pass
Change-Id: I27d4ebe455967ffd732cea05d7375fbe7be5ab62
This commit is contained in:
Edwin Tung 2023-06-02 15:56:45 +08:00
parent 1be1e15c26
commit c2b07bc5f6
2 changed files with 4 additions and 1 deletions

5
vendor/gnssd.te vendored
View file

@ -4,9 +4,12 @@ init_daemon_domain(gnssd);
# Allow gnssd to access rild
binder_call(gnssd, rild);
allow gnssd hal_exynos_rild_hwservice:hwservice_manager find;
binder_call(gnssd, hwservicemanager)
allow gnssd hal_exynos_rild_hwservice:hwservice_manager find;
allow gnssd radio_device:chr_file rw_file_perms;
# Allow gnssd to acess gnss device
allow gnssd vendor_gnss_device:chr_file rw_file_perms;
allow gnssd vendor_gps_file:dir create_dir_perms;
allow gnssd vendor_gps_file:file create_file_perms;
allow gnssd vendor_gps_file:fifo_file create_file_perms;