From: Jan Altensen Date: Sun, 9 May 2021 05:06:16 +0000 (+0200) Subject: exynos9610: address mediacodec denials X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e663a7bc7168f6f07672fbcec96f7b85749c6345;p=GitHub%2FLineageOS%2Fandroid_device_motorola_exynos9610-common.git exynos9610: address mediacodec denials Change-Id: I2943deca6987a88e6aa4d289b16ac5d695e6f0cf --- diff --git a/sepolicy/vendor/device.te b/sepolicy/vendor/device.te index 99ce762..e783451 100644 --- a/sepolicy/vendor/device.te +++ b/sepolicy/vendor/device.te @@ -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; diff --git a/sepolicy/vendor/file_contexts b/sepolicy/vendor/file_contexts index fc88185..ed2cde5 100644 --- a/sepolicy/vendor/file_contexts +++ b/sepolicy/vendor/file_contexts @@ -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 diff --git a/sepolicy/vendor/mediacodec.te b/sepolicy/vendor/mediacodec.te index edd7c98..eac449a 100644 --- a/sepolicy/vendor/mediacodec.te +++ b/sepolicy/vendor/mediacodec.te @@ -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; diff --git a/sepolicy/vendor/property_contexts b/sepolicy/vendor/property_contexts index 29876b8..e3f5d4d 100644 --- a/sepolicy/vendor/property_contexts +++ b/sepolicy/vendor/property_contexts @@ -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