mirror of
https://github.com/Evolution-X-Devices/device_google_wahoo
synced 2026-02-01 15:09:54 +00:00
Grant HALs access to diag_device
avc: denied { read write } for comm="imsrcsd" name="diag"
dev="tmpfs" ino=9694 scontext=u:r:hal_rcsservice:s0
tcontext=u:object_r:diag_device:s0 tclass=chr_file
avc: denied { read write } for comm="ims_rtp_daemon"
name="diag" dev="tmpfs" ino=9694 scontext=u:r:hal_imsrtp:s0
tcontext=u:object_r:diag_device:s0 tclass=chr_file
Bug: 68705274
Test: build
Change-Id: I39f21c1e01001ea83d38461b450e42db1d21991d
This commit is contained in:
5
sepolicy/vendor/hal_imsrtp.te
vendored
5
sepolicy/vendor/hal_imsrtp.te
vendored
@@ -30,3 +30,8 @@ r_dir_file(hal_imsrtp, sysfs_soc)
|
||||
allow hal_imsrtp ion_device:chr_file r_file_perms;
|
||||
get_prop(hal_imsrtp, ims_prop)
|
||||
binder_call(hal_imsrtp, radio)
|
||||
|
||||
userdebug_or_eng(`
|
||||
allow hal_imsrtp diag_device:chr_file rw_file_perms;
|
||||
')
|
||||
dontaudit hal_imsrtp diag_device:chr_file rw_file_perms;
|
||||
|
||||
5
sepolicy/vendor/hal_rcsservice.te
vendored
5
sepolicy/vendor/hal_rcsservice.te
vendored
@@ -27,3 +27,8 @@ binder_call(hal_rcsservice, dataservice_app)
|
||||
|
||||
# imsrcsd needs read/write access to devpts
|
||||
allow hal_rcsservice devpts:chr_file rw_file_perms;
|
||||
|
||||
userdebug_or_eng(`
|
||||
allow hal_rcsservice diag_device:chr_file rw_file_perms;
|
||||
')
|
||||
dontaudit hal_rcsservice diag_device:chr_file rw_file_perms;
|
||||
|
||||
Reference in New Issue
Block a user