diff options
author | Joel Galenson <jgalenson@google.com> | 2018-01-30 10:31:30 -0800 |
---|---|---|
committer | Davide Garberi <dade.garberi@gmail.com> | 2019-05-16 16:27:13 +0200 |
commit | 78c16642a4539a991189d4cc4106fc326f646a83 (patch) | |
tree | 0388d0b59797deee47cbdea3c0e65fc974e7e56d /rootdir | |
parent | ba0e1c243765b86de2f38d122d86f042804436cf (diff) |
msm8996-common: Fix thermal-engine dac_override denial.
We occasionally see a dac_override SELinux denial from thermal-engine
trying to access /dev/diag. This seems to be a race between
thermal-engine reading the file and init setting its permissions to
666 (they are initially set to 660 and in the diag group).
This commit adds thermal-engine to the diag group so that it can read
the file even if it is not world-readable.
Bug: 72458250
Test: Boot and test wifi and camera.
Change-Id: I55adfcf731a5da3ba7bb52d957d64e8e1f26febb
Diffstat (limited to 'rootdir')
-rw-r--r-- | rootdir/etc/init.qcom.rc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc index b21bb77..0b06ca9 100644 --- a/rootdir/etc/init.qcom.rc +++ b/rootdir/etc/init.qcom.rc @@ -516,7 +516,7 @@ service thermal-engine /vendor/bin/thermal-engine -c /vendor/etc/thermal-engine. socket thermal-recv-client stream 0660 system system socket thermal-recv-passive-client stream 0666 system system socket thermal-send-rule stream 0660 system system - group root + group system root diag socket thermal-send-client stream 0666 system system socket thermal-recv-client stream 0660 system system socket thermal-recv-passive-client stream 0666 system system |