Matthew D Fleming
cbc134ad03
Introduce signed and unsigned version of CTLTYPE_QUAD, renaming
...
existing uses. Rename sysctl_handle_quad() to sysctl_handle_64().
2011-01-19 23:00:25 +00:00
Jamie Gritton
b81422ef7f
Find a jail's type as part of jailparam_init rather than waiting until
...
it's absolutely necessary.
MFC after: 1 week
2010-10-27 21:01:53 +00:00
Jamie Gritton
881f6af44b
Whitespace and comment fixes.
...
MFC after: 3 days
2010-08-31 23:14:03 +00:00
Jamie Gritton
4d02a3e762
Don't over-allocate array values in jailparam_export.
...
Fix a little comment typo.
MFC after: 3 days
2010-08-31 21:50:09 +00:00
Jamie Gritton
c26c472cc8
Don't import parameter values in jail_getv, except for the search key.
...
Remove the internal jailparam_vlist, in favor of using variants of its
logic separately in jail_setv and jail_getv.
Free the temporary parameter list and exported values in jail_setv
and jail_getv.
Noted by: Stanislav Uzunchev
MFC after: 3 days
2010-07-15 19:21:07 +00:00
Ruslan Ermilov
f2ee2e68d2
realloc() with a proper amount of memory.
...
MFC after: 3 days
2010-02-17 16:45:03 +00:00
Jamie Gritton
1574e5ddd9
Add a null pointer check so "name" can be used as a key parameter in
...
jailparam_get.
PR: bin/141692
Submitted by: delphij
MFC after: 3 days
2009-12-17 05:06:56 +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