mdf
6b5f615b7c
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
e7b4c436b0
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
758b5f48ff
Whitespace and comment fixes.
...
MFC after: 3 days
2010-08-31 23:14:03 +00:00
jamie
4d14528739
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
9afbdfdebb
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
ru
fe9f464e77
realloc() with a proper amount of memory.
...
MFC after: 3 days
2010-02-17 16:45:03 +00:00
jamie
cf8736c474
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
274ea197bb
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
76812bfcfe
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
7c0019fd30
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