/[gentoo-src]/sandbox/sandbox.c
Gentoo

Log of /sandbox/sandbox.c

Parent Directory Parent Directory | Revision Log Revision Log


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

Revision 1.25 - (view) (download) (as text) (annotate) - [select for diffs]
Fri May 13 15:23:28 2005 UTC (9 years, 7 months ago) by azarah
Branch: MAIN
CVS Tags: HEAD, sandbox_1_2_8
Changes since 1.24: +167 -147 lines
Diff to previous 1.24
General cleanups.


Revision 1.24 - (view) (download) (as text) (annotate) - [select for diffs]
Fri May 13 14:18:05 2005 UTC (9 years, 7 months ago) by azarah
Branch: MAIN
Changes since 1.23: +29 -11 lines
Diff to previous 1.23
Various LD_PRELOAD cleanups.  Do not unset LD_PRELOAD for parent.


Revision 1.23 - (view) (download) (as text) (annotate) - [select for diffs]
Fri May 13 13:30:51 2005 UTC (9 years, 7 months ago) by azarah
Branch: MAIN
Changes since 1.22: +32 -29 lines
Diff to previous 1.22
Modify get_sandbox_pids_file(), get_sandbox_log() and get_sandbox_debug_log()
to use TMPDIR if present in environment.


Revision 1.22 - (view) (download) (as text) (annotate) - [select for diffs]
Fri May 13 12:53:15 2005 UTC (9 years, 7 months ago) by azarah
Branch: MAIN
Changes since 1.21: +1 -3 lines
Diff to previous 1.21
Remove sandbox_log_file from main() as its no longer used.


Revision 1.21 - (view) (download) (as text) (annotate) - [select for diffs]
Fri May 13 12:52:10 2005 UTC (9 years, 7 months ago) by azarah
Branch: MAIN
Changes since 1.20: +13 -26 lines
Diff to previous 1.20
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 1.20 - (view) (download) (as text) (annotate) - [select for diffs]
Thu May 12 01:08:20 2005 UTC (9 years, 7 months ago) by azarah
Branch: MAIN
Changes since 1.19: +9 -1 lines
Diff to previous 1.19
Add comments about memory we do not free at the moment.


Revision 1.19 - (view) (download) (as text) (annotate) - [select for diffs]
Thu May 12 00:07:21 2005 UTC (9 years, 7 months ago) by azarah
Branch: MAIN
CVS Tags: sandbox_1_2_7
Changes since 1.18: +15 -17 lines
Diff to previous 1.18
More path limit fixes.  Declare SB_BUF_LEN global and use it where needed.


Revision 1.18 - (view) (download) (as text) (annotate) - [select for diffs]
Wed May 11 23:35:14 2005 UTC (9 years, 7 months ago) by azarah
Branch: MAIN
Changes since 1.17: +8 -6 lines
Diff to previous 1.17
Set SANDBOX_ON *before* doing the child's env stuff, else its not set
for the child.


Revision 1.17 - (view) (download) (as text) (annotate) - [select for diffs]
Wed May 11 23:28:42 2005 UTC (9 years, 7 months ago) by azarah
Branch: MAIN
Changes since 1.16: +3 -4 lines
Diff to previous 1.16
Remove global preload_adaptable as it is no longer used.


Revision 1.16 - (view) (download) (as text) (annotate) - [select for diffs]
Wed May 11 23:23:07 2005 UTC (9 years, 7 months ago) by azarah
Branch: MAIN
Changes since 1.15: +155 -95 lines
Diff to previous 1.15
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 1.15 - (view) (download) (as text) (annotate) - [select for diffs]
Wed May 11 15:52:08 2005 UTC (9 years, 7 months ago) by azarah
Branch: MAIN
Changes since 1.14: +52 -52 lines
Diff to previous 1.14
Move print_sandbox_log() up to make things neater.


Revision 1.14 - (view) (download) (as text) (annotate) - [select for diffs]
Wed May 11 15:48:18 2005 UTC (9 years, 7 months ago) by azarah
Branch: MAIN
Changes since 1.13: +1 -58 lines
Diff to previous 1.13
Remove load_preload_libs(), as its not used anymore.


Revision 1.13 - (view) (download) (as text) (annotate) - [select for diffs]
Wed May 11 15:42:45 2005 UTC (9 years, 7 months ago) by azarah
Branch: MAIN
Changes since 1.12: +2 -5 lines
Diff to previous 1.12
Remove NO_FORK stuff, as its not used, and 'strace -f' works just fine.


