From eca198762f9eee0bf7bd205f67e928d2f9eb366c Mon Sep 17 00:00:00 2001 From: Chunlan Wang Date: Sat, 18 Jan 2020 10:04:49 +0800 Subject: [PATCH] [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) --- non_plat/factory.te | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/non_plat/factory.te b/non_plat/factory.te index cf6db31..82a3549 100644 --- a/non_plat/factory.te +++ b/non_plat/factory.te @@ -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 }; + +