Closed bool101 closed 9 years ago
Let's accept input from the environment in addition to command line, like this:
char *chroot_dir = getenv("GK_CHROOT"); ... case 't': chroot_dir = strdup(optarg); break; ... if(chroot_dir) { unshare(CLONE_NEWUSER); chroot(chroot_dir); }
Complete for all current arguments.
Let's accept input from the environment in addition to command line, like this:
char *chroot_dir = getenv("GK_CHROOT"); ... case 't': chroot_dir = strdup(optarg); break; ... if(chroot_dir) { unshare(CLONE_NEWUSER); chroot(chroot_dir); }