aboutsummaryrefslogtreecommitdiff
path: root/lib/libjail
Commit message (Collapse)AuthorAgeFilesLines
* Revert r284417 it is not necessary anymoreBaptiste Daroussin2015-06-151-1/+1
| | | | Notes: svn path=/head/; revision=284421
* Enforce overwritting SHLIBDIRBaptiste Daroussin2015-06-151-1/+1
| | | | | | | | | | | | Since METAMODE has been added, sys.mk loads bsd.mkopt.mk which ends load loading bsd.own.mk which then defines SHLIBDIR before all the Makefile.inc everywhere. This makes /lib being populated again. Reported by: many Notes: svn path=/head/; revision=284417
* Add META_MODE support.Simon J. Gerraty2015-06-131-0/+20
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp Notes: svn path=/head/; revision=284345
| * dirdeps.mk now sets DEP_RELDIRSimon J. Gerraty2015-06-081-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=284172
| * Merge sync of headSimon J. Gerraty2015-05-272-7/+7
| |\ | |/ |/| | | Notes: svn path=/projects/bmake/; revision=283595
| * Updated dependenciesSimon J. Gerraty2014-05-161-1/+1
| | | | | | | | Notes: svn path=/projects/bmake/; revision=266219
| * Updated dependenciesSimon J. Gerraty2014-05-101-0/+2
| | | | | | | | Notes: svn path=/projects/bmake/; revision=265802
| * Updated dependenciesSimon J. Gerraty2013-03-111-0/+1
| | | | | | | | Notes: svn path=/projects/bmake/; revision=248169
| * Updated dependenciesSimon J. Gerraty2013-02-161-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=246868
| * Updated/new Makefile.dependSimon J. Gerraty2012-11-081-0/+3
| | | | | | | | Notes: svn path=/projects/bmake/; revision=242788
| * Sync from headSimon J. Gerraty2012-11-041-13/+17
| |\ | | | | | | | | | Notes: svn path=/projects/bmake/; revision=242545
| * | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar2012-08-221-0/+17
| | | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* | | In preparation for using clang's -Wcast-qual:Jamie Gritton2014-11-252-7/+7
| |/ |/| | | | | | | | | | | | | | | | | | | Use __DECONST (instead of my own attempted re-invention) for the iov parameters to jail_get/set(2). Similarly remove the decost-ish hack from execvp's argv, except the __DECONST is only added at very end. While I'm at it, remove an unused variable and fix a comment typo. Notes: svn path=/head/; revision=275073
* | Fix some memory allocation errors:Jamie Gritton2012-10-041-13/+17
|/ | | | | | | | | | | | * jail_setv will leak a parameter name if jailparam_import fails. * jailparam_all loses the jailparam pointer on realloc error (a clear freshman mistake). * If jailparam_init fails, the caller doesn't need to jailparam_free the buffer. That's not really clear, so set things to NULL allowing jailparam_free to work without error (though it's still not required). Notes: svn path=/head/; revision=241197
* The fix in r235291 re-broke the "allow.nomount" case. Re-fix itJamie Gritton2012-05-221-12/+14
| | | | | | | by testing for the right parameter name. Notes: svn path=/head/; revision=235799
* The linker isn't consistent in the ordering of dynamic sysctls, so don'tJamie Gritton2012-05-111-13/+25
| | | | | | | | assume that the unnamed final component of "security.jail.param.foo." is one less than the "foo" component. It might be one greater instead. Notes: svn path=/head/; revision=235291
* Handle the case where a boolean parameter is also a node.Jamie Gritton2012-03-011-30/+23
| | | | | | | | PR: bin/165515 MFC after: 2 weeks Notes: svn path=/head/; revision=232342
* Introduce signed and unsigned version of CTLTYPE_QUAD, renamingMatthew D Fleming2011-01-191-3/+12
| | | | | | | existing uses. Rename sysctl_handle_quad() to sysctl_handle_64(). Notes: svn path=/head/; revision=217616
* Find a jail's type as part of jailparam_init rather than waiting untilJamie Gritton2010-10-271-10/+4
| | | | | | | | | it's absolutely necessary. MFC after: 1 week Notes: svn path=/head/; revision=214434
* mdoc: fix manlint warnings by unbreaking mdoc syntaxUlrich Spörlein2010-10-081-1/+1
| | | | Notes: svn path=/head/; revision=213572
* Whitespace and comment fixes.Jamie Gritton2010-08-311-4/+2
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=212074
* Don't over-allocate array values in jailparam_export.Jamie Gritton2010-08-311-6/+9
| | | | | | | | | Fix a little comment typo. MFC after: 3 days Notes: svn path=/head/; revision=212073
* Make it clear in the example that jailparam_export's return valueJamie Gritton2010-08-311-1/+3
| | | | | | | | | should be freed. MFC after: 3 days Notes: svn path=/head/; revision=212072
* Don't copy and return a potentially unset buffer when jail_get fails.Jamie Gritton2010-07-151-6/+10
| | | | Notes: svn path=/head/; revision=210134
* Don't import parameter values in jail_getv, except for the search key.Jamie Gritton2010-07-151-71/+87
| | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=210133
* realloc() with a proper amount of memory.Ruslan Ermilov2010-02-171-1/+1
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=204008
* Build lib/ with WARNS=6 by default.Ed Schouten2010-01-021-2/+0
| | | | | | | | | | | | Similar to libexec/, do the same with lib/. Make WARNS=6 the norm and lower it when needed. I'm setting WARNS?=0 for secure/. It seems secure/ includes the Makefile.inc provided by lib/. I'm not going to touch that directory. Most of the code there is contributed anyway. Notes: svn path=/head/; revision=201381
* Add a null pointer check so "name" can be used as a key parameter inJamie Gritton2009-12-171-1/+1
| | | | | | | | | | | jailparam_get. PR: bin/141692 Submitted by: delphij MFC after: 3 days Notes: svn path=/head/; revision=200623
* Fixed markup (mostly) errors.Ruslan Ermilov2009-09-211-48/+54
| | | | Notes: svn path=/head/; revision=197385
* Some jail parameters (in particular, "ip4" and "ip6" for IP addressJamie Gritton2009-07-252-60/+89
| | | | | | | | | | | | 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 Notes: svn path=/head/; revision=195870
* Fix dynamic (re)allocation logic in jailparam_set and jailparam_get.Jamie Gritton2009-06-251-34/+72
| | | | | | | | | Touch up jailparam_import a bit while I'm at it. Approved by: bz (mentor) Notes: svn path=/head/; revision=195011
* Add libjail, a (somewhat) simpler interface to the jail_set and jail_getJamie Gritton2009-06-245-0/+1448
system calls and the security.jail.param sysctls. Approved by: bz (mentor) Notes: svn path=/head/; revision=194869