]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
bectl(8): Allow running a custom command in the 'jail' subcommand
authorKyle Evans <kevans@FreeBSD.org>
Sat, 18 Aug 2018 01:12:44 +0000 (01:12 +0000)
committerKyle Evans <kevans@FreeBSD.org>
Sat, 18 Aug 2018 01:12:44 +0000 (01:12 +0000)
commitcd816834d4cb7d50511c5b261de1592a8167cfca
treeac4a7f9c68fb7082f28815f49c525dbbc1932372
parentb6413b6db8756c1ecae5e575e6516f811966046f
bectl(8): Allow running a custom command in the 'jail' subcommand

Instead of always running /bin/sh, allow the user to specify the command
to run. The jail is not removed when the command finishes. Meaning,
`bectl unjail` will still need to be run.

For example:

```
bectl jail newBE pkg upgrade
bectl ujail newBE
```

Submitted by: Shawn Webb
Obtained from: HardenedBSD (8b451014ab)
sbin/bectl/bectl.8
sbin/bectl/bectl.c
sbin/bectl/bectl_jail.c