diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2021-11-09 17:49:20 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2021-11-09 17:51:51 -0700 |
commit | c0034b28538b7acd34d36e8f8ad36066d40ea534 (patch) | |
tree | 3d5629340a29d9aaf73924c09f278362e21d371e | |
parent | 8d9370c01a50e4f8198ed21c7eb5ed70c8529860 (diff) | |
download | consfigurator-c0034b28538b7acd34d36e8f8ad36066d40ea534.tar.gz |
avoid trying to define +NAMESPACE-TYPES+ at all on non-Linux
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
-rw-r--r-- | src/connection/linux-namespace.lisp | 3 |
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 |