/[path-sandbox]/trunk/sandbox.h |
Parent Directory
|
Revision Log
Make sure we use our bashrc.
Cleanup environ variables.
If we are called from the command line, do not care about PORTAGE_TMPDIR, and make the current directory the work directory. Also rename the variable portage_tmp_dir to work_dir.
Do not resolve symlinks in PORTAGE_TMPDIR in sandbox .. we will handle that in libsandbox .. bug #100309.
Print all logging to stderr, bug #90343, comment #15, by Zac Medico.
Cleanup access/log printing. Make access printing honour NOCOLOR. Fix log printing's last line not honouring NOCOLOR.
Only declare functions in sandbox_futils.c that are used in libsandbox.c when OUTSIDE_LIBSANDBOX is not defined.
Remove sandbox_dir and co - we are not using it anymore.
Redo the interface of the get_* functions so that we do not leak memory.
Major cleanup of sandbox_futils.c. Removed most of the functions as we now write to /var/log/sandbox/, so in theory do not need all that.
Change log dir to /var/log/sandbox/. Make sure the sandboxed process cannot write to it.
Remove unused 'pids file' code.
General cleanups.
Various LD_PRELOAD cleanups. Do not unset LD_PRELOAD for parent.
Modify get_sandbox_pids_file(), get_sandbox_log() and get_sandbox_debug_log() to use TMPDIR if present in environment.
Add get_sandbox_debug_log(), and use it (add behaviour similar to SANDBOX_LOG if already exported when sandbox started). Fix get_sandbox_log() and new get_sandbox_debug_log() to not use already exported environment variables if they have '/' in them. Use snprintf()'s instead of strncpy()'s. More SB_PATH_MAX fixes.
More path limit fixes. Declare SB_BUF_LEN global and use it where needed.
Remove NO_FORK stuff, as its not used, and 'strace -f' works just fine.
Remove USE_SYSTEM_SHELL stuff, as it is not secure, and not in use.
Remove ld.so.preload crap - we are not going to use it again.
Fixup sandbox and sandbox.bashrc to call bash with the proper .bashrc.
whitespace fixes
dlvsym doesnt exist in uClibc
Make sure all functions used in libsandbox.c is declared static. Define SB_STATIC in localdecls.h for this. Include sandbox_futils.c rather than linking with its object. Hopefully this will fix bug #90153.
White space fixes.
Initial revision
This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, enter a numeric revision.
ViewVC Help | |
Powered by ViewVC 1.1.20 |