From c0034b28538b7acd34d36e8f8ad36066d40ea534 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Tue, 9 Nov 2021 17:49:20 -0700 Subject: avoid trying to define +NAMESPACE-TYPES+ at all on non-Linux Signed-off-by: Sean Whitton --- src/connection/linux-namespace.lisp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/connection') diff --git a/src/connection/linux-namespace.lisp b/src/connection/linux-namespace.lisp index f5bbe19..d279b2d 100644 --- a/src/connection/linux-namespace.lisp +++ b/src/connection/linux-namespace.lisp @@ -234,6 +234,7 @@ setgroups(2) is denied in the namespace." (defclass setns-connection (linux-namespace-connection init-hooks-connection) ()) +#+linux (define-constant +namespace-types+ `(("user" . ,+CLONE_NEWUSER+) ("cgroup" . ,+CLONE_NEWCGROUP+) ("ipc" . ,+CLONE_NEWIPC+) @@ -247,7 +248,7 @@ setgroups(2) is denied in the namespace." (define-error-retval-cfun () "setns" :int (fd :int) (type :int)) -#+sbcl +#+(and linux sbcl) (defmethod post-fork ((connection setns-connection)) (with-slots (pid uid gid env) connection (let* (user opened-fds -- cgit v1.2.3