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>COPYING</licensefile> 23 <policylist> 24 <policy name="projectPolicy" desc=""> 25 <policyitem type="compatibility" name="GPLStyleLicense" path="*.*" rule="may" group="defaultGroup" filefilter="defaultPolicyFilter" desc="独立进程,独立使用"/> 26 <policyitem type="compatibility" name="LGPL-2.0" path="*.*" rule="may" group="defaultGroup" filefilter="defaultPolicyFilter" desc="独立进程,独立使用"/> 27 <policyitem type="compatibility" name="GPL-2.0+" path="*.*" rule="may" group="defaultGroup" filefilter="defaultPolicyFilter" desc="独立进程,独立使用"/> 28 <policyitem type="compatibility" name="GPL-2.0-or-later" path=".*" rule="may" group="defaultGroup" filefilter="defaultPolicyFilter" desc="独立进程,独立使用"/> 29 </policy> 30 </policylist> 31 <filefilterlist> 32 <filefilter name="defaultFilter" desc="Files not to check"> 33 <filteritem type="filepath" name="ntfsprogs/boot.c" desc="三方开源,且本文件未被使用,不需检测文件头是否不兼容"/> 34 </filefilter> 35 <filefilter name="defaultPolicyFilter" desc="Filters for compatibility,license header policies"> 36 <filteritem type="filename" name="autogen.sh" desc="没有许可证"/> 37 <filteritem type="filename" name="ntfsprogs/boot.c" desc="没有许可证"/> 38 </filefilter> 39 <filefilter name="copyrightPolicyFilter" desc="Filters for copyright header policies"> 40 </filefilter> 41 <filefilter name="licenseFileNamePolicyFilter" desc="Filters for LICENSE file policies"> 42 </filefilter> 43 <filefilter name="readmeFileNamePolicyFilter" desc="Filters for README file policies"> 44 </filefilter> 45 <filefilter name="readmeOpenSourcefileNamePolicyFilter" desc="Filters for README.OpenSource file policies"> 46 </filefilter> 47 <filefilter name="binaryFileTypePolicyFilter" desc="Filters for binary file policies"> 48 <filteritem type="filename" name="COPYING.LIB" desc="LGPL-2.0许可证文件"/> 49 </filefilter> 50 </filefilterlist> 51 <licensematcherlist> 52 <licensematcher name="LGPL-2.0 License" desc="LGPL-2.0 License see the file COPYING.LIB."> 53 <licensetext name=" 54 /* 55 FUSE: Filesystem in Userspace 56 Copyright (C) 2001-2007 Miklos Szeredi <miklos@szeredi.hu> 57 58 This program can be distributed under the terms of the GNU LGPLv2. 59 See the file COPYING.LIB 60 */ 61 " desc=""/> 62 <licensetext name=" 63 /* 64 FUSE: Filesystem in Userspace 65 Copyright (C) 2001-2007 Miklos Szeredi <miklos@szeredi.hu> 66 67 This program can be distributed under the terms of the GNU GPL. 68 See the file COPYING. 69 */ 70 " desc=""/> 71 <licensetext name=" 72 /* 73 This file defines the kernel interface of FUSE 74 Copyright (C) 2001-2007 Miklos Szeredi <miklos@szeredi.hu> 75 76 This program can be distributed under the terms of the GNU GPL. 77 See the file COPYING. 78 79 This and only this header file may also be distributed under 80 the terms of the BSD Licence as follows: 81 82 Copyright (C) 2001-2007 Miklos Szeredi. 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 86 are met: 87 1. Redistributions of source code must retain the above copyright 88 notice, this list of conditions and the following disclaimer. 89 2. Redistributions in binary form must reproduce the above copyright 90 notice, this list of conditions and the following disclaimer in the 91 documentation and/or other materials provided with the distribution. 92 93 THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND 94 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 95 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 96 ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE 97 FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 98 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 99 OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 100 HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 101 LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 102 OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 103 SUCH DAMAGE. 104 * 105 * 7.12 106 * - add umask flag to input argument of open, mknod and mkdir 107 */ 108 " desc=""/> 109 </licensematcher> 110 </licensematcherlist> 111 </oatconfig> 112</configuration> 113