]> git.wh0rd.org Git - home.git/commitdiff
vunshare: add docs
authorMike Frysinger <vapier@gentoo.org>
Sun, 19 Nov 2017 04:06:20 +0000 (23:06 -0500)
committerMike Frysinger <vapier@gentoo.org>
Sun, 19 Nov 2017 04:06:20 +0000 (23:06 -0500)
vunshare.c

index 2e7efbbb85415fe15ad637e1baebf6576476d6ed..85801fc10afc406a1020bd2b2af0282d4f20cc3a 100644 (file)
@@ -4,7 +4,6 @@
  */
 
 /* TODO:
- * - Add userns support.
  * - Make pidns init optional.
  * - Make setproctitle nicer and include program argv[0].
  * - Set up prctl(PR_SET_PDEATHSIG).
@@ -288,7 +287,18 @@ static const struct option opts[] = {
 
 static void usage(void)
 {
-       puts("Usage: unshare [options] <program>");
+       puts(
+               "Usage: unshare [options] <program>\n"
+               "\n"
+               "Options: [DimnpuU]\n"
+               "  -i   Use IPC namespaces\n"
+               "  -m   Use mount namespaces\n"
+               "  -n   Use net namespaces\n"
+               "  -p   Use pid namespaces\n"
+               "  -u   Use UTS namespaces\n"
+               "  -U   Use user namespaces\n"
+               "  -D   Daemonize program"
+       );
        exit(EX_USAGE);
 }