1## COPYING ##
  2
  3`SPDX-License-Identifier: BSD-3-Clause AND MPL-2.0`
  4
  5This project is made up of code licensed under different licenses. Which code
  6you use will have an impact on whether only one or both licenses apply to your
  7usage of this library.
  8
  9Note that **each file** in this project individually has a code comment at the
 10start describing the license of that particular file -- this is the most
 11accurate license information of this project; in case there is any conflict
 12between this document and the comment at the start of a file, the comment shall
 13take precedence. The only purpose of this document is to work around [a known
 14technical limitation of pkg.go.dev's license checking tool when dealing with
 15non-trivial project licenses][go75067].
 16
 17[go75067]: https://go.dev/issue/75067
 18
 19### `BSD-3-Clause` ###
 20
 21At time of writing, the following files and directories are licensed under the
 22BSD-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
 31The text of the BSD-3-Clause license used by this project is the following (the
 32text is also available from the [`LICENSE.BSD`](./LICENSE.BSD) file):
 33
 34```
 35Copyright (C) 2014-2015 Docker Inc & Go Authors. All rights reserved.
 36Copyright (C) 2017-2024 SUSE LLC. All rights reserved.
 37
 38Redistribution and use in source and binary forms, with or without
 39modification, are permitted provided that the following conditions are
 40met:
 41
 42   * Redistributions of source code must retain the above copyright
 43notice, this list of conditions and the following disclaimer.
 44   * Redistributions in binary form must reproduce the above
 45copyright notice, this list of conditions and the following disclaimer
 46in the documentation and/or other materials provided with the
 47distribution.
 48   * Neither the name of Google Inc. nor the names of its
 49contributors may be used to endorse or promote products derived from
 50this software without specific prior written permission.
 51
 52THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
 53"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
 54LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
 55A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
 56OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
 57SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
 58LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
 59DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
 60THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 61(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 62OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 63```
 64
 65### `MPL-2.0` ###
 66
 67All other files (unless otherwise marked) are licensed under the Mozilla Public
 68License (version 2.0).
 69
 70The text of the Mozilla Public License (version 2.0) is the following (the text
 71is also available from the [`LICENSE.MPL-2.0`](./LICENSE.MPL-2.0) file):
 72
 73```
 74Mozilla Public License Version 2.0
 75==================================
 76
 771. Definitions
 78--------------
 79
 801.1. "Contributor"
 81    means each individual or legal entity that creates, contributes to
 82    the creation of, or owns Covered Software.
 83
 841.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
 881.3. "Contribution"
 89    means Covered Software of a particular Contributor.
 90
 911.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
 971.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
1071.6. "Executable Form"
108    means any form of the work other than Source Code Form.
109
1101.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
1141.8. "License"
115    means this document.
116
1171.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
1221.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
1321.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
1401.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
1461.13. "Source Code Form"
147    means the form of the work preferred for making modifications.
148
1491.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
1592. License Grants and Conditions
160--------------------------------
161
1622.1. Grants
163
164Each Contributor hereby grants You a world-wide, royalty-free,
165non-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
1772.2. Effective Date
178
179The licenses granted in Section 2.1 with respect to any Contribution
180become effective for each Contribution on the date the Contributor first
181distributes such Contribution.
182
1832.3. Limitations on Grant Scope
184
185The licenses granted in this Section 2 are the only rights granted under
186this License. No additional rights or licenses will be implied from the
187distribution or licensing of Covered Software under this License.
188Notwithstanding Section 2.1(b) above, no patent license is granted by a
189Contributor:
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
202This License does not grant any rights in the trademarks, service marks,
203or logos of any Contributor (except as may be necessary to comply with
204the notice requirements in Section 3.4).
205
2062.4. Subsequent Licenses
207
208No Contributor makes additional grants as a result of Your choice to
209distribute the Covered Software under a subsequent version of this
210License (see Section 10.2) or under the terms of a Secondary License (if
211permitted under the terms of Section 3.3).
212
2132.5. Representation
214
215Each Contributor represents that the Contributor believes its
216Contributions are its original creation(s) or it has sufficient rights
217to grant the rights to its Contributions conveyed by this License.
218
2192.6. Fair Use
220
221This License is not intended to limit any rights You have under
222applicable copyright doctrines of fair use, fair dealing, or other
223equivalents.
224
2252.7. Conditions
226
227Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted
228in Section 2.1.
229
2303. Responsibilities
231-------------------
232
2333.1. Distribution of Source Form
234
235All distribution of Covered Software in Source Code Form, including any
236Modifications that You create or to which You contribute, must be under
237the terms of this License. You must inform recipients that the Source
238Code Form of the Covered Software is governed by the terms of this
239License, and how they can obtain a copy of this License. You may not
240attempt to alter or restrict the recipients' rights in the Source Code
241Form.
242
2433.2. Distribution of Executable Form
244
245If 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
2583.3. Distribution of a Larger Work
259
260You may create and distribute a Larger Work under terms of Your choice,
261provided that You also comply with the requirements of this License for
262the Covered Software. If the Larger Work is a combination of Covered
263Software with a work governed by one or more Secondary Licenses, and the
264Covered Software is not Incompatible With Secondary Licenses, this
265License permits You to additionally distribute such Covered Software
266under the terms of such Secondary License(s), so that the recipient of
267the Larger Work may, at their option, further distribute the Covered
268Software under the terms of either this License or such Secondary
269License(s).
270
2713.4. Notices
272
273You may not remove or alter the substance of any license notices
274(including copyright notices, patent notices, disclaimers of warranty,
275or limitations of liability) contained within the Source Code Form of
276the Covered Software, except that You may alter any license notices to
277the extent required to remedy known factual inaccuracies.
278
2793.5. Application of Additional Terms
280
281You may choose to offer, and to charge a fee for, warranty, support,
282indemnity or liability obligations to one or more recipients of Covered
283Software. However, You may do so only on Your own behalf, and not on
284behalf of any Contributor. You must make it absolutely clear that any
285such warranty, support, indemnity, or liability obligation is offered by
286You alone, and You hereby agree to indemnify every Contributor for any
287liability incurred by such Contributor as a result of warranty, support,
288indemnity or liability terms You offer. You may include additional
289disclaimers of warranty and limitations of liability specific to any
290jurisdiction.
291
2924. Inability to Comply Due to Statute or Regulation
293---------------------------------------------------
294
295If it is impossible for You to comply with any of the terms of this
296License with respect to some or all of the Covered Software due to
297statute, judicial order, or regulation then You must: (a) comply with
298the terms of this License to the maximum extent possible; and (b)
299describe the limitations and the code they affect. Such description must
300be placed in a text file included with all distributions of the Covered
301Software under this License. Except to the extent prohibited by statute
302or regulation, such description must be sufficiently detailed for a
303recipient of ordinary skill to be able to understand it.
304
3055. Termination
306--------------
307
3085.1. The rights granted under this License will terminate automatically
309if You fail to comply with any of its terms. However, if You become
310compliant, then the rights granted under this License from a particular
311Contributor are reinstated (a) provisionally, unless and until such
312Contributor explicitly and finally terminates Your grants, and (b) on an
313ongoing basis, if such Contributor fails to notify You of the
314non-compliance by some reasonable means prior to 60 days after You have
315come back into compliance. Moreover, Your grants from a particular
316Contributor are reinstated on an ongoing basis if such Contributor
317notifies You of the non-compliance by some reasonable means, this is the
318first time You have received notice of non-compliance with this License
319from such Contributor, and You become compliant prior to 30 days after
320Your receipt of the notice.
321
3225.2. If You initiate litigation against any entity by asserting a patent
323infringement claim (excluding declaratory judgment actions,
324counter-claims, and cross-claims) alleging that a Contributor Version
325directly or indirectly infringes any patent, then the rights granted to
326You by any and all Contributors for the Covered Software under Section
3272.1 of this License shall terminate.
328
3295.3. In the event of termination under Sections 5.1 or 5.2 above, all
330end user license agreements (excluding distributors and resellers) which
331have been validly granted by You or Your distributors under this License
332prior 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
3768. Litigation
377-------------
378
379Any litigation relating to this License may be brought only in the
380courts of a jurisdiction where the defendant maintains its principal
381place of business and such litigation shall be governed by laws of that
382jurisdiction, without reference to its conflict-of-law provisions.
383Nothing in this Section shall prevent a party's ability to bring
384cross-claims or counter-claims.
385
3869. Miscellaneous
387----------------
388
389This License represents the complete agreement concerning the subject
390matter hereof. If any provision of this License is held to be
391unenforceable, such provision shall be reformed only to the extent
392necessary to make it enforceable. Any law or regulation which provides
393that the language of a contract shall be construed against the drafter
394shall not be used to construe this License against a Contributor.
395
39610. Versions of the License
397---------------------------
398
39910.1. New Versions
400
401Mozilla Foundation is the license steward. Except as provided in Section
40210.3, no one other than the license steward has the right to modify or
403publish new versions of this License. Each version will be given a
404distinguishing version number.
405
40610.2. Effect of New Versions
407
408You may distribute the Covered Software under the terms of the version
409of the License under which You originally received the Covered Software,
410or under the terms of any subsequent version published by the license
411steward.
412
41310.3. Modified Versions
414
415If you create software not governed by this License, and you want to
416create a new license for such software, you may create and use a
417modified version of this License if you rename the license and remove
418any references to the name of the license steward (except to note that
419such modified license differs from this License).
420
42110.4. Distributing Source Code Form that is Incompatible With Secondary
422Licenses
423
424If You choose to distribute Source Code Form that is Incompatible With
425Secondary Licenses under the terms of this version of the License, the
426notice described in Exhibit B of this License must be attached.
427
428Exhibit 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
435If it is not possible or desirable to put the notice in a particular
436file, then You may include the notice in a location (such as a LICENSE
437file in a relevant directory) where a recipient would be likely to look
438for such a notice.
439
440You may add additional accurate notices of copyright ownership.
441
442Exhibit 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```