diff options
Diffstat (limited to 'sepolicy-custom/variant_setup.te')
-rw-r--r-- | sepolicy-custom/variant_setup.te | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/sepolicy-custom/variant_setup.te b/sepolicy-custom/variant_setup.te new file mode 100644 index 0000000..b4072ca --- /dev/null +++ b/sepolicy-custom/variant_setup.te @@ -0,0 +1,21 @@ +# Variant-Setup script (init.espresso.variant.sh) +type variant_setup, domain; +type variant_setup_exec, exec_type, file_type; + +init_daemon_domain(variant_setup) + +# Run init.espresso.variant.sh +allow variant_setup shell_exec:file rx_file_perms; +allow variant_setup variant_setup_exec:file rx_file_perms; + +# Talk to init over the property socket +unix_socket_connect(variant_setup, property, init) + +# Allow getprop/setprop for init.espresso.variant.sh +allow variant_setup system_file:file execute_no_trans; +allow variant_setup rotation_prop:property_service set; + +# Set accelerometer and geomagnetic position via sysfs +allow variant_setup sysfs:file write; + +allow variant_setup self:capability dac_override; |