aboutsummaryrefslogtreecommitdiff
path: root/src/package.lisp
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2021-08-04 17:09:47 -0700
committerSean Whitton <spwhitton@spwhitton.name>2021-11-08 16:00:27 -0700
commit1e99ee6ff7f47db2052e226d7b071e31ff33b56c (patch)
treec27a22b6cb4e7d2c8b0b1aad4dc747c31102958d /src/package.lisp
parent42489752b4c78f6bbc80bb56a4347b692a067c29 (diff)
downloadconsfigurator-1e99ee6ff7f47db2052e226d7b071e31ff33b56c.tar.gz
add LXC properties, :LXC{,-UNPRIV-ATTACH} connections, WITH-HOMEDIR
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
Diffstat (limited to 'src/package.lisp')
-rw-r--r--src/package.lisp46
1 files changed, 42 insertions, 4 deletions
diff --git a/src/package.lisp b/src/package.lisp
index a12b008..c2d0348 100644
--- a/src/package.lisp
+++ b/src/package.lisp
@@ -86,6 +86,7 @@
;; libc.lisp
#:uid_t
+ #:gid_t
#:+CLONE_NEWCGROUP+
#:+CLONE_NEWIPC+
@@ -259,6 +260,7 @@
#:as
#:with-flagfile
#:with-unapply
+ #:with-homedir
;; host.lisp
#:host
@@ -406,8 +408,16 @@
#:capability-p))
(defpackage :consfigurator.util.linux-namespace
- (:use #:cl #:consfigurator #:consfigurator.util.posix1e #:cffi)
- (:export #:setgroups-p
+ (:use #:cl
+ #:anaphora
+ #:alexandria
+ #:consfigurator
+ #:consfigurator.util.posix1e
+ #:cffi)
+ (:export #:get-ids-offset
+ #:reduce-id-maps
+ #:shift-ids
+ #:setgroups-p
#:get-userns-owner))
(defpackage :consfigurator.property.cmd
@@ -944,12 +954,38 @@
(#:os #:consfigurator.property.os))
(:export #:has-swap-file))
+(defpackage :consfigurator.property.lxc
+ (:use #:cl
+ #:anaphora
+ #:alexandria
+ #:consfigurator
+ #:consfigurator.util.linux-namespace
+ #:cffi)
+ (:local-nicknames (#:file #:consfigurator.property.file)
+ (#:apt #:consfigurator.property.apt)
+ (#:os #:consfigurator.property.os)
+ (#:service #:consfigurator.property.service)
+ (#:chroot #:consfigurator.property.chroot)
+ (#:user #:consfigurator.property.user)
+ (#:systemd #:consfigurator.property.systemd))
+ (:export #:installed
+ #:user-container-started
+ #:when-user-container-running
+ #:user-containers-autostart
+ #:usernet-usable-by
+ #:user-container-for
+ #:user-container-for.
+ #:user-container
+ #:user-container.
+
+ #:lxc-ls))
+
(defpackage :consfigurator.connection.local
(:use #:cl #:consfigurator #:alexandria)
(:export #:local-connection))
(defpackage :consfigurator.connection.shell-wrap
- (:use #:cl #:consfigurator)
+ (:use #:cl #:alexandria #:consfigurator)
(:export #:shell-wrap-connection #:connection-shell-wrap))
(defpackage :consfigurator.connection.fork
@@ -1016,7 +1052,9 @@
#:consfigurator
#:consfigurator.util.linux-namespace
#:consfigurator.connection.fork
- #:consfigurator.connection.shell-wrap))
+ #:consfigurator.connection.shell-wrap)
+ (:local-nicknames (#:user #:consfigurator.property.user)
+ (#:lxc #:consfigurator.property.lxc)))
(defpackage :consfigurator.data.asdf
(:use #:cl #:alexandria #:consfigurator))