Revision 1.12 - (view) (download) (as text) (annotate) - [select for diffs]
Wed May 11 15:40:51 2005 UTC (9 years, 7 months ago) by azarah
Branch: MAIN
Changes since 1.11: +5 -6 lines
Diff to previous 1.11
Remove USE_SYSTEM_SHELL stuff, as it is not secure, and not in use (continued).


Revision 1.11 - (view) (download) (as text) (annotate) - [select for diffs]
Wed May 11 15:39:13 2005 UTC (9 years, 7 months ago) by azarah
Branch: MAIN
Changes since 1.10: +1 -36 lines
Diff to previous 1.10
Remove USE_SYSTEM_SHELL stuff, as it is not secure, and not in use.


Revision 1.10 - (view) (download) (as text) (annotate) - [select for diffs]
Wed May 11 15:36:36 2005 UTC (9 years, 7 months ago) by azarah
Branch: MAIN
Changes since 1.9: +1 -130 lines
Diff to previous 1.9
Remove ld.so.preload crap - we are not going to use it again.


Revision 1.9 - (view) (download) (as text) (annotate) - [select for diffs]
Tue May 10 07:08:21 2005 UTC (9 years, 7 months ago) by azarah
Branch: MAIN
CVS Tags: sandbox_1_2_6
Changes since 1.8: +6 -2 lines
Diff to previous 1.8
Do not use LD_PRELOAD if it contains libtsocks.so, as it breaks sandbox
for some odd reason, bug #91541.


Revision 1.8 - (view) (download) (as text) (annotate) - [select for diffs]
Mon May 9 18:00:45 2005 UTC (9 years, 7 months ago) by azarah
Branch: MAIN
Changes since 1.7: +2 -2 lines
Diff to previous 1.7
Fix typo (sizeof -> strlen).


Revision 1.7 - (view) (download) (as text) (annotate) - [select for diffs]
Wed May 4 14:46:50 2005 UTC (9 years, 7 months ago) by azarah
Branch: MAIN
CVS Tags: sandbox_1_2_5
Changes since 1.6: +16 -2 lines
Diff to previous 1.6
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 1.6 - (view) (download) (as text) (annotate) - [select for diffs]
Tue May 3 21:43:50 2005 UTC (9 years, 7 months ago) by azarah
Branch: MAIN
Changes since 1.5: +2 -1 lines
Diff to previous 1.5
Fixup sandbox and sandbox.bashrc to call bash with the proper .bashrc.


Revision 1.5 - (view) (download) (as text) (annotate) - [select for diffs]
Tue May 3 09:59:26 2005 UTC (9 years, 7 months ago) by azarah
Branch: MAIN
CVS Tags: sandbox_1_2_4
Changes since 1.4: +2 -2 lines
Diff to previous 1.4
Add /dev/pty to default write list.  Noticed by Morfic.


Revision 1.4 - (view) (download) (as text) (annotate) - [select for diffs]
Sun Mar 13 23:23:00 2005 UTC (9 years, 9 months ago) by azarah
Branch: MAIN
CVS Tags: sandbox_1_2, sandbox_1_2_1, sandbox_1_2_2, sandbox_1_2_3
Changes since 1.3: +18 -15 lines
Diff to previous 1.3
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 1.3 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Mar 9 07:39:50 2005 UTC (9 years, 9 months ago) by ferringb
Branch: MAIN
Changes since 1.2: +2 -2 lines
Diff to previous 1.2
happy output time.
missing new line.


Revision 1.2 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Mar 2 09:04:45 2005 UTC (9 years, 9 months ago) by azarah
Branch: MAIN
Changes since 1.1: +72 -95 lines
Diff to previous 1.1
White space fixes.


Revision 1.1.1.1 - (view) (download) (as text) (annotate) - [select for diffs] (vendor branch)
Fri Nov 19 22:03:48 2004 UTC (10 years, 1 month ago) by ferringb
CVS Tags: start
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 , to next main 1.25
shift sandbox out of gentoo-src/portage to it's own directory, w/ appropriate autotooling.


Revision 1.1 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Nov 19 22:03:48 2004 UTC (10 years, 1 month ago) by ferringb
Branch: MAIN
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, select a symbolic revision name using the selection box, or choose 'Use Text Field' and enter a numeric revision.

  Diffs between and
  Type of Diff should be a

Sort log by:

Sticky Tag:

  ViewVC Help
Powered by ViewVC 1.1.20