[ALPS04324880] em_svr: add map permission for shell_exec

[Detail]
Add map permission for shell_exec to let Batterylog.java
can set command from shell.
Modify the permission list to rx_file_perms.

MTK-Commit-Id: d8f72393dddc2787c88bb2141594319bfe473e9a

Change-Id: I04b1b5c056223e30d5d8b6f8fe7a503afc28b521
CR-Id: ALPS04324880
Feature: Power Delivery
(cherry picked from commit 63fd26ecb2014b5a03db649b332858943a6893a9)
This commit is contained in:
Elvin Lin 2020-01-18 10:08:19 +08:00
parent 0ae36245e9
commit 9f2e49db1c

View File

@ -52,7 +52,7 @@ allow em_svr self:capability { chown fsetid };
# Date: WK1812 # Date: WK1812
# Purpose: add for shell cmd # Purpose: add for shell cmd
allow em_svr shell_exec:file { getattr execute read open execute_no_trans }; allow em_svr shell_exec:file rx_file_perms;
# Date: WK1812 # Date: WK1812
# Purpose: add for power battery charge/PMU # Purpose: add for power battery charge/PMU