cec: use vendor property for device & remove unneeded properties

* Use vendor property to allow labeling it for SELinux.
* Remove unneeded properties to set version and vendor id. Using the
  default values in any case.
This commit is contained in:
Konsta
2025-03-22 01:48:55 +02:00
parent 47a329c4e4
commit 3022586712
6 changed files with 10 additions and 19 deletions

View File

@@ -1 +1,2 @@
allow hal_tv_hdmi_cec_default cec_device:chr_file rw_file_perms;
get_prop(hal_tv_hdmi_cec_default, vendor_hdmi_config_prop)

1
sepolicy/property.te Normal file
View File

@@ -0,0 +1 @@
vendor_internal_prop(vendor_hdmi_config_prop)

View File

@@ -0,0 +1,2 @@
# CEC
persist.vendor.hdmi.cec_device u:object_r:vendor_hdmi_config_prop:s0