exynos9610: address mediacodec denials
authorJan Altensen <info@stricted.net>
Sun, 9 May 2021 05:06:16 +0000 (07:06 +0200)
committerJan Altensen <info@stricted.net>
Sun, 9 May 2021 05:22:01 +0000 (07:22 +0200)
Change-Id: I2943deca6987a88e6aa4d289b16ac5d695e6f0cf

sepolicy/vendor/device.te
sepolicy/vendor/file_contexts
sepolicy/vendor/mediacodec.te
sepolicy/vendor/property_contexts

index 99ce7624407e98aab08e651bcfeb64c399ef4109..e7834519b76a5b0b6d2fecde1448c0e52b51525a 100644 (file)
@@ -10,6 +10,7 @@ type keystorage_block_device, dev_type;
 type kpan_block_device, dev_type;
 type ldfw_block_device, dev_type;
 type logo_block_device, dev_type;
+type m2m1shot_device, dev_type;
 type oem_block_device, dev_type;
 type persist_block_device, dev_type;
 type proinfo_block_device, dev_type;
index fc88185bb39a2c60aed8532ae1f8dee6fc46d59b..ed2cde580ff6ff90cd9ede12cd046dfaf353322f 100644 (file)
@@ -65,6 +65,8 @@
 
 /dev/gnss_ipc                                                                           u:object_r:gnss_device:s0
 
+/dev/m2m1shot_scaler0                                                                   u:object_r:m2m1shot_device:s0
+
 /dev/mali[0-9]                                                                          u:object_r:gpu_device:s0
 
 /dev/nanohub                                                                            u:object_r:vendor_nanohub_device:s0
index edd7c989e37c90c3f1ba20bf1c257216f5d59cc7..eac449ab1d7e1cb088a042cd5d29c8860ab46caf 100644 (file)
@@ -1,2 +1,5 @@
 hal_client_domain(mediacodec, hal_power);
+
 r_dir_file(mediacodec, sysfs_v4l);
+
+allow mediacodec m2m1shot_device:chr_file rw_file_perms;
index 29876b82071a7245cd76708b6a0bb596c97eb4e4..e3f5d4dd9538c8c0f3afbfb54351a520652f59cf 100644 (file)
@@ -28,3 +28,4 @@ vendor.wlan.                        u:object_r:vendor_wifi_prop:s0
 
 persist.data.wda.enable             u:object_r:vendor_default_prop:s0
 persist.data.df.                    u:object_r:vendor_default_prop:s0
+ro.vendor.cscsupported              u:object_r:vendor_default_prop:s0