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

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

  ViewVC Help
Powered by ViewVC 1.1.20