diff options
| author | Jacob McDonnell <jacob@jacobmcdonnell.com> | 2026-04-26 16:38:00 -0400 |
|---|---|---|
| committer | Jacob McDonnell <jacob@jacobmcdonnell.com> | 2026-04-26 16:38:00 -0400 |
| commit | 97d5c458cfa039d857301e1ca7d5af3beb37131d (patch) | |
| tree | b460cd850d0537eb71806ba30358840377b27688 /static/inferno/man2/newns.2 | |
| parent | b89dc2331a50c63f8b33272a5c4c61ab98abdaa3 (diff) | |
build: Better Build System
Diffstat (limited to 'static/inferno/man2/newns.2')
| -rw-r--r-- | static/inferno/man2/newns.2 | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/static/inferno/man2/newns.2 b/static/inferno/man2/newns.2 new file mode 100644 index 00000000..60b64246 --- /dev/null +++ b/static/inferno/man2/newns.2 @@ -0,0 +1,49 @@ +.TH NEWNS 2 +.SH NAME +Newns: newns, newuser \- build a new name space from a description file +.SH SYNOPSIS +.EX +include "newns.m"; +ns := load Newns Newns->PATH; + +newns: fn(user: string, nsfile: string): string; +newuser: fn(user: string, cap: string, nsfile: string): string; +.EE +.SH DESCRIPTION +.B Newns +reads file +.I nsfile +and builds a new name space based on the commands it contains. +The file has the format defined by +.IR namespace (6). +If +.I nsfile +is +.B nil +or empty, then +.B newns +attempts to read file the file +.BR namespace . +.PP +.B Newuser +uses a capability +.I cap +suitable for +.IR cap (3) +to change the current process's user name to +.IR user , +and uses +.B newns +and +.I nsfile +to build it a new name space. +The capability is typically obtained via +.IR factotum (4). +.SH SOURCE +.B /appl/lib/newns.b +.SH SEE ALSO +.IR sys-bind (2), +.IR sys-chdir (2), +.IR sys-pctl (2), +.IR factotum (4), +.IR namespace (6) |
