blob: db0ec24c3237c2b4d75fefa18ea5a60c17aa7d2e (
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")
}
// FindActiveProfilePid is a stub for non-Linux platforms.
func FindActiveProfilePid(pm *paths.PathManager, profile string) (int, error) {
return 0, fmt.Errorf("namespaces are not supported on this platform")
}
|