16cd6a6acSopenharmony_ci<?xml version="1.0" encoding="UTF-8"?> 26cd6a6acSopenharmony_ci<!-- Copyright (c) 2021 Huawei Device Co., Ltd. 36cd6a6acSopenharmony_ci 46cd6a6acSopenharmony_ci Licensed under the Apache License, Version 2.0 (the "License"); 56cd6a6acSopenharmony_ci you may not use this file except in compliance with the License. 66cd6a6acSopenharmony_ci You may obtain a copy of the License at 76cd6a6acSopenharmony_ci 86cd6a6acSopenharmony_ci http://www.apache.org/licenses/LICENSE-2.0 96cd6a6acSopenharmony_ci 106cd6a6acSopenharmony_ci Unless required by applicable law or agreed to in writing, software 116cd6a6acSopenharmony_ci distributed under the License is distributed on an "AS IS" BASIS, 126cd6a6acSopenharmony_ci WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 136cd6a6acSopenharmony_ci See the License for the specific language governing permissions and 146cd6a6acSopenharmony_ci limitations under the License. 156cd6a6acSopenharmony_ci 166cd6a6acSopenharmony_ci 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. 176cd6a6acSopenharmony_ci 186cd6a6acSopenharmony_ci--> 196cd6a6acSopenharmony_ci 206cd6a6acSopenharmony_ci<configuration> 216cd6a6acSopenharmony_ci <oatconfig> 226cd6a6acSopenharmony_ci <licensefile>libselinux/LICENSE</licensefile> 236cd6a6acSopenharmony_ci <policylist> 246cd6a6acSopenharmony_ci <policy name="projectPolicy" desc=""> 256cd6a6acSopenharmony_ci <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协议影响。"/> 266cd6a6acSopenharmony_ci <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协议影响。"/> 276cd6a6acSopenharmony_ci <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协议影响。"/> 286cd6a6acSopenharmony_ci <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协议影响。"/> 296cd6a6acSopenharmony_ci <policyitem type="compatibility" name="LGPLStyleLicense" path="libsepol/LICENSE" rule="may" group="defaultGroup" filefilter="defaultPolicyFilter" desc="协议为 Autoconf/Libtool exception to GPL 2.0 or later,满足该协议的约束,不受GPL协议影响。"/> 306cd6a6acSopenharmony_ci <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协议影响。"/> 316cd6a6acSopenharmony_ci <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协议影响。"/> 326cd6a6acSopenharmony_ci <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协议影响。"/> 336cd6a6acSopenharmony_ci <policyitem type="compatibility" name="GPLStyleLicense" path="checkpolicy/.*" rule="may" group="defaultGroup" filefilter="defaultPolicyFilter" desc="协议为 Autoconf/Libtool exception to GPL 2.0 or later,满足该协议的约束,不受GPL协议影响。"/> 346cd6a6acSopenharmony_ci <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协议影响。"/> 356cd6a6acSopenharmony_ci <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协议影响。"/> 366cd6a6acSopenharmony_ci <policyitem type="compatibility" name="HPND" path="BUILD.gn" desc="兼容license"/> 376cd6a6acSopenharmony_ci <policyitem type="compatibility" name="public domain license" path="libselinux/src/sha1.*" desc="兼容license"/> 386cd6a6acSopenharmony_ci <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."/> 396cd6a6acSopenharmony_ci <policyitem type="compatibility" name="GPL-2.0+" path="checkpolicy/LICENSE" desc="uboot是作为独立进程,不会导致boot外的软件受到GPL许可证的影响。"/> 406cd6a6acSopenharmony_ci <policyitem type="compatibility" name="libselinux-1.0" path="libselinux/LICENSE" desc="兼容license"/> 416cd6a6acSopenharmony_ci 426cd6a6acSopenharmony_ci <policyitem type="license" name="BSD-2-clause" path="secilc/.*.c" desc="兼容license"/> 436cd6a6acSopenharmony_ci <policyitem type="license" name="BSD-2-clause" path="secilc/COPYING" desc="兼容license"/> 446cd6a6acSopenharmony_ci </policy> 456cd6a6acSopenharmony_ci </policylist> 466cd6a6acSopenharmony_ci <filefilterlist> 476cd6a6acSopenharmony_ci <filefilter name="defaultFilter" desc="Files not to check"> 486cd6a6acSopenharmony_ci </filefilter> 496cd6a6acSopenharmony_ci <filefilter name="defaultPolicyFilter" desc="Filters for compatibility,license header policies"> 506cd6a6acSopenharmony_ci </filefilter> 516cd6a6acSopenharmony_ci <filefilter name="copyrightPolicyFilter" desc="Filters for copyright header policies"> 526cd6a6acSopenharmony_ci </filefilter> 536cd6a6acSopenharmony_ci <filefilter name="licenseFileNamePolicyFilter" desc="Filters for LICENSE file policies"> 546cd6a6acSopenharmony_ci </filefilter> 556cd6a6acSopenharmony_ci <filefilter name="readmeFileNamePolicyFilter" desc="Filters for README file policies"> 566cd6a6acSopenharmony_ci <filteritem type="filepath" name="README.md" desc="Describe the reason for filtering scan results"/> 576cd6a6acSopenharmony_ci </filefilter> 586cd6a6acSopenharmony_ci <filefilter name="readmeOpenSourcefileNamePolicyFilter" desc="Filters for README.OpenSource file policies"> 596cd6a6acSopenharmony_ci </filefilter> 606cd6a6acSopenharmony_ci <filefilter name="binaryFileTypePolicyFilter" desc="Filters for binary file policies"> 616cd6a6acSopenharmony_ci <filteritem type="filepath" name="libselinux/man/ru/.*" desc="the binary file in third party"/> 626cd6a6acSopenharmony_ci <filteritem type="filepath" name="secilc/docs/cil_design.dia" desc="the binary file in third party"/> 636cd6a6acSopenharmony_ci <filteritem type="filepath" name="secilc/docs/.*.jpeg" desc="the binary file in third party"/> 646cd6a6acSopenharmony_ci </filefilter> 656cd6a6acSopenharmony_ci 666cd6a6acSopenharmony_ci </filefilterlist> 676cd6a6acSopenharmony_ci <licensematcherlist> 686cd6a6acSopenharmony_ci <licensematcher name="HPND" desc="If the scanning result is InvalidLicense, you can define matching rules here. Note that quotation marks must be escaped."> 696cd6a6acSopenharmony_ci <licensetext name=" 706cd6a6acSopenharmony_ci # Copyright (c) 2021 北京万里红科技有限公司 716cd6a6acSopenharmony_ci # Copyright(c) Huawei Technologies Co.,Ltd. 726cd6a6acSopenharmony_ci # 2020-2021.All rights reserved. 736cd6a6acSopenharmony_ci # Copyright(c)2016,Google inc. 746cd6a6acSopenharmony_ci # 756cd6a6acSopenharmony_ci # Permission to use,copy,modify,and/or distribute this software for any 766cd6a6acSopenharmony_ci # purpose with or without fee is hereby granted,provided that the above 776cd6a6acSopenharmony_ci # copyright notice and this permission notice appear in all copies. 786cd6a6acSopenharmony_ci " desc=""/> 796cd6a6acSopenharmony_ci </licensematcher> 806cd6a6acSopenharmony_ci <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."> 816cd6a6acSopenharmony_ci <licensetext name=" 826cd6a6acSopenharmony_ci * Copyright 2011 Tresys Technology, LLC. All rights reserved. 836cd6a6acSopenharmony_ci * 846cd6a6acSopenharmony_ci * Redistribution and use in source and binary forms, with or without 856cd6a6acSopenharmony_ci * modification, are permitted provided that the following conditions are met: 866cd6a6acSopenharmony_ci * 876cd6a6acSopenharmony_ci * 1. Redistributions of source code must retain the above copyright notice, 886cd6a6acSopenharmony_ci * this list of conditions and the following disclaimer. 896cd6a6acSopenharmony_ci * 906cd6a6acSopenharmony_ci * 2. Redistributions in binary form must reproduce the above copyright notice, 916cd6a6acSopenharmony_ci * this list of conditions and the following disclaimer in the documentation 926cd6a6acSopenharmony_ci * and/or other materials provided with the distribution. 936cd6a6acSopenharmony_ci * 946cd6a6acSopenharmony_ci * THIS SOFTWARE IS PROVIDED BY TRESYS TECHNOLOGY, LLC ``AS IS'' AND ANY EXPRESS 956cd6a6acSopenharmony_ci * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 966cd6a6acSopenharmony_ci * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO 976cd6a6acSopenharmony_ci * EVENT SHALL TRESYS TECHNOLOGY, LLC OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 986cd6a6acSopenharmony_ci * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 996cd6a6acSopenharmony_ci * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 1006cd6a6acSopenharmony_ci * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 1016cd6a6acSopenharmony_ci * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE 1026cd6a6acSopenharmony_ci * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 1036cd6a6acSopenharmony_ci * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 1046cd6a6acSopenharmony_ci * 1056cd6a6acSopenharmony_ci * The views and conclusions contained in the software and documentation are those 1066cd6a6acSopenharmony_ci * of the authors and should not be interpreted as representing official policies, 1076cd6a6acSopenharmony_ci * either expressed or implied, of Tresys Technology, LLC. 1086cd6a6acSopenharmony_ci " desc=""/> 1096cd6a6acSopenharmony_ci <licensetext name=" 1106cd6a6acSopenharmony_ci * Copyright 2011 Tresys Technology, LLC. All rights reserved. 1116cd6a6acSopenharmony_ci * 1126cd6a6acSopenharmony_ci * Redistribution and use in source and binary forms, with or without 1136cd6a6acSopenharmony_ci * modification, are permitted provided that the following conditions are met: 1146cd6a6acSopenharmony_ci * 1156cd6a6acSopenharmony_ci * 1. Redistributions of source code must retain the above copyright notice, 1166cd6a6acSopenharmony_ci * this list of conditions and the following disclaimer. 1176cd6a6acSopenharmony_ci * 1186cd6a6acSopenharmony_ci * 2. Redistributions in binary form must reproduce the above copyright notice, 1196cd6a6acSopenharmony_ci * this list of conditions and the following disclaimer in the documentation 1206cd6a6acSopenharmony_ci * and/or other materials provided with the distribution. 1216cd6a6acSopenharmony_ci * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 1226cd6a6acSopenharmony_ci * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 1236cd6a6acSopenharmony_ci * 1246cd6a6acSopenharmony_ci * The views and conclusions contained in the software and documentation are those 1256cd6a6acSopenharmony_ci * of the authors and should not be interpreted as representing official policies, 1266cd6a6acSopenharmony_ci * either expressed or implied, of Tresys Technology, LLC. 1276cd6a6acSopenharmony_ci " desc=""/> 1286cd6a6acSopenharmony_ci <licensetext name=" 1296cd6a6acSopenharmony_ci * Copyright 2013 Tresys Technology, LLC. All rights reserved. 1306cd6a6acSopenharmony_ci * 1316cd6a6acSopenharmony_ci * Redistribution and use in source and binary forms, with or without 1326cd6a6acSopenharmony_ci * modification, are permitted provided that the following conditions are met: 1336cd6a6acSopenharmony_ci * 1346cd6a6acSopenharmony_ci * 1. Redistributions of source code must retain the above copyright notice, 1356cd6a6acSopenharmony_ci * this list of conditions and the following disclaimer. 1366cd6a6acSopenharmony_ci * 1376cd6a6acSopenharmony_ci * 2. Redistributions in binary form must reproduce the above copyright notice, 1386cd6a6acSopenharmony_ci * this list of conditions and the following disclaimer in the documentation 1396cd6a6acSopenharmony_ci * and/or other materials provided with the distribution. 1406cd6a6acSopenharmony_ci * 1416cd6a6acSopenharmony_ci * THIS SOFTWARE IS PROVIDED BY TRESYS TECHNOLOGY, LLC ``AS IS'' AND ANY EXPRESS 1426cd6a6acSopenharmony_ci * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 1436cd6a6acSopenharmony_ci * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO 1446cd6a6acSopenharmony_ci * EVENT SHALL TRESYS TECHNOLOGY, LLC OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 1456cd6a6acSopenharmony_ci * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 1466cd6a6acSopenharmony_ci * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 1476cd6a6acSopenharmony_ci * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 1486cd6a6acSopenharmony_ci * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE 1496cd6a6acSopenharmony_ci * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 1506cd6a6acSopenharmony_ci * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 1516cd6a6acSopenharmony_ci * 1526cd6a6acSopenharmony_ci * The views and conclusions contained in the software and documentation are those 1536cd6a6acSopenharmony_ci * of the authors and should not be interpreted as representing official policies, 1546cd6a6acSopenharmony_ci * either expressed or implied, of Tresys Technology, LLC. 1556cd6a6acSopenharmony_ci " desc=""/> 1566cd6a6acSopenharmony_ci <licensetext name=" 1576cd6a6acSopenharmony_ci * Copyright 2014 Tresys Technology, LLC. All rights reserved. 1586cd6a6acSopenharmony_ci * 1596cd6a6acSopenharmony_ci * Redistribution and use in source and binary forms, with or without 1606cd6a6acSopenharmony_ci * modification, are permitted provided that the following conditions are met: 1616cd6a6acSopenharmony_ci * 1626cd6a6acSopenharmony_ci * 1. Redistributions of source code must retain the above copyright notice, 1636cd6a6acSopenharmony_ci * this list of conditions and the following disclaimer. 1646cd6a6acSopenharmony_ci * 1656cd6a6acSopenharmony_ci * 2. Redistributions in binary form must reproduce the above copyright notice, 1666cd6a6acSopenharmony_ci * this list of conditions and the following disclaimer in the documentation 1676cd6a6acSopenharmony_ci * and/or other materials provided with the distribution. 1686cd6a6acSopenharmony_ci * 1696cd6a6acSopenharmony_ci * THIS SOFTWARE IS PROVIDED BY TRESYS TECHNOLOGY, LLC ``AS IS'' AND ANY EXPRESS 1706cd6a6acSopenharmony_ci * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 1716cd6a6acSopenharmony_ci * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO 1726cd6a6acSopenharmony_ci * EVENT SHALL TRESYS TECHNOLOGY, LLC OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 1736cd6a6acSopenharmony_ci * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 1746cd6a6acSopenharmony_ci * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 1756cd6a6acSopenharmony_ci * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 1766cd6a6acSopenharmony_ci * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE 1776cd6a6acSopenharmony_ci * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 1786cd6a6acSopenharmony_ci * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 1796cd6a6acSopenharmony_ci * 1806cd6a6acSopenharmony_ci * The views and conclusions contained in the software and documentation are those 1816cd6a6acSopenharmony_ci * of the authors and should not be interpreted as representing official policies, 1826cd6a6acSopenharmony_ci * either expressed or implied, of Tresys Technology, LLC. 1836cd6a6acSopenharmony_ci " desc=""/> 1846cd6a6acSopenharmony_ci </licensematcher> 1856cd6a6acSopenharmony_ci <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."> 1866cd6a6acSopenharmony_ci <licensetext name=" 1876cd6a6acSopenharmony_ci // LibSha1 1886cd6a6acSopenharmony_ci // 1896cd6a6acSopenharmony_ci // Implementation of SHA1 hash function. 1906cd6a6acSopenharmony_ci // Original author: Steve Reid <sreid@sea-to-sky.net> 1916cd6a6acSopenharmony_ci // Contributions by: James H. Brown <jbrown@burgoyne.com>, Saul Kravitz <Saul.Kravitz@celera.com>, 1926cd6a6acSopenharmony_ci // and Ralph Giles <giles@ghostscript.com> 1936cd6a6acSopenharmony_ci // Modified by WaterJuice retaining Public Domain license. 1946cd6a6acSopenharmony_ci // 1956cd6a6acSopenharmony_ci // This is free and unencumbered software released into the public domain - June 2013 waterjuice.org 1966cd6a6acSopenharmony_ci // Modified to: 1976cd6a6acSopenharmony_ci // - stop symbols being exported for libselinux shared library - October 2015 1986cd6a6acSopenharmony_ci // Richard Haines <richard_c_haines@btinternet.com> 1996cd6a6acSopenharmony_ci // - Not cast the workspace from a byte array to a CHAR64LONG16 due to alignment isses. 2006cd6a6acSopenharmony_ci // Fixes: 2016cd6a6acSopenharmony_ci // sha1.c:73:33: error: cast from 'uint8_t *' (aka 'unsigned char *') to 'CHAR64LONG16 *' increases required alignment from 1 to 4 [-Werror,-Wcast-align] 2026cd6a6acSopenharmony_ci // CHAR64LONG16* block = (CHAR64LONG16*) workspace; 2036cd6a6acSopenharmony_ci // William Roberts <william.c.roberts@intel.com> 2046cd6a6acSopenharmony_ci " desc=""/> 2056cd6a6acSopenharmony_ci <licensetext name=" 2066cd6a6acSopenharmony_ci // LibSha1 2076cd6a6acSopenharmony_ci // 2086cd6a6acSopenharmony_ci // Implementation of SHA1 hash function. 2096cd6a6acSopenharmony_ci // Original author: Steve Reid <sreid@sea-to-sky.net> 2106cd6a6acSopenharmony_ci // Contributions by: James H. Brown <jbrown@burgoyne.com>, Saul Kravitz <Saul.Kravitz@celera.com>, 2116cd6a6acSopenharmony_ci // and Ralph Giles <giles@ghostscript.com> 2126cd6a6acSopenharmony_ci // Modified by WaterJuice retaining Public Domain license. 2136cd6a6acSopenharmony_ci // 2146cd6a6acSopenharmony_ci // This is free and unencumbered software released into the public domain - June 2013 waterjuice.org 2156cd6a6acSopenharmony_ci " desc=""/> 2166cd6a6acSopenharmony_ci </licensematcher> 2176cd6a6acSopenharmony_ci </licensematcherlist> 2186cd6a6acSopenharmony_ci </oatconfig> 2196cd6a6acSopenharmony_ci</configuration> 220