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

Diff of /trunk/ChangeLog.0

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

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

Legend:
Removed from v.28  
changed lines
  Added in v.157

  ViewVC Help
Powered by ViewVC 1.1.20