diff options
author | jamie <jamie@FreeBSD.org> | 2009-05-27 14:30:26 +0000 |
---|---|---|
committer | jamie <jamie@FreeBSD.org> | 2009-05-27 14:30:26 +0000 |
commit | 8dbff96dac0a8009a4169eedbbe59be58a480889 (patch) | |
tree | 4a406964696e0ebb946248969d86b305f81eab7b /usr.sbin/jexec/jexec.8 | |
parent | a013e0afcbb44052a86a7977277d669d8883b7e7 (diff) | |
download | FreeBSD-src-8dbff96dac0a8009a4169eedbbe59be58a480889.zip FreeBSD-src-8dbff96dac0a8009a4169eedbbe59be58a480889.tar.gz |
Add support for the arbitrary named jail parameters used by jail_set(2)
and jail_get(2). Jail(8) can now create jails using a "name=value"
format instead of just specifying a limited set of fixed parameters; it
can also modify parameters of existing jails. Jls(8) can display all
parameters of jails, or a specified set of parameters. The available
parameters are gathered from the kernel, and not hard-coded into these
programs.
Small patches on killall(1) and jexec(8) to support jail names with
jail_get(2).
Approved by: bz (mentor)
Diffstat (limited to 'usr.sbin/jexec/jexec.8')
-rw-r--r-- | usr.sbin/jexec/jexec.8 | 28 |
1 files changed, 5 insertions, 23 deletions
diff --git a/usr.sbin/jexec/jexec.8 b/usr.sbin/jexec/jexec.8 index bdda23d..a98af67 100644 --- a/usr.sbin/jexec/jexec.8 +++ b/usr.sbin/jexec/jexec.8 @@ -25,7 +25,7 @@ .\" .\" $FreeBSD$ .\" -.Dd November 29, 2008 +.Dd May 27, 2009 .Dt JEXEC 8 .Os .Sh NAME @@ -34,36 +34,18 @@ .Sh SYNOPSIS .Nm .Op Fl u Ar username | Fl U Ar username -.Op Fl n Ar jailname -.Ar jid command ... +.Ar jail command ... .Sh DESCRIPTION The .Nm utility executes .Ar command -inside the jail identified by either -.Ar jailname -or -.Ar jid -or both. -.Pp -If the jail cannot be identified uniquely by the given parameters, -an error message is printed. -.Nm -will also check the state of the jail (once supported) to be -.Dv ALIVE -and ignore jails in other states. -The mandatory argument -.Ar jid -is the unique jail identifier as given by -.Xr jls 8 . -In case you only want to match on other criteria, give an empty string. +inside the +.Ar jail +identified by its jid or name. .Pp The following options are available: .Bl -tag -width indent -.It Fl n Ar jailname -The name of the jail, if given upon creation of the jail. -This is not the hostname of the jail. .It Fl u Ar username The user name from host environment as whom the .Ar command |