10d163575Sopenharmony_ci<?xml version="1.0" encoding="UTF-8"?>
20d163575Sopenharmony_ci<!-- Copyright (c) 2021 Huawei Device Co., Ltd.
30d163575Sopenharmony_ci
40d163575Sopenharmony_ci     Licensed under the Apache License, Version 2.0 (the "License");
50d163575Sopenharmony_ci     you may not use this file except in compliance with the License.
60d163575Sopenharmony_ci     You may obtain a copy of the License at
70d163575Sopenharmony_ci
80d163575Sopenharmony_ci          http://www.apache.org/licenses/LICENSE-2.0
90d163575Sopenharmony_ci
100d163575Sopenharmony_ci     Unless required by applicable law or agreed to in writing, software
110d163575Sopenharmony_ci     distributed under the License is distributed on an "AS IS" BASIS,
120d163575Sopenharmony_ci     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
130d163575Sopenharmony_ci     See the License for the specific language governing permissions and
140d163575Sopenharmony_ci     limitations under the License.
150d163575Sopenharmony_ci-->
160d163575Sopenharmony_ci
170d163575Sopenharmony_ci<!--
180d163575Sopenharmony_ci   This is the configuration file template for OpenHarmony OSS Audit Tool. Please copy it to your project root dir and modify it by referring to OpenHarmony/tools_oat/README.
190d163575Sopenharmony_ci-->
200d163575Sopenharmony_ci
210d163575Sopenharmony_ci<configuration>
220d163575Sopenharmony_ci    <oatconfig>
230d163575Sopenharmony_ci        <licensefile></licensefile>
240d163575Sopenharmony_ci        <policylist>
250d163575Sopenharmony_ci            <policy name="projectPolicy" desc="">
260d163575Sopenharmony_ci                <policyitem type="copyright" name="Huawei Technologies Co., Ltd. All rights reserved." path=".*" desc="original liteos copyright"/>
270d163575Sopenharmony_ci                <policyitem type="copyright" name="Huawei Device Co., Ltd. All rights reserved." path=".*" desc="original liteos copyright"/>
280d163575Sopenharmony_ci                <policyitem type="license" name="BSD-3-Clause" path=".*" desc="Liteos kernel use bsd3 license"/>
290d163575Sopenharmony_ci            </policy>
300d163575Sopenharmony_ci        </policylist>
310d163575Sopenharmony_ci        <filefilterlist>
320d163575Sopenharmony_ci            <filefilter name="defaultFilter" desc="文件属于FreeBSD仓库软连接,本仓库屏蔽告警,在FreeBSD仓库进行处理">
330d163575Sopenharmony_ci                <filteritem type="filepath" name="bsd/.*" desc="文件属于FreeBSD仓库软连接,本仓库屏蔽告警,在FreeBSD仓库进行处理"/>
340d163575Sopenharmony_ci                <filteritem type="filepath" name="kernel/extended" desc="文件属于Nuttx仓库软连接,本仓库屏蔽告警,在Nuttx仓库进行处理"/>
350d163575Sopenharmony_ci                <filteritem type="filepath" name="fs/include/fs" desc="文件属于Nuttx仓库软连接,本仓库屏蔽告警,在Nuttx仓库进行处理"/>
360d163575Sopenharmony_ci            </filefilter>
370d163575Sopenharmony_ci            <filefilter name="defaultFilter" desc="Files not to check">
380d163575Sopenharmony_ci                <!--filteritem type="filename" name="*.uvwxyz" desc="Describe the reason for filtering scan results"/-->
390d163575Sopenharmony_ci                <!--filteritem type="filepath" name="abcdefg/.*.uvwxyz" desc="Describe the reason for filtering scan results"/-->
400d163575Sopenharmony_ci                <!--filteritem type="filepath" name="projectroot/[a-zA-Z0-9]{20,}.sh" desc="Temp files"/-->
410d163575Sopenharmony_ci            </filefilter>
420d163575Sopenharmony_ci            <filefilter name="defaultPolicyFilter" desc="Filters for license header policies">
430d163575Sopenharmony_ci                <!--filteritem type="filename" name="*.uvwxyz" desc="Describe the reason for filtering scan results"/-->
440d163575Sopenharmony_ci                <!--filteritem type="filepath" name="abcdefg/.*.uvwxyz" desc="Describe the reason for filtering scan results"/-->
450d163575Sopenharmony_ci                <!--filteritem type="filepath" name="projectroot/[a-zA-Z0-9]{20,}.sh" desc="Temp files"/-->
460d163575Sopenharmony_ci            </filefilter>
470d163575Sopenharmony_ci            <filefilter name="copyrightPolicyFilter" desc="Filters for copyright header policies">
480d163575Sopenharmony_ci                <!--filteritem type="filename" name="*.uvwxyz" desc="Describe the reason for filtering scan results"/-->
490d163575Sopenharmony_ci                <!--filteritem type="filepath" name="abcdefg/.*.uvwxyz" desc="Describe the reason for filtering scan results"/-->
500d163575Sopenharmony_ci                <!--filteritem type="filepath" name="projectroot/[a-zA-Z0-9]{20,}.sh" desc="Temp files"/-->
510d163575Sopenharmony_ci            </filefilter>
520d163575Sopenharmony_ci            <filefilter name="licenseFileNamePolicyFilter" desc="Filters for LICENSE file policies">
530d163575Sopenharmony_ci                <!--filteritem type="filename" name="*.uvwxyz" desc="Describe the reason for filtering scan results"/-->
540d163575Sopenharmony_ci                <!--filteritem type="filepath" name="abcdefg/.*.uvwxyz" desc="Describe the reason for filtering scan results"/-->
550d163575Sopenharmony_ci                <!--filteritem type="filepath" name="projectroot/[a-zA-Z0-9]{20,}.sh" desc="Temp files"/-->
560d163575Sopenharmony_ci            </filefilter>
570d163575Sopenharmony_ci            <filefilter name="readmeFileNamePolicyFilter" desc="Filters for README file policies">
580d163575Sopenharmony_ci                <!--filteritem type="filename" name="*.uvwxyz" desc="Describe the reason for filtering scan results"/-->
590d163575Sopenharmony_ci                <!--filteritem type="filepath" name="abcdefg/.*.uvwxyz" desc="Describe the reason for filtering scan results"/-->
600d163575Sopenharmony_ci                <!--filteritem type="filepath" name="projectroot/[a-zA-Z0-9]{20,}.sh" desc="Temp files"/-->
610d163575Sopenharmony_ci            </filefilter>
620d163575Sopenharmony_ci            <filefilter name="readmeOpenSourcefileNamePolicyFilter" desc="Filters for README.OpenSource file policies">
630d163575Sopenharmony_ci                <!--filteritem type="filename" name="*.uvwxyz" desc="Describe the reason for filtering scan results"/-->
640d163575Sopenharmony_ci                <!--filteritem type="filepath" name="abcdefg/.*.uvwxyz" desc="Describe the reason for filtering scan results"/-->
650d163575Sopenharmony_ci                <!--filteritem type="filepath" name="projectroot/[a-zA-Z0-9]{20,}.sh" desc="Temp files"/-->
660d163575Sopenharmony_ci            </filefilter>
670d163575Sopenharmony_ci            <filefilter name="binaryFileTypePolicyFilter" desc="Filters for binary file policies">
680d163575Sopenharmony_ci                <filteritem type="filepath" name="figures/architecture-of-the-openharmony-liteos-cortex-a-kernel.png" desc="architecture-of-the-openharmony-liteos-cortex-a-kernel"/>
690d163575Sopenharmony_ci                <filteritem type="filepath" name="figures/OpenHarmony-LiteOS-A内核架构图.png" desc="LiteOS-A内核架构图"/>
700d163575Sopenharmony_ci                <!--filteritem type="filename" name="*.uvwxyz" desc="Describe the reason for filtering scan results"/-->
710d163575Sopenharmony_ci                <!--filteritem type="filepath" name="abcdefg/.*.uvwxyz" desc="Describe the reason for filtering scan results"/-->
720d163575Sopenharmony_ci                <!--filteritem type="filepath" name="projectroot/[a-zA-Z0-9]{20,}.sh" desc="Temp files"/-->
730d163575Sopenharmony_ci            </filefilter>
740d163575Sopenharmony_ci
750d163575Sopenharmony_ci        </filefilterlist>
760d163575Sopenharmony_ci        <licensematcherlist>
770d163575Sopenharmony_ci            <!--licensematcher name="uvwxyz License" desc="If the scanning result is InvalidLicense, you can define matching rules here. Note that quotation marks must be escaped.">
780d163575Sopenharmony_ci                <licensetext name="
790d163575Sopenharmony_ci                    uvwxyz license textA xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
800d163575Sopenharmony_ci                " desc=""/>
810d163575Sopenharmony_ci                <licensetext name="
820d163575Sopenharmony_ci                    uvwxyz license textB xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
830d163575Sopenharmony_ci                " desc=""/>
840d163575Sopenharmony_ci            </licensematcher-->
850d163575Sopenharmony_ci        </licensematcherlist>
860d163575Sopenharmony_ci    </oatconfig>
870d163575Sopenharmony_ci</configuration>
88