diff options
-rw-r--r-- | sepolicy/rild.te | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sepolicy/rild.te b/sepolicy/rild.te index b6013f0..0530e95 100644 --- a/sepolicy/rild.te +++ b/sepolicy/rild.te @@ -13,3 +13,13 @@ allow rild system_file:file { execute execmod }; # Have no idea why rild needs access to logcat, # potentially to catch errors from some other components? allow rild logcat_exec:file { getattr read open execute execute_no_trans }; + +## Allow ioctl commands used by rild +# These are needed for toro's ril. toroplus may not need 0x89a2, but needs the +# other three. maguro may or may not need these. +# Device-specific calls could be moved into their respective device trees +# in the future. +allow rild self:unix_stream_socket 0x89a0; +allow rild self:unix_stream_socket 0x89a2; +allow rild self:unix_stream_socket 0x89a3; +allow rild self:unix_stream_socket 0x89f0; |