aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/connection/linux-namespace.lisp3
1 files changed, 2 insertions, 1 deletions
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