Skip to content

Commit 6fcfed1

Browse files
committed
merge #58 into cyphar/filepath-securejoin:main
Aleksa Sarai (2): *: add SPDX-License-Identifier lines *: relicense libpathrs ports to MPLv2 Votes: https://web.archive.org/web/*/https://github.com/cyphar/filepath-securejoin/pull/58 LGTMs: cyphar kolyshkin skitt
2 parents d2f3c38 + 13c0480 commit 6fcfed1

30 files changed

+540
-50
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
66

77
## [Unreleased] ##
88

9+
> **NOTE**: With this release, some parts of
10+
> `github.com/cyphar/filepath-securejoin` (notably the new APIs introduced
11+
> since the [0.3.0][] release) are now licensed under the Mozilla Public
12+
> License (version 2).
13+
914
### Added ###
1015
- Some minimal parts of the safe `procfs` API have now been exposed. At the
1116
moment these include:
File renamed without changes.

LICENSE.MPL-2.0

Lines changed: 373 additions & 0 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,5 +165,18 @@ after `MkdirAll`).
165165

166166
### License ###
167167

168-
The license of this project is the same as Go, which is a BSD 3-clause license
169-
available in the `LICENSE` file.
168+
Some of the code in this project is derived from Go, and is licensed under a
169+
BSD 3-clause license (available in `LICENSE.BSD`). At time of writing, these
170+
are:
171+
172+
* `gocompat_*.go` (backports to provide compatibility with older Go versions)
173+
* `join*.go` (port of Docker's symlink expansion, originally based on the
174+
stdlib `filepath.EvalSymlinks`)
175+
176+
The rest of the files (many of which are derived from [libpathrs][libpathrs])
177+
are licensed under the Mozilla Public License version 2.0 (available in
178+
`LICENSE.MPL-2.0`).
179+
180+
Every source file in this project has a copyright header describing its
181+
license. Please check the license headers of each file to see what license
182+
applies to it.

doc.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: BSD-3-Clause
2+
13
// Copyright (C) 2014-2015 Docker Inc & Go Authors. All rights reserved.
24
// Copyright (C) 2017-2024 SUSE LLC. All rights reserved.
35
// Use of this source code is governed by a BSD-style

gocompat_errors_go120.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// SPDX-License-Identifier: BSD-3-Clause
12
//go:build linux && go1.20
23

34
// Copyright (C) 2024 SUSE LLC. All rights reserved.

gocompat_errors_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: BSD-3-Clause
2+
13
//go:build linux
24

35
// Copyright (C) 2024 SUSE LLC. All rights reserved.

gocompat_errors_unsupported.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: BSD-3-Clause
2+
13
//go:build linux && !go1.20
24

35
// Copyright (C) 2024 SUSE LLC. All rights reserved.

gocompat_generics_go121.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: BSD-3-Clause
2+
13
//go:build linux && go1.21
24

35
// Copyright (C) 2024 SUSE LLC. All rights reserved.

gocompat_generics_unsupported.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: BSD-3-Clause
2+
13
//go:build linux && !go1.21
24

35
// Copyright (C) 2024 SUSE LLC. All rights reserved.

0 commit comments

Comments
 (0)