From 42489752b4c78f6bbc80bb56a4347b692a067c29 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Sun, 25 Jul 2021 13:03:57 -0700 Subject: add Linux namespace-entering connections Signed-off-by: Sean Whitton --- src/libc.lisp | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'src/libc.lisp') diff --git a/src/libc.lisp b/src/libc.lisp index d2a3f90..bd1bd48 100644 --- a/src/libc.lisp +++ b/src/libc.lisp @@ -1,10 +1,25 @@ (in-package :consfigurator) +(include "unistd.h") + +(ctype uid_t "uid_t") + #+linux (progn (define "_GNU_SOURCE") - (include "linux/sched.h")) + (include "linux/sched.h") + (include "linux/capability.h") + (include "linux/nsfs.h")) #+linux (progn - (constant (+CLONE_NEWNS+ "CLONE_NEWNS"))) + (constant (+CLONE_NEWCGROUP+ "CLONE_NEWCGROUP")) + (constant (+CLONE_NEWIPC+ "CLONE_NEWIPC")) + (constant (+CLONE_NEWNET+ "CLONE_NEWNET")) + (constant (+CLONE_NEWNS+ "CLONE_NEWNS")) + (constant (+CLONE_NEWPID+ "CLONE_NEWPID")) + (constant (+CLONE_NEWTIME+ "CLONE_NEWTIME")) + (constant (+CLONE_NEWUSER+ "CLONE_NEWUSER")) + (constant (+CLONE_NEWUTS+ "CLONE_NEWUTS")) + + (constant (+NS_GET_OWNER_UID+ "NS_GET_OWNER_UID"))) -- cgit v1.2.3