Skip to content
Snippets Groups Projects
Commit c456286e authored by Tom Cherry's avatar Tom Cherry Committed by android-build-merger
Browse files

Add /dev/__properties__/property_info am: 8b5433a9

am: c878b4c5

Change-Id: I0781ab5eaf7aec47a8657e1c6ef10080c3294463
parents 3107b532 c878b4c5
No related branches found
No related tags found
No related merge requests found
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
netd_stable_secret_prop netd_stable_secret_prop
network_watchlist_service network_watchlist_service
package_native_service package_native_service
property_info
slice_service slice_service
statscompanion_service statscompanion_service
storaged_data_file storaged_data_file
......
...@@ -171,6 +171,7 @@ ...@@ -171,6 +171,7 @@
/dev/xt_qtaguid u:object_r:qtaguid_device:s0 /dev/xt_qtaguid u:object_r:qtaguid_device:s0
/dev/zero u:object_r:zero_device:s0 /dev/zero u:object_r:zero_device:s0
/dev/__properties__ u:object_r:properties_device:s0 /dev/__properties__ u:object_r:properties_device:s0
/dev/__properties__/property_info u:object_r:property_info:s0
############################# #############################
# System files # System files
# #
......
...@@ -59,6 +59,7 @@ type usbaccessory_device, dev_type, mlstrustedobject; ...@@ -59,6 +59,7 @@ type usbaccessory_device, dev_type, mlstrustedobject;
type usb_device, dev_type, mlstrustedobject; type usb_device, dev_type, mlstrustedobject;
type properties_device, dev_type; type properties_device, dev_type;
type properties_serial, dev_type; type properties_serial, dev_type;
type property_info, dev_type;
type i2c_device, dev_type; type i2c_device, dev_type;
# All devices have a uart for the hci # All devices have a uart for the hci
......
...@@ -81,6 +81,7 @@ allow domain proc_random:dir r_dir_perms; ...@@ -81,6 +81,7 @@ allow domain proc_random:dir r_dir_perms;
allow domain proc_random:file r_file_perms; allow domain proc_random:file r_file_perms;
allow domain properties_device:dir { search getattr }; allow domain properties_device:dir { search getattr };
allow domain properties_serial:file r_file_perms; allow domain properties_serial:file r_file_perms;
allow domain property_info:file r_file_perms;
# For now, everyone can access core property files # For now, everyone can access core property files
# Device specific properties are not granted by default # Device specific properties are not granted by default
......
...@@ -21,6 +21,9 @@ userdebug_or_eng(` ...@@ -21,6 +21,9 @@ userdebug_or_eng(`
allow init properties_device:dir relabelto; allow init properties_device:dir relabelto;
allow init properties_serial:file { write relabelto }; allow init properties_serial:file { write relabelto };
allow init property_type:file { create_file_perms relabelto }; allow init property_type:file { create_file_perms relabelto };
# /dev/__properties__/property_info
allow init properties_device:file create_file_perms;
allow init property_info:file relabelto;
# /dev/event-log-tags # /dev/event-log-tags
allow init device:file relabelfrom; allow init device:file relabelfrom;
allow init runtime_event_log_tags_file:file { open write setattr relabelto create }; allow init runtime_event_log_tags_file:file { open write setattr relabelto create };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment