summaryrefslogtreecommitdiff
path: root/rc
diff options
context:
space:
mode:
authorJacob Moody <moody@posixcafe.org>2022-05-28 02:34:43 +0000
committerJacob Moody <moody@posixcafe.org>2022-05-28 02:34:43 +0000
commit57fa781188eeab3f958f3c5cedab2bebc60f388e (patch)
tree8c9d931ef73880f0e5245e5b6d839cbf7e08458c /rc
parent774529e440cfe570fbaf29e6e5c5c73345aa04a1 (diff)
aux/listen: Allow per service namespace files
Diffstat (limited to 'rc')
-rw-r--r--rc/bin/service/!tcp80.namespace24
1 files changed, 24 insertions, 0 deletions
diff --git a/rc/bin/service/!tcp80.namespace b/rc/bin/service/!tcp80.namespace
new file mode 100644
index 000000000..bb2f629df
--- /dev/null
+++ b/rc/bin/service/!tcp80.namespace
@@ -0,0 +1,24 @@
+mount -aC #s/boot /root $rootspec
+
+# kernel devices
+bind #c /dev
+bind #d /fd
+bind -c #e /env
+bind #p /proc
+bind -a #l /net
+bind -a #I /net
+
+bind /root/$cputype/bin /bin
+bind /root/rc /rc
+bind -a /rc/bin /bin
+
+chdev Mcde|pslI/
+
+# grab just our webroot
+bind /root/usr/web /srv
+
+# or bind in the actual root
+# bind -a /root /
+
+unmount /root
+chdev -r Ms