[ALPS03997985] Factory Mode: add permission for test report

[Solution]
Factory Mode needs the permission to save test report in
data/vendor, so add it

MTK-Commit-Id: 1daeb3669ade3f8213b893ae903733ca13bb9b93

Change-Id: I8005207d25fdc2bcab06dd193a3d7f7d2b521f23
CR-Id: ALPS03997985
Feature: Factory Mode
(cherry picked from commit 981cd097e413fd52a3cae2d5b8203150e9c1b45f)
(cherry picked from commit d49fb6cec0ea53e47ab72bcd5f2cbfa0dcf4eb34)
This commit is contained in:
Chunlan Wang 2020-01-18 10:04:49 +08:00 committed by Gang Wei
parent b0b96a17d9
commit eca198762f

View File

@ -341,3 +341,11 @@ allow factory factory:capability { sys_module net_admin net_raw };
# For power_supply and switch permission
r_dir_file(factory, sysfs_batteryinfo)
r_dir_file(factory, sysfs_switch)
# Date : WK18.27
# Operation: P migration
# Purpose : Allow factory to save test report to /data/vendor
allow factory vendor_data_file:dir { add_name read write};
allow factory vendor_data_file:file { create read write open };