aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* sandbox: include full libc path in version outputMike Frysinger2008-11-291-1/+1
| | | | | | | Include the full libc path (LIBC_PATH) in the sandbox --version output as this is very useful debug information. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* src/sandbox.sh: produce it from configureMike Frysinger2008-11-281-1/+1
| | | | | | | Rather than mucking with paths dynamically, just get the absolute top builddir from configure. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* tests: fixup running test out of src treeMike Frysinger2008-11-161-1/+1
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* tests: move libsigsegv disable to configure.acMike Frysinger2008-11-161-1/+5
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* sandbox: make -h/--help/-V/--version print out something usefulMike Frysinger2008-11-161-0/+36
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* sandbox: add a script to quickly test locally built libsandboxMike Frysinger2008-11-162-0/+7
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* sandbox: display when a process exits due to a signalEd Catmur2008-11-161-5/+11
| | | | | | URL: http://bugs.gentoo.org/194943 Signed-off-by: Ed Catmur <ed@catmur.co.uk> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* unify SB_E{INFO,WARN,ERROR} functions and have them call the internal ↵Mike Frysinger2008-11-161-6/+4
| | | | | | sb_printf function Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* move build flags to configure rather than MakefileMike Frysinger2008-11-111-4/+4
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* sandbox: convert to stdboolMike Frysinger2008-11-102-6/+6
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* sandbox: remove remaining multilib codeMike Frysinger2008-11-091-6/+0
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* sandbox: unify banner message and drop "linux" from itMike Frysinger2008-11-091-2/+3
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* headers.h: consolidate all random system includes into one fileMike Frysinger2008-11-092-18/+2
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* cleanup whitespace and comments -- no functional changesMike Frysinger2008-11-093-66/+16
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* sandbox: drop pointless castMike Frysinger2008-11-091-1/+1
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* sandbox: properly use the return value of xreallocDavid Leverton2008-11-081-0/+1
| | | | | | URL: http://bugs.gentoo.org/238231 Signed-off-by: David Leverton <levertond@googlemail.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* src/sandbox.h: add missing headerMike Frysinger2006-09-031-0/+45
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Punt vim indentation line.Martin Schlemmer2006-07-131-1/+0
| | | | Signed-off-by: Martin Schlemmer <azarah@gentoo.org>
* Punt old copyright stuff, as nearly everything was rewrited. If something ↵Martin Schlemmer2006-07-131-16/+27
| | | | | | is was not and is pointed out, I will rectify it. Signed-off-by: Martin Schlemmer <azarah@gentoo.org>
* Split out environment related functions, and make their naming a bit more sane.Martin Schlemmer2006-07-133-353/+395
| | | | Signed-off-by: Martin Schlemmer <azarah@gentoo.org>
* Update for librcutil dynbuf function name changes.Martin Schlemmer2006-07-121-16/+16
| | | | Signed-off-by: Martin Schlemmer <azarah@gentoo.org>
* Check log size before we open it.Martin Schlemmer2006-07-111-3/+4
| | | | Signed-off-by: Martin Schlemmer <azarah@gentoo.org>
* Use IO related sb_*() functions, and improve error checking.Martin Schlemmer2006-07-111-5/+13
| | | | Signed-off-by: Martin Schlemmer <azarah@gentoo.org>
* Remove file_length(), and rather use rc_get_size().Martin Schlemmer2006-07-091-2/+2
| | | | Signed-off-by: Martin Schlemmer <azarah@gentoo.org>
* Move libsandbox to its own directory.Martin Schlemmer2006-07-094-2095/+0
| | | | Signed-off-by: Martin Schlemmer <azarah@gentoo.org>
* As we are using a symbol map for libsandbox, its no longer neededMartin Schlemmer2006-07-096-279/+15
| | | | | | | | | to have all the internal functions static, and thus we can break things out a bit and make the source layout more sane. Start by moving librcutil to libsbutil, and adding all the defines and helper functions needed by both libsandbox and sandbox. Signed-off-by: Martin Schlemmer <azarah@gentoo.org>
* Reformat previous added code a bit, and add debug messagesMartin Schlemmer2006-07-091-80/+128
| | | | | | | and even more error checking. Abort on some more unrecoverable errors. Signed-off-by: Martin Schlemmer <azarah@gentoo.org>
* Apply patch to make reading and writing more reliableAlex Unleashed2006-07-091-67/+139
| | | | | Signed-off-by: Alex Unleashed <unledev@gmail.com> Signed-off-by: Martin Schlemmer <azarah@gentoo.org>
* Fix access call strncmp'sAlex Unleashed2006-07-091-3/+3
| | | | | Signed-off-by: Alex Unleashed <unledev@gmail.com> Signed-off-by: Martin Schlemmer <azarah@gentoo.org>
* Update comment.Martin Schlemmer2006-07-091-1/+1
| | | | Signed-off-by: Martin Schlemmer <azarah@gentoo.org>
* Free child argv we allocated earlier, as at execve() duplicatesMartin Schlemmer2006-07-081-2/+6
| | | | | | | this, so no need to keep it around and waiste more memory. Make sure we will not in future free them twice. Signed-off-by: Martin Schlemmer <azarah@gentoo.org>
* Free child environ we allocated earlier, as at execve() duplicatesMartin Schlemmer2006-07-081-4/+9
| | | | | | this, so no need to keep it around and waiste more memory. Signed-off-by: Martin Schlemmer <azarah@gentoo.org>
* Rather link libsandbox against librcutil's libtool objects (.lo),Martin Schlemmer2006-07-081-5/+8
| | | | | | as it should be more portable, but do add the extra fat. Signed-off-by: Martin Schlemmer <azarah@gentoo.org>
* Add needed changes to get a working sandbox on FreeBSDAlex Unleashed2006-07-081-2/+2
| | | | | Signed-off-by: Alex Unleashed <unledev@gmail.com> Signed-off-by: Martin Schlemmer <azarah@gentoo.org>
* Remove debug printf() that I missed to remove.Martin Schlemmer2006-07-081-1/+0
| | | | Signed-off-by: Martin Schlemmer <azarah@gentoo.org>
* Convert all string list operations to use the str_list_*() macro's.Martin Schlemmer2006-07-081-94/+64
| | | | | | | | This allow a nice cleanup of the bash argv stuff, and also actually add error handling to that part of the code. Some more cleanup of the environ stuff. Signed-off-by: Martin Schlemmer <azarah@gentoo.org>
* Set 'env_ptr = environ;' _after_ we unset and set variables, else theMartin Schlemmer2006-07-081-22/+27
| | | | | | | block could have been reallocated, and leave us using the wrong pointer. General cleanup of the env handling code. Free all memory used. Signed-off-by: Martin Schlemmer <azarah@gentoo.org>
* Fix double free() in sandbox.Martin Schlemmer2006-07-081-3/+0
| | | | Signed-off-by: Martin Schlemmer <azarah@gentoo.org>
* Remove uneeded test, as setenv(,,0) do not replace.Martin Schlemmer2006-07-061-6/+4
| | | | Signed-off-by: Martin Schlemmer <azarah@gentoo.org>
* Use debug versions of malloc(), realloc() and calloc().Martin Schlemmer2006-07-062-13/+13
| | | | Signed-off-by: Martin Schlemmer <azarah@gentoo.org>
* Free some of our custom environment data.Martin Schlemmer2006-07-061-5/+13
| | | | Signed-off-by: Martin Schlemmer <azarah@gentoo.org>
* Set default values via a config file. Also support sandbox.dMartin Schlemmer2006-07-063-74/+197
| | | | | | config directory for package specific configuration files. Signed-off-by: Martin Schlemmer <azarah@gentoo.org>
* Remove last libsandbox-only functions in favour for ones providedMartin Schlemmer2006-07-065-70/+15
| | | | | | by librcutil. Setup log_domain properly for debugging. Signed-off-by: Martin Schlemmer <azarah@gentoo.org>
* Updates for changes to librcutil.Martin Schlemmer2006-07-062-8/+8
| | | | Signed-off-by: Martin Schlemmer <azarah@gentoo.org>
* Fix build failure due to exists() still being needed for libsandbox.Martin Schlemmer2006-07-052-0/+23
| | | | Signed-off-by: Martin Schlemmer <azarah@gentoo.org>
* Use librcutil.Martin Schlemmer2006-07-054-82/+23
| | | | Signed-off-by: Martin Schlemmer <azarah@gentoo.org>
* Rename EINFO, etc to SB_EINFO, etc to not conflict with macros fromMartin Schlemmer2006-07-053-13/+13
| | | | | | librcutil. Signed-off-by: Martin Schlemmer <azarah@gentoo.org>
* Use is_env_on(ENV_SANDBOX_ON) now that we have is_env_on().Martin Schlemmer2006-07-051-3/+1
| | | | Signed-off-by: Martin Schlemmer <azarah@gentoo.org>
* Abort on possible security breach.Martin Schlemmer2006-07-051-0/+1
| | | | Signed-off-by: Martin Schlemmer <azarah@gentoo.org>
* Set NOCOLOR to 'no', else ebuild.sh do not set COLS, etc.Martin Schlemmer2006-07-051-1/+1
| | | | Signed-off-by: Martin Schlemmer <azarah@gentoo.org>