diff --git a/public/domain.te b/public/domain.te index 61b58b697edbc0213656337d4db2cd4e2cc276f7..4f359ce3997ffcdb37c8b784b3adbd4c5c73e112 100644 --- a/public/domain.te +++ b/public/domain.te @@ -597,6 +597,7 @@ neverallow { -init -uncrypt -update_engine + -vendor_init -vold -recovery -ueventd diff --git a/public/vendor_init.te b/public/vendor_init.te index dd7479fcb68fabaf6d1e158533b1f0b931260d49..ac2283118fb08010c9fd10048590cd5f71a88b08 100644 --- a/public/vendor_init.te +++ b/public/vendor_init.te @@ -146,6 +146,9 @@ allow vendor_init serialno_prop:file { getattr open read }; # Vendor init can perform operations on trusted and security Extended Attributes allow vendor_init self:global_capability_class_set sys_admin; +# Raw writes to misc block device +allow vendor_init misc_block_device:blk_file w_file_perms; + not_compatible_property(` set_prop(vendor_init, { property_type