Ruslan Ermilov
8d0a84b1d4
MFC: r204008: realloc() with a proper amount of memory.
2010-02-22 15:58:10 +00:00
Jamie Gritton
19022f2808
MFC r200623:
...
Add a null pointer check so "name" can be used as a key parameter in
jailparam_get.
PR: bin/141692
Submitted by: delphij
2009-12-20 04:49:29 +00:00
Jamie Gritton
7cbf72137f
Some jail parameters (in particular, "ip4" and "ip6" for IP address
...
restrictions) were found to be inadequately described by a boolean.
Define a new parameter type with three values (disable, new, inherit)
to handle these and future cases.
Approved by: re (kib), bz (mentor)
Discussed with: rwatson
2009-07-25 14:48:57 +00:00
Jamie Gritton
69ea521eba
Fix dynamic (re)allocation logic in jailparam_set and jailparam_get.
...
Touch up jailparam_import a bit while I'm at it.
Approved by: bz (mentor)
2009-06-25 22:42:19 +00:00
Jamie Gritton
de6f37045c
Add libjail, a (somewhat) simpler interface to the jail_set and jail_get
...
system calls and the security.jail.param sysctls.
Approved by: bz (mentor)
2009-06-24 18:18:35 +00:00