diff options
author | bbergeron <[email protected]> | 2024-04-29 18:53:03 -0400 |
---|---|---|
committer | bbergeron <[email protected]> | 2024-04-29 18:53:03 -0400 |
commit | df3d81128887209e083218bf1e3942d13df2e57e (patch) | |
tree | b2e98b7febfc7769ca1b34fe3ca3f5a978032520 /README.md |
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/README.md b/README.md new file mode 100644 index 0000000..152ea64 --- /dev/null +++ b/README.md @@ -0,0 +1,11 @@ +mntrun - mounts binds and overlays inside an ephemeral mount namespace, and runs a command in it. + +Usage: `mntrun [-dhv] [-b source dest] [-o|-m lower upper workdir mountpoint] command` + +This tiny program exploits SUID to allow regular users to create overlays and binds mounts inside an ephemeral namespace, and to run `command` inside this new namespace. + +For further usage documentation, consult the dedicated man page. + +mntrun is fewer than 200 lines of fairly simple C99. `mount.c` contains all (2) mount wrappers, while `main.c` contains `main` and `namespace_main`, which does what you expect. + +glibc Linux only (`clone(2)` seems to be non-standard, sorry)
\ No newline at end of file |