Debian Codegraph @

COPYING.md

raw
1 ## COPYING ##
2
3 `SPDX-License-Identifier: BSD-3-Clause AND MPL-2.0`
4
5 This project is made up of code licensed under different licenses. Which code
6 you use will have an impact on whether only one or both licenses apply to your
7 usage of this library.
8
9 Note that **each file** in this project individually has a code comment at the
10 start describing the license of that particular file -- this is the most
11 accurate license information of this project; in case there is any conflict
12 between this document and the comment at the start of a file, the comment shall
13 take precedence. The only purpose of this document is to work around [a known
14 technical limitation of pkg.go.dev's license checking tool when dealing with
15 non-trivial project licenses][go75067].
16
17 [go75067]: https://go.dev/issue/75067
18
19 ### `BSD-3-Clause` ###
20
21 At time of writing, the following files and directories are licensed under the
22 BSD-3-Clause license:
23
24 * `doc.go`
25 * `join*.go`
26 * `vfs.go`
27 * `internal/consts/*.go`
28 * `pathrs-lite/internal/gocompat/*.go`
29 * `pathrs-lite/internal/kernelversion/*.go`
30
31 The text of the BSD-3-Clause license used by this project is the following (the
32 text is also available from the [`LICENSE.BSD`](./LICENSE.BSD) file):
33
34 ```
35 Copyright (C) 2014-2015 Docker Inc & Go Authors. All rights reserved.
36 Copyright (C) 2017-2024 SUSE LLC. All rights reserved.
37
38 Redistribution and use in source and binary forms, with or without
39 modification, are permitted provided that the following conditions are
40 met:
41
42 * Redistributions of source code must retain the above copyright
43 notice, this list of conditions and the following disclaimer.
44 * Redistributions in binary form must reproduce the above
45 copyright notice, this list of conditions and the following disclaimer
46 in the documentation and/or other materials provided with the
47 distribution.
48 * Neither the name of Google Inc. nor the names of its
49 contributors may be used to endorse or promote products derived from
50 this software without specific prior written permission.
51
52 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
53 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
54 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
55 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
56 OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
57 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
58 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
59 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
60 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
61 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
62 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
63 ```
64
65 ### `MPL-2.0` ###
66
67 All other files (unless otherwise marked) are licensed under the Mozilla Public
68 License (version 2.0).
69
70 The text of the Mozilla Public License (version 2.0) is the following (the text
71 is also available from the [`LICENSE.MPL-2.0`](./LICENSE.MPL-2.0) file):
72
73 ```
74 Mozilla Public License Version 2.0
75 ==================================
76
77 1. Definitions
78 --------------
79
80 1.1. "Contributor"
81 means each individual or legal entity that creates, contributes to
82 the creation of, or owns Covered Software.
83
84 1.2. "Contributor Version"
85 means the combination of the Contributions of others (if any) used
86 by a Contributor and that particular Contributor's Contribution.
87
88 1.3. "Contribution"
89 means Covered Software of a particular Contributor.
90
91 1.4. "Covered Software"
92 means Source Code Form to which the initial Contributor has attached
93 the notice in Exhibit A, the Executable Form of such Source Code
94 Form, and Modifications of such Source Code Form, in each case
95 including portions thereof.
96
97 1.5. "Incompatible With Secondary Licenses"
98 means
99
100 (a) that the initial Contributor has attached the notice described
101 in Exhibit B to the Covered Software; or
102
103 (b) that the Covered Software was made available under the terms of
104 version 1.1 or earlier of the License, but not also under the
105 terms of a Secondary License.
106
107 1.6. "Executable Form"
108 means any form of the work other than Source Code Form.
109
110 1.7. "Larger Work"
111 means a work that combines Covered Software with other material, in
112 a separate file or files, that is not Covered Software.
113
114 1.8. "License"
115 means this document.
116
117 1.9. "Licensable"
118 means having the right to grant, to the maximum extent possible,
119 whether at the time of the initial grant or subsequently, any and
120 all of the rights conveyed by this License.
121
122 1.10. "Modifications"
123 means any of the following:
124
125 (a) any file in Source Code Form that results from an addition to,
126 deletion from, or modification of the contents of Covered
127 Software; or
128
129 (b) any new file in Source Code Form that contains any Covered
130 Software.
131
132 1.11. "Patent Claims" of a Contributor
133 means any patent claim(s), including without limitation, method,
134 process, and apparatus claims, in any patent Licensable by such
135 Contributor that would be infringed, but for the grant of the
136 License, by the making, using, selling, offering for sale, having
137 made, import, or transfer of either its Contributions or its
138 Contributor Version.
139
140 1.12. "Secondary License"
141 means either the GNU General Public License, Version 2.0, the GNU
142 Lesser General Public License, Version 2.1, the GNU Affero General
143 Public License, Version 3.0, or any later versions of those
144 licenses.
145
146 1.13. "Source Code Form"
147 means the form of the work preferred for making modifications.
148
149 1.14. "You" (or "Your")
150 means an individual or a legal entity exercising rights under this
151 License. For legal entities, "You" includes any entity that
152 controls, is controlled by, or is under common control with You. For
153 purposes of this definition, "control" means (a) the power, direct
154 or indirect, to cause the direction or management of such entity,
155 whether by contract or otherwise, or (b) ownership of more than
156 fifty percent (50%) of the outstanding shares or beneficial
157 ownership of such entity.
158
159 2. License Grants and Conditions
160 --------------------------------
161
162 2.1. Grants
163
164 Each Contributor hereby grants You a world-wide, royalty-free,
165 non-exclusive license:
166
167 (a) under intellectual property rights (other than patent or trademark)
168 Licensable by such Contributor to use, reproduce, make available,
169 modify, display, perform, distribute, and otherwise exploit its
170 Contributions, either on an unmodified basis, with Modifications, or
171 as part of a Larger Work; and
172
173 (b) under Patent Claims of such Contributor to make, use, sell, offer
174 for sale, have made, import, and otherwise transfer either its
175 Contributions or its Contributor Version.
176
177 2.2. Effective Date
178
179 The licenses granted in Section 2.1 with respect to any Contribution
180 become effective for each Contribution on the date the Contributor first
181 distributes such Contribution.
182
183 2.3. Limitations on Grant Scope
184
185 The licenses granted in this Section 2 are the only rights granted under
186 this License. No additional rights or licenses will be implied from the
187 distribution or licensing of Covered Software under this License.
188 Notwithstanding Section 2.1(b) above, no patent license is granted by a
189 Contributor:
190
191 (a) for any code that a Contributor has removed from Covered Software;
192 or
193
194 (b) for infringements caused by: (i) Your and any other third party's
195 modifications of Covered Software, or (ii) the combination of its
196 Contributions with other software (except as part of its Contributor
197 Version); or
198
199 (c) under Patent Claims infringed by Covered Software in the absence of
200 its Contributions.
201
202 This License does not grant any rights in the trademarks, service marks,
203 or logos of any Contributor (except as may be necessary to comply with
204 the notice requirements in Section 3.4).
205
206 2.4. Subsequent Licenses
207
208 No Contributor makes additional grants as a result of Your choice to
209 distribute the Covered Software under a subsequent version of this
210 License (see Section 10.2) or under the terms of a Secondary License (if
211 permitted under the terms of Section 3.3).
212
213 2.5. Representation
214
215 Each Contributor represents that the Contributor believes its
216 Contributions are its original creation(s) or it has sufficient rights
217 to grant the rights to its Contributions conveyed by this License.
218
219 2.6. Fair Use
220
221 This License is not intended to limit any rights You have under
222 applicable copyright doctrines of fair use, fair dealing, or other
223 equivalents.
224
225 2.7. Conditions
226
227 Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted
228 in Section 2.1.
229
230 3. Responsibilities
231 -------------------
232
233 3.1. Distribution of Source Form
234
235 All distribution of Covered Software in Source Code Form, including any
236 Modifications that You create or to which You contribute, must be under
237 the terms of this License. You must inform recipients that the Source
238 Code Form of the Covered Software is governed by the terms of this
239 License, and how they can obtain a copy of this License. You may not
240 attempt to alter or restrict the recipients' rights in the Source Code
241 Form.
242
243 3.2. Distribution of Executable Form
244
245 If You distribute Covered Software in Executable Form then:
246
247 (a) such Covered Software must also be made available in Source Code
248 Form, as described in Section 3.1, and You must inform recipients of
249 the Executable Form how they can obtain a copy of such Source Code
250 Form by reasonable means in a timely manner, at a charge no more
251 than the cost of distribution to the recipient; and
252
253 (b) You may distribute such Executable Form under the terms of this
254 License, or sublicense it under different terms, provided that the
255 license for the Executable Form does not attempt to limit or alter
256 the recipients' rights in the Source Code Form under this License.
257
258 3.3. Distribution of a Larger Work
259
260 You may create and distribute a Larger Work under terms of Your choice,
261 provided that You also comply with the requirements of this License for
262 the Covered Software. If the Larger Work is a combination of Covered
263 Software with a work governed by one or more Secondary Licenses, and the
264 Covered Software is not Incompatible With Secondary Licenses, this
265 License permits You to additionally distribute such Covered Software
266 under the terms of such Secondary License(s), so that the recipient of
267 the Larger Work may, at their option, further distribute the Covered
268 Software under the terms of either this License or such Secondary
269 License(s).
270
271 3.4. Notices
272
273 You may not remove or alter the substance of any license notices
274 (including copyright notices, patent notices, disclaimers of warranty,
275 or limitations of liability) contained within the Source Code Form of
276 the Covered Software, except that You may alter any license notices to
277 the extent required to remedy known factual inaccuracies.
278
279 3.5. Application of Additional Terms
280
281 You may choose to offer, and to charge a fee for, warranty, support,
282 indemnity or liability obligations to one or more recipients of Covered
283 Software. However, You may do so only on Your own behalf, and not on
284 behalf of any Contributor. You must make it absolutely clear that any
285 such warranty, support, indemnity, or liability obligation is offered by
286 You alone, and You hereby agree to indemnify every Contributor for any
287 liability incurred by such Contributor as a result of warranty, support,
288 indemnity or liability terms You offer. You may include additional
289 disclaimers of warranty and limitations of liability specific to any
290 jurisdiction.
291
292 4. Inability to Comply Due to Statute or Regulation
293 ---------------------------------------------------
294
295 If it is impossible for You to comply with any of the terms of this
296 License with respect to some or all of the Covered Software due to
297 statute, judicial order, or regulation then You must: (a) comply with
298 the terms of this License to the maximum extent possible; and (b)
299 describe the limitations and the code they affect. Such description must
300 be placed in a text file included with all distributions of the Covered
301 Software under this License. Except to the extent prohibited by statute
302 or regulation, such description must be sufficiently detailed for a
303 recipient of ordinary skill to be able to understand it.
304
305 5. Termination
306 --------------
307
308 5.1. The rights granted under this License will terminate automatically
309 if You fail to comply with any of its terms. However, if You become
310 compliant, then the rights granted under this License from a particular
311 Contributor are reinstated (a) provisionally, unless and until such
312 Contributor explicitly and finally terminates Your grants, and (b) on an
313 ongoing basis, if such Contributor fails to notify You of the
314 non-compliance by some reasonable means prior to 60 days after You have
315 come back into compliance. Moreover, Your grants from a particular
316 Contributor are reinstated on an ongoing basis if such Contributor
317 notifies You of the non-compliance by some reasonable means, this is the
318 first time You have received notice of non-compliance with this License
319 from such Contributor, and You become compliant prior to 30 days after
320 Your receipt of the notice.
321
322 5.2. If You initiate litigation against any entity by asserting a patent
323 infringement claim (excluding declaratory judgment actions,
324 counter-claims, and cross-claims) alleging that a Contributor Version
325 directly or indirectly infringes any patent, then the rights granted to
326 You by any and all Contributors for the Covered Software under Section
327 2.1 of this License shall terminate.
328
329 5.3. In the event of termination under Sections 5.1 or 5.2 above, all
330 end user license agreements (excluding distributors and resellers) which
331 have been validly granted by You or Your distributors under this License
332 prior to termination shall survive termination.
333
334 ************************************************************************
335 * *
336 * 6. Disclaimer of Warranty *
337 * ------------------------- *
338 * *
339 * Covered Software is provided under this License on an "as is" *
340 * basis, without warranty of any kind, either expressed, implied, or *
341 * statutory, including, without limitation, warranties that the *
342 * Covered Software is free of defects, merchantable, fit for a *
343 * particular purpose or non-infringing. The entire risk as to the *
344 * quality and performance of the Covered Software is with You. *
345 * Should any Covered Software prove defective in any respect, You *
346 * (not any Contributor) assume the cost of any necessary servicing, *
347 * repair, or correction. This disclaimer of warranty constitutes an *
348 * essential part of this License. No use of any Covered Software is *
349 * authorized under this License except under this disclaimer. *
350 * *
351 ************************************************************************
352
353 ************************************************************************
354 * *
355 * 7. Limitation of Liability *
356 * -------------------------- *
357 * *
358 * Under no circumstances and under no legal theory, whether tort *
359 * (including negligence), contract, or otherwise, shall any *
360 * Contributor, or anyone who distributes Covered Software as *
361 * permitted above, be liable to You for any direct, indirect, *
362 * special, incidental, or consequential damages of any character *
363 * including, without limitation, damages for lost profits, loss of *
364 * goodwill, work stoppage, computer failure or malfunction, or any *
365 * and all other commercial damages or losses, even if such party *
366 * shall have been informed of the possibility of such damages. This *
367 * limitation of liability shall not apply to liability for death or *
368 * personal injury resulting from such party's negligence to the *
369 * extent applicable law prohibits such limitation. Some *
370 * jurisdictions do not allow the exclusion or limitation of *
371 * incidental or consequential damages, so this exclusion and *
372 * limitation may not apply to You. *
373 * *
374 ************************************************************************
375
376 8. Litigation
377 -------------
378
379 Any litigation relating to this License may be brought only in the
380 courts of a jurisdiction where the defendant maintains its principal
381 place of business and such litigation shall be governed by laws of that
382 jurisdiction, without reference to its conflict-of-law provisions.
383 Nothing in this Section shall prevent a party's ability to bring
384 cross-claims or counter-claims.
385
386 9. Miscellaneous
387 ----------------
388
389 This License represents the complete agreement concerning the subject
390 matter hereof. If any provision of this License is held to be
391 unenforceable, such provision shall be reformed only to the extent
392 necessary to make it enforceable. Any law or regulation which provides
393 that the language of a contract shall be construed against the drafter
394 shall not be used to construe this License against a Contributor.
395
396 10. Versions of the License
397 ---------------------------
398
399 10.1. New Versions
400
401 Mozilla Foundation is the license steward. Except as provided in Section
402 10.3, no one other than the license steward has the right to modify or
403 publish new versions of this License. Each version will be given a
404 distinguishing version number.
405
406 10.2. Effect of New Versions
407
408 You may distribute the Covered Software under the terms of the version
409 of the License under which You originally received the Covered Software,
410 or under the terms of any subsequent version published by the license
411 steward.
412
413 10.3. Modified Versions
414
415 If you create software not governed by this License, and you want to
416 create a new license for such software, you may create and use a
417 modified version of this License if you rename the license and remove
418 any references to the name of the license steward (except to note that
419 such modified license differs from this License).
420
421 10.4. Distributing Source Code Form that is Incompatible With Secondary
422 Licenses
423
424 If You choose to distribute Source Code Form that is Incompatible With
425 Secondary Licenses under the terms of this version of the License, the
426 notice described in Exhibit B of this License must be attached.
427
428 Exhibit A - Source Code Form License Notice
429 -------------------------------------------
430
431 This Source Code Form is subject to the terms of the Mozilla Public
432 License, v. 2.0. If a copy of the MPL was not distributed with this
433 file, You can obtain one at https://mozilla.org/MPL/2.0/.
434
435 If it is not possible or desirable to put the notice in a particular
436 file, then You may include the notice in a location (such as a LICENSE
437 file in a relevant directory) where a recipient would be likely to look
438 for such a notice.
439
440 You may add additional accurate notices of copyright ownership.
441
442 Exhibit B - "Incompatible With Secondary Licenses" Notice
443 ---------------------------------------------------------
444
445 This Source Code Form is "Incompatible With Secondary Licenses", as
446 defined by the Mozilla Public License, v. 2.0.
447 ```