No description
  • C 98.2%
  • Assembly 1%
  • Makefile 0.3%
  • Shell 0.2%
  • Python 0.1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jiacheng Ou 01ea848b31 sensor:sometimes avc error after reboot
Issue:
Sometimes avc error after reboot:
avc: denied { write  } for comm="capsense_reset" name="reset"
dev="sysfs" ino=54780 scontext=u:r:capsense_reset:s0 tcontext
=u:object_r:sysfs:s0 tclass=file permissive=0 pkg=""

Rootcause:
class_register logic:
-create sysfs dir 'capsense'
-send uevent 'add' to hal
-create sysfs file 'reset'
Most of times sysfs file haven't create while ueventd monitor 'ADD'
to fresh sys/class/capsense label as 'sysfs_capsense',file under
capsense will inherit /sys label ,which is 'sysfs'.

Fix:
Send uevent 'CHANGE' again to HAL,so that relabeling
'/sys/class/capsense/*'.

Change-Id: If6ddf3205a9f299e0617814d341827357ecb126f
Signed-off-by: Jiacheng Ou <oujc1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1434771
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key

Conflicts:
	drivers/misc/sx933x/Kbuild
Change-Id: I95404ee83cee74369af2c5b1a8e8152d3699300d
Reviewed-on: https://gerrit.mot.com/1435914
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jiacheng Ou <oujc1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2019-10-11 22:33:20 -05:00
Documentation/devicetree/bindings dlkm: add goodix fod driver 2019-09-26 22:46:49 -05:00
drivers sensor:sometimes avc error after reboot 2019-10-11 22:33:20 -05:00
fs/exfat exfat: avoid uniname accessing invalid address 2019-01-08 20:40:12 -06:00
include Add sensor type 'double tap' to kernel 2019-09-17 04:30:38 -05:00
sound/soc/codecs tas25xx_algo:add protection for tas25xx_set_profile 2019-10-02 02:31:06 -05:00
AndroidKernelModule.mk add clang build option 2019-08-08 22:17:12 +00:00