freebsd-skq/usr.sbin/jail
Hiroki Sato 64bb8a3881 Implement PF_IMMUTABLE flag and apply it to "name" and "jid" in
jail.conf parameters.  This flag disallows redefinition of the parameter.

"name" and/or "jid" are automatically defined in jail.conf by using
the jail names at the front of jail parameter definitions.  However,
one could override them by using a variable with the same name like
$name = "foo".  This confused the parser and could end up with SIGSEGV.

Note that this change also affects a case when all of parameters are
defined in the command line arguments, not in jail.conf.  Specifically,
"jail -c name=j1 name=j2" no longer works.  This should be harmless.

PR:		196574
Reviewed by:	jamie
Differential Revision:	https://reviews.freebsd.org/D3017
2015-07-08 16:37:48 +00:00
..
command.c Add mount.procfs jail parameter, so procfs can be mounted when a prison's 2015-02-06 17:54:53 +00:00
config.c Implement PF_IMMUTABLE flag and apply it to "name" and "jid" in 2015-07-08 16:37:48 +00:00
jail.8 Fix minor mdoc issues. 2015-04-24 14:36:06 +00:00
jail.c Add mount.procfs jail parameter, so procfs can be mounted when a prison's 2015-02-06 17:54:53 +00:00
jail.conf.5 Bump .Dd forgotten in r261832. 2014-02-13 13:11:34 +00:00
jaillex.l Work around build breakages with GCC 4.2. 2013-05-23 05:42:35 +00:00
jailp.h Implement PF_IMMUTABLE flag and apply it to "name" and "jid" in 2015-07-08 16:37:48 +00:00
jailparse.y
Makefile Convert usr.sbin to LIBADD 2014-11-25 16:57:27 +00:00
Makefile.depend Add META_MODE support. 2015-06-13 19:20:56 +00:00
state.c In preparation for using clang's -Wcast-qual: 2014-11-25 21:01:08 +00:00