universal7885: sepolicy: Adapt for universal7885 and address denials

* Everything's working fine now
 * todo: Cleanup unnecessary rules and vendor init

Change-Id: I4faea56383b5851bbd486f45d103e0bb94ebdd24
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
This commit is contained in:
SamarV-121 2021-07-14 08:49:52 +05:30 committed by roynatech2544
commit 1875a501a1
42 changed files with 242 additions and 111 deletions

12
sepolicy/vendor/gpsd.te vendored Normal file
View file

@ -0,0 +1,12 @@
r_dir_file(gpsd, sysfs_sec_gps);
allow gpsd sysfs_gps_writable:file rw_file_perms;
allow gpsd sysfs_wake_lock:file rw_file_perms;
allow gpsd self:capability net_raw;
allow gpsd self:capability2 block_suspend;
allow gpsd bt_device:chr_file rw_file_perms;
allow gpsd gps_device:chr_file rw_file_perms;
allow gpsd gpsd_exec:file execute_no_trans;