aboutsummaryrefslogtreecommitdiff
path: root/src/libc.lisp
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2021-09-28 12:50:27 -0700
committerSean Whitton <spwhitton@spwhitton.name>2021-10-23 11:18:07 -0700
commit6c1e44b950e64588c403510a9f20048f2d69d240 (patch)
tree22e1fa0874efaa3c0a6556b6e4cb04261502e269 /src/libc.lisp
parent0d186cbbc8088e505f3d77e18fe8b17b22cfcfb5 (diff)
downloadconsfigurator-6c1e44b950e64588c403510a9f20048f2d69d240.tar.gz
:CHROOT.FORK: unshare mount namespace before making temporary mounts
This avoids some cases of interference between the deployment of the chroot and other system activity. For example, before this change, the :ALWAYS-DEPLOYS option to LIBVIRT:KVM-BOOTS-CHROOT{,-FOR} could interact with Virtiofs in such a way as to break the running VM. Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
Diffstat (limited to 'src/libc.lisp')
-rw-r--r--src/libc.lisp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/libc.lisp b/src/libc.lisp
new file mode 100644
index 0000000..d2a3f90
--- /dev/null
+++ b/src/libc.lisp
@@ -0,0 +1,10 @@
+(in-package :consfigurator)
+
+#+linux
+(progn
+ (define "_GNU_SOURCE")
+ (include "linux/sched.h"))
+
+#+linux
+(progn
+ (constant (+CLONE_NEWNS+ "CLONE_NEWNS")))