summaryrefslogtreecommitdiff
path: root/internal/namespace/namespace_stub.go
blob: 84946bfde365bb273f267ebc06535f9a3467a41f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
//go:build !linux

package namespace

import (
	"fmt"
	"git.theodohertyfamily.com/tools/wg-wrap/internal/paths"
)

// PinNamespace touches the namespace path to indicate it is pinned/active.
func PinNamespace(pm *paths.PathManager, profile string) error {
	return fmt.Errorf("namespaces are not supported on this platform")
}

// UnpinNamespace removes the pinned namespace file from the filesystem.
func UnpinNamespace(pm *paths.PathManager, profile string) error {
	return fmt.Errorf("namespaces are not supported on this platform")
}

// JoinExistingNamespace attempts to join the namespaces (user, mount, net) of an already active process.
func JoinExistingNamespace(pm *paths.PathManager, profile string) (bool, error) {
	return false, fmt.Errorf("namespaces are not supported on this platform")
}