diff --git a/sepolicy/file.te b/sepolicy/file.te index 2e9565c..4355c58 100644 --- a/sepolicy/file.te +++ b/sepolicy/file.te @@ -8,3 +8,4 @@ type firmware_file, fs_type, contextmount_type; type persist_file, file_type; type persist_data_file, file_type; type persist_display_file, file_type; +type persist_sensors_file, file_type; diff --git a/sepolicy/file_contexts b/sepolicy/file_contexts index 0bef9f3..ffb35ef 100644 --- a/sepolicy/file_contexts +++ b/sepolicy/file_contexts @@ -81,6 +81,7 @@ /firmware(/.*)? u:object_r:firmware_file:s0 # /persist -/persist(/.*)? u:object_r:persist_file:s0 -/persist/data(/.*)? u:object_r:persist_data_file:s0 -/persist/display(/.*)? u:object_r:persist_display_file:s0 +/persist(/.*)? u:object_r:persist_file:s0 +/persist/data(/.*)? u:object_r:persist_data_file:s0 +/persist/display(/.*)? u:object_r:persist_display_file:s0 +/persist/sensors(/.*)? u:object_r:persist_sensors_file:s0 diff --git a/sepolicy/system_server.te b/sepolicy/system_server.te new file mode 100644 index 0000000..bd617fe --- /dev/null +++ b/sepolicy/system_server.te @@ -0,0 +1,4 @@ +allow system_server self:socket ioctl; +allowxperm system_server self:socket ioctl msm_sock_ipc_ioctls; + +allow system_server persist_sensors_file:file r_file_perms;