• 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>libselinux/LICENSE</licensefile>
23        <policylist>
24            <policy name="projectPolicy" desc="">
25                <policyitem type="compatibility" name="LGPLStyleLicense" path="libsepol/tests/.*" rule="may" group="defaultGroup" filefilter="defaultPolicyFilter" desc="协议为 Autoconf/Libtool exception to GPL 2.0 or later,满足该协议的约束,不受GPL协议影响。"/>
26                <policyitem type="compatibility" name="LGPLStyleLicense" path="libsepol/include/.*.h" rule="may" group="defaultGroup" filefilter="defaultPolicyFilter" desc="协议为 Autoconf/Libtool exception to GPL 2.0 or later,满足该协议的约束,不受GPL协议影响。"/>
27                <policyitem type="compatibility" name="LGPLStyleLicense" path="libsepol/src/.*.c" rule="may" group="defaultGroup" filefilter="defaultPolicyFilter" desc="协议为 Autoconf/Libtool exception to GPL 2.0 or later,满足该协议的约束,不受GPL协议影响。"/>
28                <policyitem type="compatibility" name="LGPLStyleLicense" path="libsepol/src/.*.h" rule="may" group="defaultGroup" filefilter="defaultPolicyFilter" desc="协议为 Autoconf/Libtool exception to GPL 2.0 or later,满足该协议的约束,不受GPL协议影响。"/>
29                <policyitem type="compatibility" name="LGPLStyleLicense" path="libsepol/COPYING" rule="may" group="defaultGroup" filefilter="defaultPolicyFilter" desc="协议为 Autoconf/Libtool exception to GPL 2.0 or later,满足该协议的约束,不受GPL协议影响。"/>
30                <policyitem type="compatibility" name="LGPLStyleLicense" path="checkpolicy/parse_util.*" rule="may" group="defaultGroup" filefilter="defaultPolicyFilter" desc="协议为 Autoconf/Libtool exception to GPL 2.0 or later,满足该协议的约束,不受GPL协议影响。"/>
31                <policyitem type="compatibility" name="LGPLStyleLicense" path="libsepol/src/debug.h" rule="may" group="defaultGroup" filefilter="defaultPolicyFilter" desc="协议为 Autoconf/Libtool exception to GPL 2.0 or later,满足该协议的约束,不受GPL协议影响。"/>
32                <policyitem type="compatibility" name="LGPLStyleLicense" path="libsepol/src/sha1.c" rule="may" group="defaultGroup" filefilter="defaultPolicyFilter" desc="协议为 Autoconf/Libtool exception to GPL 2.0 or later,满足该协议的约束,不受GPL协议影响。"/>
33                <policyitem type="compatibility" name="GPLStyleLicense" path="checkpolicy/.*" rule="may" group="defaultGroup" filefilter="defaultPolicyFilter" desc="协议为 Autoconf/Libtool exception to GPL 2.0 or later,满足该协议的约束,不受GPL协议影响。"/>
34                <policyitem type="compatibility" name="GPLStyleLicense" path="libsepol/man/*/.*.8" rule="may" group="defaultGroup" filefilter="defaultPolicyFilter" desc="协议为 Autoconf/Libtool exception to GPL 2.0 or later,满足该协议的约束,不受GPL协议影响。"/>
35                <policyitem type="compatibility" name="GPLStyleLicense" path="libselinux/utils/avcstat.c" rule="may" group="defaultGroup" filefilter="defaultPolicyFilter" desc="协议为 Autoconf/Libtool exception to GPL 2.0 or later,满足该协议的约束,不受GPL协议影响。"/>
36                <policyitem type="compatibility" name="HPND" path="BUILD.gn" desc="兼容license"/>
37                <policyitem type="compatibility" name="public domain license" path="libselinux/src/sha1.*" desc="兼容license"/>
38                <policyitem type="compatibility" name="zlib-acknowledgement" path="libsepol/cil/test/unit/CuTest.*" desc="The original file of the third-party software. The license is compatible with Apache 2.0."/>
39                <policyitem type="compatibility" name="GPL-2.0+" path="checkpolicy/COPYING" desc="uboot是作为独立进程,不会导致boot外的软件受到GPL许可证的影响。"/>
40                <policyitem type="compatibility" name="libselinux-1.0" path="libselinux/LICENSE" desc="兼容license"/>
41
42                <policyitem type="license" name="BSD-2-clause" path="secilc/.*.c" desc="兼容license"/>
43                <policyitem type="license" name="BSD-2-clause" path="secilc/COPYING" desc="兼容license"/>
44            </policy>
45        </policylist>
46        <filefilterlist>
47            <filefilter name="defaultFilter" desc="Files not to check">
48            </filefilter>
49            <filefilter name="defaultPolicyFilter" desc="Filters for compatibility,license header policies">
50            </filefilter>
51            <filefilter name="copyrightPolicyFilter" desc="Filters for copyright header policies">
52            </filefilter>
53            <filefilter name="licenseFileNamePolicyFilter" desc="Filters for LICENSE file policies">
54            </filefilter>
55            <filefilter name="readmeFileNamePolicyFilter" desc="Filters for README file policies">
56                <filteritem type="filepath" name="README.md" desc="Describe the reason for filtering scan results"/>
57            </filefilter>
58            <filefilter name="readmeOpenSourcefileNamePolicyFilter" desc="Filters for README.OpenSource file policies">
59            </filefilter>
60            <filefilter name="binaryFileTypePolicyFilter" desc="Filters for binary file policies">
61                <filteritem type="filepath" name="libselinux/man/ru/.*" desc="the binary file in third party"/>
62                <filteritem type="filepath" name="secilc/docs/cil_design.dia" desc="the binary file in third party"/>
63                <filteritem type="filepath" name="secilc/docs/.*.jpeg" desc="the binary file in third party"/>
64            </filefilter>
65
66        </filefilterlist>
67        <licensematcherlist>
68                <licensematcher name="HPND" desc="If the scanning result is InvalidLicense, you can define matching rules here. Note that quotation marks must be escaped.">
69                <licensetext name="
70                    # Copyright (c) 2021 北京万里红科技有限公司
71                    # Copyright(c) Huawei Technologies Co.,Ltd.
72                    # 2020-2021.All rights reserved.
73                    # Copyright(c)2016,Google inc.
74                    #
75                    # Permission to use,copy,modify,and/or distribute this software for any
76                    # purpose with or without fee is hereby granted,provided that the above
77                    # copyright notice and this permission notice appear in all copies.
78                " desc=""/>
79            </licensematcher>
80            <licensematcher name="BSD-2-clause" desc="If the scanning result is InvalidLicense, you can define matching rules here. Note that quotation marks must be escaped.">
81                <licensetext name="
82                    * Copyright 2011 Tresys Technology, LLC. All rights reserved.
83                    *
84                    * Redistribution and use in source and binary forms, with or without
85                    * modification, are permitted provided that the following conditions are met:
86                    *
87                    *    1. Redistributions of source code must retain the above copyright notice,
88                    *       this list of conditions and the following disclaimer.
89                    *
90                    *    2. Redistributions in binary form must reproduce the above copyright notice,
91                    *       this list of conditions and the following disclaimer in the documentation
92                    *       and/or other materials provided with the distribution.
93                    *
94                    * THIS SOFTWARE IS PROVIDED BY TRESYS TECHNOLOGY, LLC ``AS IS'' AND ANY EXPRESS
95                    * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
96                    * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
97                    * EVENT SHALL TRESYS TECHNOLOGY, LLC OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
98                    * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
99                    * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
100                    * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
101                    * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
102                    * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
103                    * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
104                    *
105                    * The views and conclusions contained in the software and documentation are those
106                    * of the authors and should not be interpreted as representing official policies,
107                    * either expressed or implied, of Tresys Technology, LLC.
108                " desc=""/>
109                <licensetext name="
110                    * Copyright 2011 Tresys Technology, LLC. All rights reserved.
111                    *
112                    * Redistribution and use in source and binary forms, with or without
113                    * modification, are permitted provided that the following conditions are met:
114                    *
115                    *    1. Redistributions of source code must retain the above copyright notice,
116                    *       this list of conditions and the following disclaimer.
117                    *
118                    *    2. Redistributions in binary form must reproduce the above copyright notice,
119                    *       this list of conditions and the following disclaimer in the documentation
120                    *       and/or other materials provided with the distribution.
121                    * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
122                    * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
123                    *
124                    * The views and conclusions contained in the software and documentation are those
125                    * of the authors and should not be interpreted as representing official policies,
126                    * either expressed or implied, of Tresys Technology, LLC.
127                " desc=""/>
128                <licensetext name="
129                    * Copyright 2013 Tresys Technology, LLC. All rights reserved.
130                    *
131                    * Redistribution and use in source and binary forms, with or without
132                    * modification, are permitted provided that the following conditions are met:
133                    *
134                    *    1. Redistributions of source code must retain the above copyright notice,
135                    *       this list of conditions and the following disclaimer.
136                    *
137                    *    2. Redistributions in binary form must reproduce the above copyright notice,
138                    *       this list of conditions and the following disclaimer in the documentation
139                    *       and/or other materials provided with the distribution.
140                    *
141                    * THIS SOFTWARE IS PROVIDED BY TRESYS TECHNOLOGY, LLC ``AS IS'' AND ANY EXPRESS
142                    * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
143                    * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
144                    * EVENT SHALL TRESYS TECHNOLOGY, LLC OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
145                    * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
146                    * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
147                    * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
148                    * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
149                    * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
150                    * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
151                    *
152                    * The views and conclusions contained in the software and documentation are those
153                    * of the authors and should not be interpreted as representing official policies,
154                    * either expressed or implied, of Tresys Technology, LLC.
155                " desc=""/>
156                <licensetext name="
157                    * Copyright 2014 Tresys Technology, LLC. All rights reserved.
158                    *
159                    * Redistribution and use in source and binary forms, with or without
160                    * modification, are permitted provided that the following conditions are met:
161                    *
162                    *    1. Redistributions of source code must retain the above copyright notice,
163                    *       this list of conditions and the following disclaimer.
164                    *
165                    *    2. Redistributions in binary form must reproduce the above copyright notice,
166                    *       this list of conditions and the following disclaimer in the documentation
167                    *       and/or other materials provided with the distribution.
168                    *
169                    * THIS SOFTWARE IS PROVIDED BY TRESYS TECHNOLOGY, LLC ``AS IS'' AND ANY EXPRESS
170                    * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
171                    * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
172                    * EVENT SHALL TRESYS TECHNOLOGY, LLC OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
173                    * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
174                    * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
175                    * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
176                    * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
177                    * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
178                    * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
179                    *
180                    * The views and conclusions contained in the software and documentation are those
181                    * of the authors and should not be interpreted as representing official policies,
182                    * either expressed or implied, of Tresys Technology, LLC.
183                " desc=""/>
184            </licensematcher>
185            <licensematcher name="public domain license" desc="If the scanning result is InvalidLicense, you can define matching rules here. Note that quotation marks must be escaped.">
186                <licensetext name="
187                    //  LibSha1
188                    //
189                    //  Implementation of SHA1 hash function.
190                    //  Original author:  Steve Reid &lt;sreid@sea-to-sky.net&gt;
191                    //  Contributions by: James H. Brown &lt;jbrown@burgoyne.com&gt;, Saul Kravitz &lt;Saul.Kravitz@celera.com&gt;,
192                    //  and Ralph Giles &lt;giles@ghostscript.com&gt;
193                    //  Modified by WaterJuice retaining Public Domain license.
194                    //
195                    //  This is free and unencumbered software released into the public domain - June 2013 waterjuice.org
196                    //  Modified to:
197                    //    - stop symbols being exported for libselinux shared library - October 2015
198                    //                             Richard Haines &lt;richard_c_haines@btinternet.com&gt;
199                    //    - Not cast the workspace from a byte array to a CHAR64LONG16 due to alignment isses.
200                    //      Fixes:
201                    //        sha1.c:73:33: error: cast from 'uint8_t *' (aka 'unsigned char *') to 'CHAR64LONG16 *' increases required alignment from 1 to 4 [-Werror,-Wcast-align]
202                    //             CHAR64LONG16*       block = (CHAR64LONG16*) workspace;
203                    //                                                                     William Roberts &lt;william.c.roberts@intel.com&gt;
204                " desc=""/>
205                <licensetext name="
206                    //  LibSha1
207                    //
208                    //  Implementation of SHA1 hash function.
209                    //  Original author:  Steve Reid &lt;sreid@sea-to-sky.net&gt;
210                    //  Contributions by: James H. Brown &lt;jbrown@burgoyne.com&gt;, Saul Kravitz &lt;Saul.Kravitz@celera.com&gt;,
211                    //  and Ralph Giles &lt;giles@ghostscript.com&gt;
212                    //  Modified by WaterJuice retaining Public Domain license.
213                    //
214                    //  This is free and unencumbered software released into the public domain - June 2013 waterjuice.org
215                " desc=""/>
216            </licensematcher>
217        </licensematcherlist>
218    </oatconfig>
219</configuration>
220