/[path-sandbox]/trunk/ChangeLog.0
Gentoo

Diff of /trunk/ChangeLog.0

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 47 Revision 154
1# ChangeLog for Path Sandbox 1# ChangeLog for Path Sandbox
2# Copyright 1999-2004 Gentoo Foundation; Distributed under the GPL v2 2# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
3# $Header$ 3# $Header$
4
5 01 Aug 2005; Martin Schlemmer <azarah@gentoo.org> libsandbox.c:
6
7 Still do normal log if debugging is requested.
8
9 Add support for SANDBOX_VERBOSE (enabled by default). Adjust SANDBOX_DEBUG
10 to only enable if equal to "1" or "yes".
11
12 27 July 2005; Martin Schlemmer <azarah@gentoo.org> sandbox.c, sandbox.h,
13 sandbox_futils.c:
14
15 Do not resolve symlinks in PORTAGE_TMPDIR in sandbox .. we will handle that
16 in libsandbox .. bug #100309.
17
18 22 July 2005; Martin Schlemmer <azarah@gentoo.org> sandbox.h:
19
20 Print all logging to stderr, bug #90343, comment #15, by Zac Medico.
21
22* sandbox-1.2.11 (2005/07/14)
23
24 14 July 2005; Martin Schlemmer <azarah@gentoo.org> getcwd.c:
25 Fix getcwd, bug #98419.
26
27 08 July 2005; Martin Schlemmer <azarah@gentoo.org> sandbox.c, sandbox_futils.c,
28 libsandbox.c:
29 - Try to cleanup and make error handling/printing consistent.
30 - Remove old logs if present and conflicting with current.
31 - Fix compile error with previous change, and return rather then exit().
32
33 07 July 2005; Martin Schlemmer <azarah@gentoo.org> libsandbox.c, sandbox.c,
34 sandbox.h, sandbox_futils.c:
35 - Fix possible segfault in env init code.
36 - Major cleanup of sandbox_futils.c. Removed most of the functions as we now
37 write to /var/log/sandbox/, so in theory do not need all that.
38 - Redo the interface of the get_* functions so that we do not leak memory.
39 - Remove sandbox_dir and co - we are not using it anymore.
40 - Remove unused includes and variables.
41 - Only declare functions in sandbox_futils.c that are used in libsandbox.c when
42 OUTSIDE_LIBSANDBOX is not defined.
43 - Cleanup access/log printing. Make access printing honour NOCOLOR. Fix log
44 printing's last line not honouring NOCOLOR.
45
46 06 July 2005; Martin Schlemmer <azarah@gentoo.org> sandbox.h, sandbox_futils.c,
47 libsandbox.c:
48 - Change log dir to /var/log/sandbox/. Make sure the sandboxed process cannot
49 write to it.
50 - Clean up logging in libsandbox.c, and hopefully make it more consistant.
51 - Add check_prefixes() with major cleanup on check_access().
52 - Cleanup init_env_entries() and check_prefixes().
53
54 05 July 2005; Martin Schlemmer <azarah@gentoo.org> sandbox.c, sandbox.h,
55 sandbox_futils.c, libsandbox.c:
56 Remove unused 'pids file' code.
57
58* sandbox-1.2.10 (2005/07/03)
59
60 03 July 2005; Martin Schlemmer <azarah@gentoo.org> sandbox.c:
61 Add PREDICT items for nss-db, bug #92079. Patch from Robin Johnson.
62
63 17 June 2005; Martin Schlemmer <azarah@gentoo.org> sandbox.c:
64 General cleanups:
65 - Remove fooling around with exit codes - we error out on presence of a log
66 anyhow.
67 - Move get_sandbox_*_envvar() to sandbox_setup_environ(), as its more
68 appropriate there.
69
70 12 June 2005; Martin Schlemmer <azarah@gentoo.org> libsandbox.c:
71 Cleanup the fail_nametoolong stuff a bit more.
72
73 11 June 2005; Martin Schlemmer <azarah@gentoo.org> libsandbox.c:
74 Remove hopefully the last ld.so.preload bits we do not use anymore.
75
76 11 June 2005; Martin Schlemmer <azarah@gentoo.org> libsandbox.c:
77 Remove the unneeded canonicalize() calls in the wrappers - we do it anyhow
78 in check_syscall(). Should speed things up a bit (at least for the getcwd()
79 and long path name test it goes down to under a second, and not 10+ seconds
80 like before). Also warn if we skip checking due to the canonicalized path
81 being too long.
82
83 11 June 2005; Martin Schlemmer <azarah@gentoo.org> libsandbox.c:
84 More comment/readability cleanups.
85
86 10 June 2005; Martin Schlemmer <azarah@gentoo.org> canonicalize.c, getcwd.c,
87 sandbox_futils.c, libsandbox.c:
88 Some strncpy/strncat and other cleanups.
89
90* sandbox-1.2.9 (2005/06/09)
91
92 09 June 2005; Martin Schlemmer <azarah@gentoo.org> libsandbox.c:
93 Move symlink hack down a bit to try and minimize on the amount of lstat()
94 calls we do.
95
96 09 June 2005; Martin Schlemmer <azarah@gentoo.org> libsandbox.c, sandbox.c:
97 Add hack to allow writing to /proc/self/fd (or /dev/fd), bug #91516.
98
99 09 June 2005; Martin Schlemmer <azarah@gentoo.org> symbols.in, libsandbox.c:
100 Add wrapper for access() function, bug #85413.
101
102 09 June 2005; Martin Schlemmer <azarah@gentoo.org> getcwd.c:
103 Use generic getcwd() implementation from uclibc - should be more portable
104 and looks a bit cleaner.
105
106 09 June 2005; Martin Schlemmer <azarah@gentoo.org> getcwd.c, libsandbox.c:
107 Make sure our true_* pointers are initialized to NULL, and that we check for
108 all references that they are valid.
109
110 09 June 2005; Martin Schlemmer <azarah@gentoo.org> libsandbox.c:
111 Be default we will fail if the path name we try to canonicalize is too long.
112 This however could cause issues with some things (bug #94630 and #21766), so
113 if fail_nametoolong == 0, canonicalize() will return a null length string and
114 do not fail.
115
116 08 June 2005; Martin Schlemmer <azarah@gentoo.org> sandbox.c, sandbox_futils.c:
117 Do not abort if TMPDIR is not valid, but rather use '/tmp', bug #94360. Also
118 make sure we re-export the new TMPDIR environment variable.
119
120 08 June 2005; Martin Schlemmer <azarah@gentoo.org> libsandbox.c:
121 Fix incorrect free of non-malloc'd array, bug #92313 and #94020. Fix noted
122 by Marcus D. Hanwell <cryos@gentoo.org>.
123
124 08 June 2005; Martin Schlemmer <azarah@gentoo.org> sandbox.c:
125 Add /dev/console to write list, bug #38588.
126
127* sandbox-1.2.8 (2005/05/13)
128
129 13 May 2005; Martin Schlemmer <azarah@gentoo.org> libsandbox.c, sandbox.c,
130 sandbox.h, sandbox_futils.c:
131 General cleanups.
132
133 13 May 2005; Martin Schlemmer <azarah@gentoo.org> libsandbox.c, sandbox.c,
134 sandbox.h:
135 Various LD_PRELOAD cleanups. Do not unset LD_PRELOAD for parent.
136
137 13 May 2005; Martin Schlemmer <azarah@gentoo.org> libsandbox.c, sandbox.c,
138 sandbox.h, sandbox_futils.c:
139 Modify get_sandbox_pids_file(), get_sandbox_log() and get_sandbox_debug_log()
140 to use TMPDIR if present in environment.
141
142 13 May 2005; Martin Schlemmer <azarah@gentoo.org> sandbox.c:
143 Remove sandbox_log_file from main() as its no longer used.
144
145 13 May 2005; Martin Schlemmer <azarah@gentoo.org> sandbox.c, sandbox.h,
146 sandbox_futils.c:
147 Add get_sandbox_debug_log(), and use it (add behaviour similar to SANDBOX_LOG
148 if already exported when sandbox started). Fix get_sandbox_log() and new
149 get_sandbox_debug_log() to not use already exported environment variables if
150 they have '/' in them. Use snprintf()'s instead of strncpy()'s. More
151 SB_PATH_MAX fixes.
152
153* sandbox-1.2.7 (2005/05/12)
154
155 12 May 2005; Martin Schlemmer <azarah@gentoo.org> sandbox.c, sandbox.h,
156 sandbox_futils.c:
157 More path limit fixes. Declare SB_BUF_LEN global and use it where needed.
158
159 12 May 2005; Martin Schlemmer <azarah@gentoo.org> sandbox_futils.c:
160 Fix paths limited to 255 chars. Fix get_sandbox_dir() returning a string
161 with '(null)' in it if we did not call sandbox with absolute path.
162
163 12 May 2005; Martin Schlemmer <azarah@gentoo.org> sandbox.c:
164 Set SANDBOX_ON *before* doing the child's env stuff, else its not set
165 for the child.
166
167 12 May 2005; Martin Schlemmer <azarah@gentoo.org> sandbox.c:
168 Remove global preload_adaptable as it is no longer used.
169
170 12 May 2005; Martin Schlemmer <azarah@gentoo.org> sandbox.c:
171 Rewrite environment stuff to only be set when execve'ing the child process
172 to try and avoid issues like bug #91541 that causes sandbox to crash if
173 we set LD_PRELOAD sandbox side already.
174
175 11 May 2005; Martin Schlemmer <azarah@gentoo.org> sandbox.c:
176 Move print_sandbox_log() up to make things neater.
177
178 11 May 2005; Martin Schlemmer <azarah@gentoo.org> sandbox.c:
179 Remove load_preload_libs(), as its not used anymore.
180
181 11 May 2005; Martin Schlemmer <azarah@gentoo.org> sandbox.c, sandbox.h:
182 Remove NO_FORK stuff, as its not used, and 'strace -f' works just fine.
183
184 11 May 2005; Martin Schlemmer <azarah@gentoo.org> sandbox.c, sandbox.h:
185 Remove USE_SYSTEM_SHELL stuff, as it is not secure, and not in use.
186
187 11 May 2005; Martin Schlemmer <azarah@gentoo.org> sandbox.c, sandbox.h:
188 Remove ld.so.preload crap - we are not going to use it again.
189
190 10 May 2005; Martin Schlemmer <azarah@gentoo.org> sandbox_futils.c:
191 Fix typo in code that checks if we got valid group information, causing a
192 segmentation fault, bug #91637.
193
194* sandbox-1.2.6 (2005/05/10)
195
196 10 May 2005; Martin Schlemmer <azarah@gentoo.org> sandbox.c:
197 Do not use LD_PRELOAD if it contains libtsocks.so, as it breaks sandbox
198 for some odd reason, bug #91541.
199
200 09 May 2005; Martin Schlemmer <azarah@gentoo.org> sandbox.c:
201 Fix typo (sizeof -> strlen).
202
203 08 May 2005; Brian Harring <ferringb@gentoo.org> libsandbox.c:
204 rewrote the sbcontext caching code so it accounts for env changes since lib
205 initialization.
206
207 05 May 2005; Martin Schlemmer <azarah@gentoo.org> configure.in, libctest.c:
208 We create libctest.c via configure, so no need to keep it around. Do some
209 cleanup related to libctest.c and libctest during configure.
210
211 04 May 2005; Martin Schlemmer <azarah@gentoo.org> libsandbox.c:
212 Add rename support of symlinks pointing to protected files/directories.
213
214* sandbox-1.2.5 (2005/05/04)
215
216 04 May 2005; Martin Schlemmer <azarah@gentoo.org> libsandbox.c, sandbox.c,
217 sandbox.bashrc:
218 Do not reset already set LD_PRELOAD when starting sandbox. If LD_PRELOAD is
219 already set, init of the env vars fails for some reason, so do this later on,
220 and do not warn (bug #91431).
221
222 03 May 2005; Martin Schlemmer <azarah@gentoo.org> sandbox.c, sandbox.h,
223 sandbox.bashrc:
224 Fixup sandbox and sandbox.bashrc to call bash with the proper .bashrc.
225
226* sandbox-1.2.4 (2005/05/03)
227
228 03 May 2005; Martin Schlemmer <azarah@gentoo.org> libsandbox.c:
229 Do not init the env entries with each call, as it creates too many calls to
230 lstat, etc. Should speedup things a bit, bug #91040.
231
232 03 May 2005; Martin Schlemmer <azarah@gentoo.org> sandbox.c:
233 Add /dev/pty to default write list. Noticed by Morfic.
234
235 02 May 2005; Mike Frysinger <vapier@gentoo.org> configure.in, localdecls.h,
236 sandbox.h:
237 uClibc doesn't support dlvsym() so add a configure check to make sure it doesn't
238 exist. Also update localdecls.h so BROKEN_RTLD_NEXT isn't defined in uClibc.
239
240* sandbox-1.2.3 (2005/04/29)
241
242 29 Apr 2005; Martin Schlemmer <azarah@gentoo.org> configure.in:
243 Do not check for (*&#$(* CXX or F77.
244
245 29 Apr 2005; Martin Schlemmer <azarah@gentoo.org> libsandbox.c:
246 Do not append '/' to pathname in filter_path() if it already ends with it.
247
248 28 Apr 2005; Mike Frysinger <vapier@gentoo.org> Makefile.am, configure.in:
249 With az's help, clean up autotools to work with cross-compiling.
250
251* sandbox-1.2.2 (2005/04/28)
4 252
5 28 Apr 2005; Martin Schlemmer <azarah@gentoo.org> libsandbox.c: 253 28 Apr 2005; Martin Schlemmer <azarah@gentoo.org> libsandbox.c:
6 Only check for /dev/{null,zero} for unlink hack, else ricers using /dev/shm 254 Only check for /dev/{null,zero} for unlink hack, else ricers using /dev/shm
7 have issues; bug #90592. 255 have issues; bug #90592.
8 256
9* sandbox-1.2.1 257* sandbox-1.2.1 (2005/04/23)
10 258
11 23 Apr 2005; Martin Schlemmer <azarah@gentoo.org> Makefile.am, canonicalize.c, 259 23 Apr 2005; Martin Schlemmer <azarah@gentoo.org> Makefile.am, canonicalize.c,
12 getcwd.c, libsandbox.c, localdecls.h, sandbox.h, sandbox_futils.c: 260 getcwd.c, libsandbox.c, localdecls.h, sandbox.h, sandbox_futils.c:
13 Make sure all functions used in libsandbox.c is declared static. Define 261 Make sure all functions used in libsandbox.c is declared static. Define
14 SB_STATIC in localdecls.h for this. Include sandbox_futils.c rather than 262 SB_STATIC in localdecls.h for this. Include sandbox_futils.c rather than
15 linking with its object. Hopefully this will fix bug #90153. 263 linking with its object. Hopefully this will fix bug #90153.
16 264
17* sandbox-1.2 265* sandbox-1.2 (2005/04/23)
18 266
19 22 Mar 2005; Martin Schlemmer <azarah@gentoo.org> libsandbox.c: 267 22 Mar 2005; Martin Schlemmer <azarah@gentoo.org> libsandbox.c:
20 Allow lchown a symlink in write-allowed path pointing to write-denied 268 Allow lchown a symlink in write-allowed path pointing to write-denied
21 target. 269 target.
22 270

Legend:
Removed from v.47  
changed lines
  Added in v.154

  ViewVC Help
Powered by ViewVC 1.1.20