From df3d81128887209e083218bf1e3942d13df2e57e Mon Sep 17 00:00:00 2001 From: bbergeron Date: Mon, 29 Apr 2024 18:53:03 -0400 Subject: Reset git history with pseudonym --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 README.md (limited to 'README.md') 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 -- cgit v1.2.3