aboutsummaryrefslogtreecommitdiff
path: root/src/connection
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2021-11-09 17:49:20 -0700
committerSean Whitton <spwhitton@spwhitton.name>2021-11-09 17:51:51 -0700
commitc0034b28538b7acd34d36e8f8ad36066d40ea534 (patch)
tree3d5629340a29d9aaf73924c09f278362e21d371e /src/connection
parent8d9370c01a50e4f8198ed21c7eb5ed70c8529860 (diff)
downloadconsfigurator-c0034b28538b7acd34d36e8f8ad36066d40ea534.tar.gz
avoid trying to define +NAMESPACE-TYPES+ at all on non-Linux
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
Diffstat (limited to 'src/connection')
-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