/[base]
ViewVC logotype

Revision 285279


Jump to revision: Previous Next
Author: hrs
Date: Wed Jul 8 16:37:48 2015 UTC (8 years, 11 months ago)
Changed paths: 2
Log Message:
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


Changed paths

Path Details
Directoryhead/usr.sbin/jail/config.c modified , text changed
Directoryhead/usr.sbin/jail/jailp.h modified , text changed

  ViewVC Help
Powered by ViewVC 1.1.27