/[path-sandbox]/trunk/src/sandbox.c
Gentoo

Log of /trunk/src/sandbox.c

Parent Directory Parent Directory | Revision Log Revision Log


Links to HEAD: (view) (download) (as text) (annotate)

Revision 297 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Jul 8 16:13:40 2006 UTC (8 years, 1 month ago) by azarah
File length: 19319 byte(s)
Diff to previous 291 , to selected 84
Fix double free() in sandbox.


Revision 291 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jul 6 19:18:09 2006 UTC (8 years, 1 month ago) by azarah
File length: 19364 byte(s)
Diff to previous 290 , to selected 84
Remove uneeded test, as setenv(,,0) do not replace.


Revision 290 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jul 6 17:25:46 2006 UTC (8 years, 1 month ago) by azarah
File length: 19404 byte(s)
Diff to previous 287 , to selected 84
Use debug versions of malloc(), realloc() and calloc().


Revision 287 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jul 6 16:44:48 2006 UTC (8 years, 1 month ago) by azarah
File length: 19398 byte(s)
Diff to previous 286 , to selected 84
Free some of our custom environment data.


Revision 286 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jul 6 16:37:20 2006 UTC (8 years, 1 month ago) by azarah
File length: 19460 byte(s)
Diff to previous 283 , to selected 84
Set default values via a config file.  Also support sandbox.d
config directory for package specific configuration files.


Revision 283 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jul 6 08:49:13 2006 UTC (8 years, 1 month ago) by azarah
File length: 17153 byte(s)
Diff to previous 282 , to selected 84
Remove last libsandbox-only functions in favour for ones provided
by librcutil.  Setup log_domain properly for debugging.


Revision 282 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jul 6 07:46:12 2006 UTC (8 years, 1 month ago) by azarah
File length: 17085 byte(s)
Diff to previous 280 , to selected 84
Updates for changes to librcutil.


Revision 280 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jul 5 16:51:12 2006 UTC (8 years, 1 month ago) by azarah
File length: 17109 byte(s)
Diff to previous 279 , to selected 84
Use librcutil.


Revision 279 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jul 5 16:34:00 2006 UTC (8 years, 1 month ago) by azarah
File length: 17028 byte(s)
Diff to previous 269 , to selected 84
Rename EINFO, etc to SB_EINFO, etc to not conflict with macros from
librcutil.


Revision 269 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jul 5 15:01:57 2006 UTC (8 years, 1 month ago) by azarah
File length: 17019 byte(s)
Diff to previous 268 , to selected 84
Set NOCOLOR to 'no', else ebuild.sh do not set COLS, etc.


