• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="UTF-8"?>
2<!-- Copyright (c) 2021 Huawei Device Co., Ltd.
3
4     Licensed under the Apache License, Version 2.0 (the "License");
5     you may not use this file except in compliance with the License.
6     You may obtain a copy of the License at
7
8          http://www.apache.org/licenses/LICENSE-2.0
9
10     Unless required by applicable law or agreed to in writing, software
11     distributed under the License is distributed on an "AS IS" BASIS,
12     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13     See the License for the specific language governing permissions and
14     limitations under the License.
15
16    This is the configuration file template for OpenHarmony OSS Audit Tool, please copy it to your project root dir and modify it refer to OpenHarmony/tools_oat/README.
17
18-->
19
20<configuration>
21    <oatconfig>
22        <licensefile></licensefile>
23        <policylist>
24            <policy name="projectPolicy" desc="">
25                <policyitem type="copyright" name="Huawei Technologies Co., Ltd. All rights reserved." path=".*" desc="original liteos copyright"/>
26                <policyitem type="license" name="BSD-3-Clause" path=".*" desc="LiteOS kernel use bsd3 license"/>
27            </policy>
28        </policylist>
29        <filefilterlist>
30            <filefilter name="defaultFilter" desc="文件属于海思的license,但是属于apache2.0">
31                <filteritem type="filepath" name="drivers/uart/.*" desc="文件属于海思的license,但是属于apache2.0"/>
32            </filefilter>
33            <filefilter name="defaultFilter" desc="apache license">
34                <filteritem type="filepath" name="SmartL_E802/liteos_m/board/hals/csky_driver/include/csi_config.h" desc="文件属于社区贡献,不用提供额外的说明"/>
35                <filteritem type="filepath" name="SmartL_E802/liteos_m/board/hals/csky_driver/include/.*" desc="apache license"/>
36                <filteritem type="filepath" name="SmartL_E802/liteos_m/board/hals/csky_driver/src/.*" desc="apache license"/>
37                <filteritem type="filepath" name="SmartL_E802/liteos_m/board/startup.S" desc="apache license"/>
38            </filefilter>
39            <filefilter name="defaultFilter" desc="文件属于Nuttx的license">
40                <filteritem type="filepath" name="riscv32_virt/liteos_m/board/driver/video/fb.c" desc="文件属于Nuttx的license"/>
41                <filteritem type="filepath" name="riscv32_virt/liteos_m/board/driver/video/fb.h" desc="文件属于Nuttx的license"/>
42            </filefilter>
43            <filefilter name="defaultFilter" desc="三方驱动文件,属于apache license">
44                <filteritem type="filepath" name="arm_mps2_an386/liteos_m/board/driver/arm_uart_drv.*" desc="apache license"/>
45                <filteritem type="filepath" name="arm_mps2_an386/liteos_m/board/driver/net/lan9118_eth_drv.*" desc="apache license"/>
46                <filteritem type="filepath" name="arm_mps2_an386/liteos_m/board/driver/LICENSE-apache-2.0.txt" desc="license file"/>
47            </filefilter>
48            <filefilter name="defaultFilter" desc="三方驱动文件,属于apache license">
49                <filteritem type="filepath" name="arm_mps3_an547/liteos_m/board/driver/arm_uart_drv.*" desc="apache license"/>
50                <filteritem type="filepath" name="arm_mps3_an547/liteos_m/board/driver/LICENSE-apache-2.0.txt" desc="license file"/>
51            </filefilter>
52            <filefilter name="defaultFilter" desc="Files not to check">
53                <filteritem type="filepath" name="arm_virt/linux/chipset/etc/fstab*.*" desc="fstab配置文件,不能加其他注释"/>
54                <filteritem type="filepath" name="arm_virt/linux/rootfs/*.cfg" desc="init配置文件,不能加其他注释"/>
55                <filteritem type="filepath" name="arm_virt/linux/rootfs/*.para" desc="默认系统参数文件,不添加注释"/>
56            </filefilter>
57            <filefilter name="defaultFilter" desc="Files not to check">
58                <filteritem type="filepath" name="x86_64_virt/linux/chipset/etc/fstab*.*" desc="fstab配置文件,不能加其他注释"/>
59                <filteritem type="filepath" name="x86_64_virt/linux/rootfs/*.cfg" desc="init配置文件,不能加其他注释"/>
60                <filteritem type="filepath" name="x86_64_virt/linux/rootfs/*.para" desc="默认系统参数文件,不添加注释"/>
61            </filefilter>
62            <filefilter name="defaultFilter" desc="Files not to check">
63                <!--filteritem type="filename" name="*.uvwxyz" desc="Describe the reason for filtering scan results"/-->
64                <!--filteritem type="filepath" name="abcdefg/.*.uvwxyz" desc="Describe the reason for filtering scan results"/-->
65                <!--filteritem type="filepath" name="projectroot/[a-zA-Z0-9]{20,}.sh" desc="Temp files"/-->
66            </filefilter>
67            <filefilter name="defaultPolicyFilter" desc="Filters for compatibility,license header policies">
68                <!--filteritem type="filename" name="*.uvwxyz" desc="Describe the reason for filtering scan results"/-->
69                <!--filteritem type="filepath" name="abcdefg/.*.uvwxyz" desc="Describe the reason for filtering scan results"/-->
70                <!--filteritem type="filepath" name="projectroot/[a-zA-Z0-9]{20,}.sh" desc="Temp files"/-->
71            </filefilter>
72            <filefilter name="copyrightPolicyFilter" desc="Filters for copyright header policies">
73                <!--filteritem type="filename" name="*.uvwxyz" desc="Describe the reason for filtering scan results"/-->
74                <!--filteritem type="filepath" name="abcdefg/.*.uvwxyz" desc="Describe the reason for filtering scan results"/-->
75                <!--filteritem type="filepath" name="projectroot/[a-zA-Z0-9]{20,}.sh" desc="Temp files"/-->
76            </filefilter>
77            <filefilter name="licenseFileNamePolicyFilter" desc="Filters for LICENSE file policies">
78                <!--filteritem type="filename" name="*.uvwxyz" desc="Describe the reason for filtering scan results"/-->
79                <!--filteritem type="filepath" name="abcdefg/.*.uvwxyz" desc="Describe the reason for filtering scan results"/-->
80                <!--filteritem type="filepath" name="projectroot/[a-zA-Z0-9]{20,}.sh" desc="Temp files"/-->
81            </filefilter>
82            <filefilter name="readmeFileNamePolicyFilter" desc="Filters for README file policies">
83                <!--filteritem type="filename" name="*.uvwxyz" desc="Describe the reason for filtering scan results"/-->
84                <!--filteritem type="filepath" name="abcdefg/.*.uvwxyz" desc="Describe the reason for filtering scan results"/-->
85                <!--filteritem type="filepath" name="projectroot/[a-zA-Z0-9]{20,}.sh" desc="Temp files"/-->
86            </filefilter>
87            <filefilter name="readmeOpenSourcefileNamePolicyFilter" desc="Filters for README.OpenSource file policies">
88                <!--filteritem type="filename" name="*.uvwxyz" desc="Describe the reason for filtering scan results"/-->
89                <!--filteritem type="filepath" name="abcdefg/.*.uvwxyz" desc="Describe the reason for filtering scan results"/-->
90                <!--filteritem type="filepath" name="projectroot/[a-zA-Z0-9]{20,}.sh" desc="Temp files"/-->
91            </filefilter>
92            <filefilter name="binaryFileTypePolicyFilter" desc="Filters for binary file policies">
93                <filteritem type="filepath" name="riscv32_virt/liteos_m/gen_fs/mklittlefs" desc="littlefs image making tools"/>
94                <!--filteritem type="filename" name="*.uvwxyz" desc="Describe the reason for filtering scan results"/-->
95                <!--filteritem type="filepath" name="abcdefg/.*.uvwxyz" desc="Describe the reason for filtering scan results"/-->
96                <!--filteritem type="filepath" name="projectroot/[a-zA-Z0-9]{20,}.sh" desc="Temp files"/-->
97            </filefilter>
98
99        </filefilterlist>
100        <licensematcherlist>
101            <!--licensematcher name="uvwxyz License" desc="If the scanning result is InvalidLicense, you can define matching rules here. Note that quotation marks must be escaped.">
102                <licensetext name="
103                    uvwxyz license textA xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
104                " desc=""/>
105                <licensetext name="
106                    uvwxyz license textB xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
107                " desc=""/>
108            </licensematcher-->
109        </licensematcherlist>
110    </oatconfig>
111</configuration>
112