From: Nolen Johnson Date: Wed, 24 Apr 2024 20:33:46 +0000 (-0400) Subject: exynos9610: Fix early boot denials X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ff320093d854347997481f3dfbb821938cfb28ed;p=GitHub%2FLineageOS%2Fandroid_device_motorola_exynos9610-common.git exynos9610: Fix early boot denials * Many of these properties are useless or do nothing. Change-Id: I02335afffef70fa040ccb6f0ea91d9717f7e33ae --- diff --git a/sepolicy/vendor/fsck.te b/sepolicy/vendor/fsck.te index 195b164..1d1850c 100644 --- a/sepolicy/vendor/fsck.te +++ b/sepolicy/vendor/fsck.te @@ -1 +1,3 @@ allow fsck self:capability kill; + +allow fsck sysfs_scheduler:file r_file_perms; diff --git a/sepolicy/vendor/genfs_contexts b/sepolicy/vendor/genfs_contexts index 5ccd39f..f5fded7 100644 --- a/sepolicy/vendor/genfs_contexts +++ b/sepolicy/vendor/genfs_contexts @@ -34,6 +34,7 @@ genfscon sysfs /devices/platform/11d40000.hsi2c/i2c-1/1-005a/leds/vibrator genfscon sysfs /devices/platform/12c30000.mfc0/video4linux/video6/name u:object_r:sysfs_v4l:s0 genfscon sysfs /devices/platform/12c30000.mfc0/video4linux/video7/name u:object_r:sysfs_v4l:s0 genfscon sysfs /devices/platform/13520000.ufs/host0/target0:0:0/0:0:0:0/block/sda/queue/scheduler u:object_r:sysfs_scheduler:s0 +genfscon sysfs /devices/platform/13520000.ufs/host0/target0:0:0/0:0:0:0/block/sda/sda42/partition u:object_r:sysfs_scheduler:s0 genfscon sysfs /devices/platform/13830000.i2c/i2c-7/7-003b/power_supply u:object_r:sysfs_battery:s0 genfscon sysfs /devices/platform/13830000.i2c/i2c-7/7-003c/power_supply u:object_r:sysfs_battery:s0 genfscon sysfs /devices/platform/13830000.i2c/i2c-8/8-003b/power_supply u:object_r:sysfs_battery:s0 @@ -56,6 +57,8 @@ genfscon sysfs /devices/platform/13840000.i2c/i2c-9/9-003d/s2mu00x-battery/power genfscon sysfs /devices/platform/13840000.i2c/i2c-9/9-003d/s2mu00x-battery/power_supply/battery/temp u:object_r:sysfs_battery_writable:s0 genfscon sysfs /devices/platform/13840000.i2c/i2c-9/9-003d/s2mu106-charger/power_supply u:object_r:sysfs_battery:s0 genfscon sysfs /devices/platform/13840000.i2c/i2c-9/9-003d/s2mu106-powermeter/power_supply/s2mu106_pmeter/type u:object_r:sysfs_battery:s0 +genfscon sysfs /devices/platform/13940000.spi/spi_master/spi9/spi9.0/madera-extcon/extcon/extcon0/cable.1/name u:object_r:sysfs_extcon:s0 +genfscon sysfs /devices/platform/13940000.spi/spi_master/spi9/spi9.0/madera-extcon/extcon/extcon0/cable.3/name u:object_r:sysfs_extcon:s0 genfscon sysfs /devices/platform/14490000.fimc_is/debug/fixed_sensor_fps u:object_r:sysfs_fimc_writable:s0 genfscon sysfs /devices/platform/148b0000.decon_f/dqe/dqe u:object_r:sysfs_dqe:s0 genfscon sysfs /devices/platform/148b0000.decon_f/psr_info u:object_r:sysfs_decon:s0 diff --git a/sepolicy/vendor/property_contexts b/sepolicy/vendor/property_contexts index 4033741..b83686f 100644 --- a/sepolicy/vendor/property_contexts +++ b/sepolicy/vendor/property_contexts @@ -22,6 +22,7 @@ persist.vendor.radio. u:object_r:vendor_radio_prop:s0 persist.vendor.ril. u:object_r:vendor_radio_prop:s0 ro.product.model.dm u:object_r:vendor_radio_prop:s0 ro.radio.imei.sv u:object_r:vendor_radio_prop:s0 +vendor.radio.smsdomain u:object_r:vendor_radio_prop:s0 vendor.radio.ril. u:object_r:vendor_radio_prop:s0 vendor.radio.cp. u:object_r:vendor_radio_prop:s0 vendor.ril. u:object_r:vendor_radio_prop:s0 diff --git a/sepolicy/vendor/vendor_ims_app.te b/sepolicy/vendor/vendor_ims_app.te index b71694c..1d51319 100644 --- a/sepolicy/vendor/vendor_ims_app.te +++ b/sepolicy/vendor/vendor_ims_app.te @@ -14,6 +14,7 @@ allow vendor_ims_app radio_data_file:dir rw_dir_perms; allow vendor_ims_app radio_data_file:file create_file_perms; allow vendor_ims_app system_data_file:dir search; +allow vendor_ims_app user_profile_root_file:dir search; allow vendor_ims_app misc_vendor_data_file:dir create_dir_perms; allow vendor_ims_app misc_vendor_data_file:file create_file_perms; diff --git a/sepolicy/vendor/vendor_init.te b/sepolicy/vendor/vendor_init.te index 37c2dbc..788a8b8 100644 --- a/sepolicy/vendor/vendor_init.te +++ b/sepolicy/vendor/vendor_init.te @@ -18,9 +18,12 @@ allow vendor_init tmpfs:lnk_file create_file_perms; allow vendor_init system_data_root_file:dir { relabelto setattr }; allow vendor_init fingerprint_vendor_data_file:dir r_dir_perms; +allow vendor_init vendor_userdir_file:dir getattr; allow vendor_init unlabeled:{ dir file } { read getattr relabelfrom }; set_prop(vendor_init, moto_boot_prop) set_prop(vendor_init, rmnet_mux_prop) +set_prop(vendor_init, vendor_ims_prop) +set_prop(vendor_init, vendor_hwc_prop) set_prop(vendor_init, vendor_radio_prop) diff --git a/vendor.prop b/vendor.prop index f8e1ebb..57c85c2 100644 --- a/vendor.prop +++ b/vendor.prop @@ -73,10 +73,6 @@ persist.vendor.radio.dual.volte=1 ## Logging persist.vendor.wlbtlog.maxfilesize=50 persist.vendor.wlbtlog.maxfiles=5 -ro.debug_level=0x494d - -## Media -media.settings.xml=/vendor/etc/media_profiles_vendor_V1.xml ## Navigation Bar qemu.hw.mainkeys=0 @@ -95,7 +91,6 @@ ro.hardware.soc.manufacturer=slsi persist.radio.multisim.config=dsds persist.vendor.ril.crash_handling_mode=2 persist.vendor.ril.emergencynumber.sim=1 -radio.smsdomain=0 ro.carrier=europen ro.vendor.config.build_carrier=europen ro.vendor.radio.imei.sv=25