diff options
Diffstat (limited to 'internal/namespace/namespace_stub.go')
| -rw-r--r-- | internal/namespace/namespace_stub.go | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/internal/namespace/namespace_stub.go b/internal/namespace/namespace_stub.go index 352ec13..84946bf 100644 --- a/internal/namespace/namespace_stub.go +++ b/internal/namespace/namespace_stub.go @@ -2,4 +2,22 @@ package namespace -// The namespace package provides stubs for non-Linux platforms. +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") +} |
