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

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

  ViewVC Help
Powered by ViewVC 1.1.20