From 2e393672ddc893330818c53482e5184792cc9a4e Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Sat, 11 Apr 2020 15:17:23 +0200 Subject: [PATCH] common: Add policy for gnss HAL Change-Id: I5c3390f5ef0a63b92fecdf50d6661b33f5dcc051 --- common/vendor/hal_gnss_default.te | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 common/vendor/hal_gnss_default.te diff --git a/common/vendor/hal_gnss_default.te b/common/vendor/hal_gnss_default.te new file mode 100644 index 0000000..5911960 --- /dev/null +++ b/common/vendor/hal_gnss_default.te @@ -0,0 +1,12 @@ +# hal_gnss_default.te + +# cgroups tasks +allow hal_gnss_default cgroup:file getattr; + +# /data/vendor/gps +allow hal_gnss_default gps_vendor_data_file:dir rw_dir_perms; +allow hal_gnss_default gps_vendor_data_file:file create_file_perms; +allow hal_gnss_default gps_vendor_data_file:fifo_file create_file_perms; + +# /mnt/vendor +allow hal_gnss_default mnt_vendor_file:dir search; -- 2.20.1