File tree Expand file tree Collapse file tree 8 files changed +89
-23
lines changed
components/ws-daemon/pkg/libcontainer Expand file tree Collapse file tree 8 files changed +89
-23
lines changed Original file line number Diff line number Diff line change
1
+ # Why this package exists
2
+
3
+ The only reason this package exists is because libcontainer decided to privatize some functions we depend on: https://github.com/opencontainers/runc/commit/47e09976a3159a8e2bf6160e7e0aedcfeadb5cfe . Mostly - but not exclusively - for the fuse support.
4
+
5
+
6
+ When we upgraded, we had the option to a) drop support of the importing pieces, b) do a bigger rewrite or c) just internalize the code.
7
+
8
+ Source copied from: https://github.com/opencontainers/runc/blob/e0406b4ba62071d40f1eaa443945764e0ef56c41/libcontainer/cgroups/devices/devicefilter.go etc.
9
+
10
+
11
+ So if at some point we decide to get rid of the fuse support, it's worth checking what exactly we still need out of this.
Original file line number Diff line number Diff line change 1
- // Copyright (c) 2025 Gitpod GmbH. All rights reserved.
2
- // Licensed under the GNU Affero General Public License (AGPL).
3
- // See License.AGPL.txt in the project root for license information.
1
+ // Copyright The libcontainer authors
2
+
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
4
14
5
- // Copied from https://github.com/opencontainers/runc/blob/e0406b4ba62071d40f1eaa443945764e0ef56c41/libcontainer/cgroups/devices/devicefilter.go
6
- //
7
15
// Implements creation of eBPF device filter program.
8
16
//
9
17
// Based on https://github.com/containers/crun/blob/0.10.2/src/libcrun/ebpf.c
Original file line number Diff line number Diff line change 1
- // Copied from https://github.com/opencontainers/runc/blob/47e09976a3159a8e2bf6160e7e0aedcfeadb5cfe/libcontainer/cgroups/devices/devices_emulator.go
2
- //
3
1
// SPDX-License-Identifier: Apache-2.0
4
2
/*
5
3
* Copyright (C) 2020 Aleksa Sarai <[email protected] >
Original file line number Diff line number Diff line change 1
- // Copyright (c) 2025 Gitpod GmbH. All rights reserved.
2
- // Licensed under the GNU Affero General Public License (AGPL).
3
- // See License.AGPL.txt in the project root for license information.
1
+ // Copyright The libcontainer authors
2
+
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
4
14
5
- // Copied from https://github.com/opencontainers/runc/blob/c0044c7aa403ecf2d9172bd9386d05433b011076/libcontainer/cgroups/devices/ebpf_linux.go
6
15
package devicefilter
7
16
8
17
import (
Original file line number Diff line number Diff line change 1
- // Copyright (c) 2025 Gitpod GmbH. All rights reserved.
2
- // Licensed under the GNU Affero General Public License (AGPL).
3
- // See License.AGPL.txt in the project root for license information.
1
+ // Copyright The libcontainer authors
2
+
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
4
14
5
15
package devices
6
16
Original file line number Diff line number Diff line change 1
- // Copyright (c) 2025 Gitpod GmbH. All rights reserved.
2
- // Licensed under the GNU Affero General Public License (AGPL).
3
- // See License.AGPL.txt in the project root for license information.
1
+ // Copyright The libcontainer authors
2
+
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
4
14
5
15
//go:build !windows
6
16
Original file line number Diff line number Diff line change 1
- // Copyright (c) 2025 Gitpod GmbH. All rights reserved.
2
- // Licensed under the GNU Affero General Public License (AGPL).
3
- // See License.AGPL.txt in the project root for license information.
1
+ // Copyright The libcontainer authors
2
+
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
4
14
5
15
package specconv
6
16
Original file line number Diff line number Diff line change 1
- // Copyright (c) 2025 Gitpod GmbH. All rights reserved.
2
- // Licensed under the GNU Affero General Public License (AGPL).
3
- // See License.AGPL.txt in the project root for license information.
1
+ // Copyright The libcontainer authors
2
+
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
4
14
5
15
package specconv
6
16
You can’t perform that action at this time.
0 commit comments