*/
/* TODO:
- * - Add userns support.
* - Make pidns init optional.
* - Make setproctitle nicer and include program argv[0].
* - Set up prctl(PR_SET_PDEATHSIG).
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);
}