Revision 268 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jul 5 13:50:48 2006 UTC (8 years, 1 month ago) by azarah
File length: 17018 byte(s)
Diff to previous 267 , to selected 84
Just killing the child with SANDBOX_ABORT do not actually abort the make process
in many cases.  So also kill the offending child, and pray that make will also
abort.  This is really hackish, and we should rather kill the whole process tree,
but currently its too much work (considering that we are in signal context which
probably will make things difficult - not even talking about the bsd's ...), so it
will have to do.


Revision 267 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jul 5 11:35:24 2006 UTC (8 years, 1 month ago) by azarah
File length: 16304 byte(s)
Diff to previous 266 , to selected 84
Make stop_called volatile as its used in signal handler.


Revision 266 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jul 5 10:55:54 2006 UTC (8 years, 1 month ago) by azarah
File length: 16295 byte(s)
Diff to previous 265 , to selected 84
Add /dev/full to write allowed paths, bug #137240.


Revision 265 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jul 4 15:32:43 2006 UTC (8 years, 2 months ago) by azarah
File length: 16285 byte(s)
Diff to previous 263 , to selected 84
Add SANDBOX_INTRACTV logic, and Vapier's sandboxshell mojo.


Revision 263 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jul 4 14:58:16 2006 UTC (8 years, 2 months ago) by azarah
File length: 16139 byte(s)
Diff to previous 261 , to selected 84
Add is_env_off().  Also check for true/false. Use is_env_*.


Revision 261 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jul 4 14:32:38 2006 UTC (8 years, 2 months ago) by azarah
File length: 15816 byte(s)
Diff to previous 224 , to selected 84
Theoretically add support to terminate immediately if we had an access violation,
bug #138499.  Uses environment variable SANDBOX_ABORT.


Revision 224 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Dec 5 13:40:36 2005 UTC (8 years, 8 months ago) by azarah
File length: 15455 byte(s)
Diff to previous 216 , to selected 84
More changes to try and resolve OSes with generic getcwd() implementations.

Revision 216 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Dec 5 09:28:34 2005 UTC (8 years, 8 months ago) by azarah
File length: 15456 byte(s)
Diff to previous 204 , to selected 84
Rename sandbox_futils.c to sandbox_utils.c.  Add gstrndup() and gbasename()
to sandbox_utils.c.  Add check for glibc, and fixup things to not need glibc
only extensions if not needed for versioned symbols.


Revision 204 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Dec 2 08:49:38 2005 UTC (8 years, 9 months ago) by azarah
File length: 15431 byte(s)
Diff to previous 194 , to selected 84
Add /dev/shm to write path.

Revision 194 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Dec 1 10:58:54 2005 UTC (8 years, 9 months ago) by azarah
File length: 15422 byte(s)
Diff to previous 193 , to selected 84
Use egetcwd() in sandbox.c.

Revision 193 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Dec 1 10:54:12 2005 UTC (8 years, 9 months ago) by azarah
File length: 15421 byte(s)
Diff to previous 184 , to selected 84
Fixup SANDBOX_ON handling after already running changes.

Revision 184 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Nov 30 23:11:34 2005 UTC (8 years, 9 months ago) by azarah
File length: 15605 byte(s)
Diff to previous 181 , to selected 84
Only check SANDBOX_ACTIVE, and not its value.  More BASH_ENV fixes.

Revision 181 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Nov 28 11:35:30 2005 UTC (8 years, 9 months ago) by azarah
File length: 15678 byte(s)
Diff to previous 178 , to selected 84
Revert 64bit arch test, as we should build the 32bit version without full
path checking as well, and add --enable-multilib switch to configure.


Revision 178 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Nov 28 10:52:03 2005 UTC (8 years, 9 months ago) by azarah
File length: 15680 byte(s)
Copied from: trunk/sandbox.c revision 175
Diff to previous 175 , to selected 84
Reorder source layout.

Revision 175 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Nov 28 10:24:06 2005 UTC (8 years, 9 months ago) by azarah
Original Path: trunk/sandbox.c
File length: 15680 byte(s)
Diff to previous 174 , to selected 84
Make sure we use our bashrc.

Revision 174 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Nov 28 10:13:15 2005 UTC (8 years, 9 months ago) by azarah
Original Path: trunk/sandbox.c
File length: 15565 byte(s)
Diff to previous 173 , to selected 84
Rather check SANDBOX_ACTIVE if we are already running. Set SANDBOX_ACTIVE
to readonly in sandbox.bashrc.


Revision 173 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Nov 28 10:05:52 2005 UTC (8 years, 9 months ago) by azarah
Original Path: trunk/sandbox.c
File length: 15488 byte(s)
Diff to previous 165 , to selected 84
Cleanup environ variables.

Revision 165 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 12 06:44:52 2005 UTC (8 years, 11 months ago) by azarah
Original Path: trunk/sandbox.c
File length: 15487 byte(s)
Diff to previous 159 , to selected 84
Do not handle adding working directory to SANDBOX_WRITE, as portage does it itself.

Revision 159 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Aug 5 14:11:55 2005 UTC (9 years ago) by azarah
Original Path: trunk/sandbox.c
File length: 15725 byte(s)
Diff to previous 158 , to selected 84
Improve error handling for get_sandbox_*_envvar() functions.

Revision 158 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Aug 5 13:58:53 2005 UTC (9 years ago) by azarah
Original Path: trunk/sandbox.c
File length: 15327 byte(s)
Diff to previous 157 , to selected 84
Remove the tmp_dir variable - we do not need it.

Revision 157 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Aug 5 13:55:08 2005 UTC (9 years ago) by azarah
Original Path: trunk/sandbox.c
File length: 15401 byte(s)
Diff to previous 155 , to selected 84
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.


Revision 155 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Aug 1 14:02:17 2005 UTC (9 years, 1 month ago) by azarah
Original Path: trunk/sandbox.c
File length: 15294 byte(s)
Diff to previous 152 , to selected 84
Add /dev/tts to write permit, bug #42809.

Revision 152 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jul 27 18:04:35 2005 UTC (9 years, 1 month ago) by azarah
Original Path: trunk/sandbox.c
File length: 15285 byte(s)
Diff to previous 147 , to selected 84
Do not resolve symlinks in PORTAGE_TMPDIR in sandbox .. we will handle that
in libsandbox .. bug #100309.


Revision 147 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jul 8 15:49:23 2005 UTC (9 years, 1 month ago) by azarah
Original Path: trunk/sandbox.c
File length: 15001 byte(s)
Diff to previous 146 , to selected 84
Fix compile error with previous change, and return rather then exit().

Revision 146 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jul 8 15:07:50 2005 UTC (9 years, 1 month ago) by azarah
Original Path: trunk/sandbox.c
File length: 15007 byte(s)
Diff to previous 145 , to selected 84
Remove old logs if present and conflicting with current.

Revision 145 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jul 8 14:52:26 2005 UTC (9 years, 1 month ago) by azarah
Original Path: trunk/sandbox.c
File length: 14631 byte(s)
Diff to previous 144 , to selected 84
Try to cleanup and make error handling/printing consistent.

Revision 144 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jul 7 22:58:16 2005 UTC (9 years, 1 month ago) by azarah
Original Path: trunk/sandbox.c
File length: 14558 byte(s)
Diff to previous 142 , to selected 84
Cleanup access/log printing.  Make access printing honour NOCOLOR.  Fix log
printing's last line not honouring NOCOLOR.


Revision 142 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jul 7 22:14:57 2005 UTC (9 years, 1 month ago) by azarah
Original Path: trunk/sandbox.c
File length: 14657 byte(s)
Diff to previous 141 , to selected 84
Remove unused includes and variables.

Revision 141 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jul 7 22:08:17 2005 UTC (9 years, 1 month ago) by azarah
Original Path: trunk/sandbox.c
File length: 14790 byte(s)
Diff to previous 140 , to selected 84
Remove sandbox_dir and co - we are not using it anymore.

Revision 140 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jul 7 22:01:14 2005 UTC (9 years, 1 month ago) by azarah
Original Path: trunk/sandbox.c
File length: 15034 byte(s)
Diff to previous 139 , to selected 84
Redo the interface of the get_* functions so that we do not leak memory.

Revision 139 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jul 7 21:42:33 2005 UTC (9 years, 1 month ago) by azarah
Original Path: trunk/sandbox.c
File length: 15253 byte(s)
Diff to previous 133 , to selected 84
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.


Revision 133 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jul 6 00:36:46 2005 UTC (9 years, 1 month ago) by azarah
Original Path: trunk/sandbox.c
File length: 15165 byte(s)
Diff to previous 132 , to selected 84
Remove unused 'pids file' code.

Revision 132 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jul 6 00:12:49 2005 UTC (9 years, 1 month ago) by azarah
Original Path: trunk/sandbox.c
File length: 19703 byte(s)
Diff to previous 131 , to selected 84
Remove unused variables.

Revision 131 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Jul 3 19:05:34 2005 UTC (9 years, 2 months ago) by azarah
Original Path: trunk/sandbox.c
File length: 19753 byte(s)
Diff to previous 127 , to selected 84
Remove trailing ':' for SANDBOX_PREDICT.

Revision 127 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Jul 3 18:48:22 2005 UTC (9 years, 2 months ago) by azarah
Original Path: trunk/sandbox.c
File length: 19754 byte(s)
Diff to previous 126 , to selected 84
Fix typo in Robin's patch.

Revision 126 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Jul 3 18:46:52 2005 UTC (9 years, 2 months ago) by azarah
Original Path: trunk/sandbox.c
File length: 19753 byte(s)
Diff to previous 124 , to selected 84
Add PREDICT items for nss-db, bug #92079.  Patch from Robin Johnson.

Revision 124 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jun 17 12:32:02 2005 UTC (9 years, 2 months ago) by azarah
Original Path: trunk/sandbox.c
File length: 19483 byte(s)
Diff to previous 123 , to selected 84
Move get_sandbox_*_envvar() to sandbox_setup_environ(), as its more appropriate there.

Revision 123 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jun 17 12:10:14 2005 UTC (9 years, 2 months ago) by azarah
Original Path: trunk/sandbox.c
File length: 19585 byte(s)
Diff to previous 113 , to selected 84
Remove fooling around with exit codes - we error out on presence of a log anyhow.

Revision 113 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jun 9 16:47:21 2005 UTC (9 years, 2 months ago) by azarah
Original Path: trunk/sandbox.c
File length: 19623 byte(s)
Diff to previous 108 , to selected 84
Add hack to allow writing to /proc/self/fd (or /dev/fd), bug #91516.

Revision 108 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jun 8 13:52:33 2005 UTC (9 years, 2 months ago) by azarah
Original Path: trunk/sandbox.c
File length: 19610 byte(s)
Diff to previous 105 , to selected 84
Do not abort if TMPDIR is not valid, but rather use '/tmp', bug #94360.  Also
make sure we re-export the new TMPDIR environment variable.


Revision 105 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jun 8 13:29:37 2005 UTC (9 years, 2 months ago) by azarah
Original Path: trunk/sandbox.c
File length: 19514 byte(s)
Diff to previous 101 , to selected 84
Add /dev/console to write list, bug #38588.

Revision 101 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri May 13 15:23:28 2005 UTC (9 years, 3 months ago) by azarah
Original Path: trunk/sandbox.c
File length: 19501 byte(s)
Diff to previous 100 , to selected 84
General cleanups.


Revision 100 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri May 13 14:18:05 2005 UTC (9 years, 3 months ago) by azarah
Original Path: trunk/sandbox.c
File length: 18986 byte(s)
Diff to previous 99 , to selected 84
Various LD_PRELOAD cleanups.  Do not unset LD_PRELOAD for parent.


Revision 99 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri May 13 13:30:51 2005 UTC (9 years, 3 months ago) by azarah
Original Path: trunk/sandbox.c
File length: 18192 byte(s)
Diff to previous 98 , to selected 84
Modify get_sandbox_pids_file(), get_sandbox_log() and get_sandbox_debug_log()
to use TMPDIR if present in environment.


Revision 98 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri May 13 12:53:15 2005 UTC (9 years, 3 months ago) by azarah
Original Path: trunk/sandbox.c
File length: 18049 byte(s)
Diff to previous 97 , to selected 84
Remove sandbox_log_file from main() as its no longer used.


Revision 97 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri May 13 12:52:10 2005 UTC (9 years, 3 months ago) by azarah
Original Path: trunk/sandbox.c
File length: 18103 byte(s)
Diff to previous 96 , to selected 84
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.


Revision 96 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu May 12 01:08:20 2005 UTC (9 years, 3 months ago) by azarah
Original Path: trunk/sandbox.c
File length: 18438 byte(s)
Diff to previous 93 , to selected 84
Add comments about memory we do not free at the moment.


Revision 93 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu May 12 00:07:21 2005 UTC (9 years, 3 months ago) by azarah
Original Path: trunk/sandbox.c
File length: 17946 byte(s)
Diff to previous 91 , to selected 84
More path limit fixes.  Declare SB_BUF_LEN global and use it where needed.


Revision 91 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed May 11 23:35:14 2005 UTC (9 years, 3 months ago) by azarah
Original Path: trunk/sandbox.c
File length: 17924 byte(s)
Diff to previous 90 , to selected 84
Set SANDBOX_ON *before* doing the child's env stuff, else its not set
for the child.


Revision 90 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed May 11 23:28:42 2005 UTC (9 years, 3 months ago) by azarah
Original Path: trunk/sandbox.c
File length: 17815 byte(s)
Diff to previous 89 , to selected 84
Remove global preload_adaptable as it is no longer used.


Revision 89 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed May 11 23:23:07 2005 UTC (9 years, 3 months ago) by azarah
Original Path: trunk/sandbox.c
File length: 17890 byte(s)
Diff to previous 88 , to selected 84
Rewrite environment stuff to only be set when execve'ing the child process
to try and avoid issues like bug #91541 that causes sandbox to crash if
we set LD_PRELOAD sandbox side already.


Revision 88 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed May 11 15:52:08 2005 UTC (9 years, 3 months ago) by azarah
Original Path: trunk/sandbox.c
File length: 15932 byte(s)
Diff to previous 87 , to selected 84
Move print_sandbox_log() up to make things neater.


Revision 87 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed May 11 15:48:18 2005 UTC (9 years, 3 months ago) by azarah
Original Path: trunk/sandbox.c
File length: 15932 byte(s)
Diff to previous 86 , to selected 84
Remove load_preload_libs(), as its not used anymore.


Revision 86 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed May 11 15:42:45 2005 UTC (9 years, 3 months ago) by azarah
Original Path: trunk/sandbox.c
File length: 17240 byte(s)
Diff to previous 85 , to selected 84
Remove NO_FORK stuff, as its not used, and 'strace -f' works just fine.


Revision 85 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed May 11 15:40:51 2005 UTC (9 years, 3 months ago) by azarah
Original Path: trunk/sandbox.c
File length: 17285 byte(s)
Diff to previous 84
Remove USE_SYSTEM_SHELL stuff, as it is not secure, and not in use (continued).


Revision 84 - (view) (download) (as text) (annotate) - [selected]
Modified Wed May 11 15:39:13 2005 UTC (9 years, 3 months ago) by azarah
Original Path: trunk/sandbox.c
File length: 17296 byte(s)
Diff to previous 83
Remove USE_SYSTEM_SHELL stuff, as it is not secure, and not in use.


Revision 83 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed May 11 15:36:36 2005 UTC (9 years, 3 months ago) by azarah
Original Path: trunk/sandbox.c
File length: 17823 byte(s)
Diff to previous 78 , to selected 84
Remove ld.so.preload crap - we are not going to use it again.


Revision 78 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 10 07:08:21 2005 UTC (9 years, 3 months ago) by azarah
Original Path: trunk/sandbox.c
File length: 21582 byte(s)
Diff to previous 77 , to selected 84
Do not use LD_PRELOAD if it contains libtsocks.so, as it breaks sandbox
for some odd reason, bug #91541.


Revision 77 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon May 9 18:00:45 2005 UTC (9 years, 3 months ago) by azarah
Original Path: trunk/sandbox.c
File length: 21385 byte(s)
Diff to previous 71 , to selected 84
Fix typo (sizeof -> strlen).


Revision 71 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed May 4 14:46:50 2005 UTC (9 years, 4 months ago) by azarah
Original Path: trunk/sandbox.c
File length: 21385 byte(s)
Diff to previous 70 , to selected 84
Do not reset already set LD_PRELOAD when starting sandbox.  If LD_PRELOAD is
already set, init of the env vars fails for some reason, so do this later on,
and do not warn (bug #91431).


Revision 70 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 3 21:43:50 2005 UTC (9 years, 4 months ago) by azarah
Original Path: trunk/sandbox.c
File length: 20926 byte(s)
Diff to previous 65 , to selected 84
Fixup sandbox and sandbox.bashrc to call bash with the proper .bashrc.


Revision 65 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 3 09:59:26 2005 UTC (9 years, 4 months ago) by azarah
Original Path: trunk/sandbox.c
File length: 20881 byte(s)
Diff to previous 35 , to selected 84
Add /dev/pty to default write list.  Noticed by Morfic.


Revision 35 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Mar 13 23:23:00 2005 UTC (9 years, 5 months ago) by azarah
Original Path: trunk/sandbox.c
File length: 20872 byte(s)
Diff to previous 34 , to selected 84
Fixup the constructor/destructor function names again (they should be _init()
and _fini() it seems, and not being called caused sandbox_lib_path to be
unset, and thus breaking the execve() wrapper's LD_PRELOAD protection).
Add both the path in given SANDBOX_x variable, as well as its symlink
resolved path in init_env_entries().  Modify filter_path() to be able to
resolve paths without resolving symlinks, as well as to be able to resolve
symlinks.  Fix a possible segfault in check_access().  Add symlink resolving
to check_access() resolving bug #31019.  Add 'hack' for unlink, as the fix
for bug #31019 cause access violations if we try to remove a symlink that is
not in protected path, but points to a protected path.  Fix a memory leak in
sandbox.c (sandbox_pids_file in main()).  Fix the realpath() calls in main()
(sandbox.c) being unchecked.  Fix the debug logname not having the pid in it
(pid_string was uninitialized).  General syntax cleanups.


Revision 34 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Mar 9 07:39:50 2005 UTC (9 years, 5 months ago) by ferringb
Original Path: trunk/sandbox.c
File length: 20848 byte(s)
Diff to previous 30 , to selected 84
happy output time.
missing new line.


Revision 30 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Mar 2 09:04:45 2005 UTC (9 years, 6 months ago) by azarah
Original Path: trunk/sandbox.c
File length: 20846 byte(s)
Diff to previous 2 , to selected 84
White space fixes.


Revision 2 - (view) (download) (as text) (annotate) - [select for diffs]
Added Fri Nov 19 22:03:42 2004 UTC (9 years, 9 months ago) by ferringb
Original Path: trunk/sandbox.c
File length: 21028 byte(s)
Diff to selected 84
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.

  Diffs between and
  Type of Diff should be a

Sticky Revision:

  ViewVC Help
Powered by ViewVC 1.1.20