| 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 | 10 May 2005; Martin Schlemmer <azarah@gentoo.org> sandbox.c: |
|
|
6 | Do not use LD_PRELOAD if it contains libtsocks.so, as it breaks sandbox |
|
|
7 | for some odd reason, bug #91541. |
|
|
8 | |
|
|
9 | 09 May 2005; Martin Schlemmer <azarah@gentoo.org> sandbox.c: |
|
|
10 | Fix typo (sizeof -> strlen). |
|
|
11 | |
|
|
12 | 08 May 2005; Brian Harring <ferringb@gentoo.org> libsandbox.c: |
|
|
13 | rewrote the sbcontext caching code so it accounts for env changes since lib |
|
|
14 | initialization. |
|
|
15 | |
|
|
16 | 05 May 2005; Martin Schlemmer <azarah@gentoo.org> configure.in, libctest.c: |
|
|
17 | We create libctest.c via configure, so no need to keep it around. Do some |
|
|
18 | cleanup related to libctest.c and libctest during configure. |
|
|
19 | |
|
|
20 | 04 May 2005; Martin Schlemmer <azarah@gentoo.org> libsandbox.c: |
|
|
21 | Add rename support of symlinks pointing to protected files/directories. |
|
|
22 | |
|
|
23 | * sandbox-1.2.5 (2005/05/04) |
|
|
24 | |
|
|
25 | 04 May 2005; Martin Schlemmer <azarah@gentoo.org> libsandbox.c, sandbox.c, |
|
|
26 | sandbox.bashrc: |
|
|
27 | Do not reset already set LD_PRELOAD when starting sandbox. If LD_PRELOAD is |
|
|
28 | already set, init of the env vars fails for some reason, so do this later on, |
|
|
29 | and do not warn (bug #91431). |
|
|
30 | |
|
|
31 | 03 May 2005; Martin Schlemmer <azarah@gentoo.org> sandbox.c, sandbox.h, |
|
|
32 | sandbox.bashrc: |
|
|
33 | Fixup sandbox and sandbox.bashrc to call bash with the proper .bashrc. |
|
|
34 | |
|
|
35 | * sandbox-1.2.4 (2005/05/03) |
|
|
36 | |
|
|
37 | 03 May 2005; Martin Schlemmer <azarah@gentoo.org> libsandbox.c: |
|
|
38 | Do not init the env entries with each call, as it creates too many calls to |
|
|
39 | lstat, etc. Should speedup things a bit, bug #91040. |
|
|
40 | |
|
|
41 | 03 May 2005; Martin Schlemmer <azarah@gentoo.org> sandbox.c: |
|
|
42 | Add /dev/pty to default write list. Noticed by Morfic. |
|
|
43 | |
|
|
44 | 02 May 2005; Mike Frysinger <vapier@gentoo.org> configure.in, localdecls.h, |
|
|
45 | sandbox.h: |
|
|
46 | uClibc doesn't support dlvsym() so add a configure check to make sure it doesn't |
|
|
47 | exist. Also update localdecls.h so BROKEN_RTLD_NEXT isn't defined in uClibc. |
|
|
48 | |
|
|
49 | * sandbox-1.2.3 (2005/04/29) |
|
|
50 | |
|
|
51 | 29 Apr 2005; Martin Schlemmer <azarah@gentoo.org> configure.in: |
|
|
52 | Do not check for (*&#$(* CXX or F77. |
|
|
53 | |
|
|
54 | 29 Apr 2005; Martin Schlemmer <azarah@gentoo.org> libsandbox.c: |
|
|
55 | Do not append '/' to pathname in filter_path() if it already ends with it. |
|
|
56 | |
|
|
57 | 28 Apr 2005; Mike Frysinger <vapier@gentoo.org> Makefile.am, configure.in: |
|
|
58 | With az's help, clean up autotools to work with cross-compiling. |
|
|
59 | |
|
|
60 | * sandbox-1.2.2 (2005/04/28) |
|
|
61 | |
|
|
62 | 28 Apr 2005; Martin Schlemmer <azarah@gentoo.org> libsandbox.c: |
|
|
63 | Only check for /dev/{null,zero} for unlink hack, else ricers using /dev/shm |
|
|
64 | have issues; bug #90592. |
|
|
65 | |
|
|
66 | * sandbox-1.2.1 (2005/04/23) |
|
|
67 | |
|
|
68 | 23 Apr 2005; Martin Schlemmer <azarah@gentoo.org> Makefile.am, canonicalize.c, |
|
|
69 | getcwd.c, libsandbox.c, localdecls.h, sandbox.h, sandbox_futils.c: |
|
|
70 | Make sure all functions used in libsandbox.c is declared static. Define |
|
|
71 | SB_STATIC in localdecls.h for this. Include sandbox_futils.c rather than |
|
|
72 | linking with its object. Hopefully this will fix bug #90153. |
|
|
73 | |
|
|
74 | * sandbox-1.2 (2005/04/23) |
|
|
75 | |
|
|
76 | 22 Mar 2005; Martin Schlemmer <azarah@gentoo.org> libsandbox.c: |
|
|
77 | Allow lchown a symlink in write-allowed path pointing to write-denied |
|
|
78 | target. |
|
|
79 | |
|
|
80 | 21 Mar 2005; Marius Mauch <genone@gentoo.org> libsandbox.c: |
|
|
81 | Also show resolved symlink names in the log. |
|
|
82 | |
|
|
83 | 14 Mar 2005; Martin Schlemmer <azarah@gentoo.org> Makefile.am, libsandbox.c: |
|
|
84 | Seems -nostdlib was the problem with the constructor/destructor - remove it |
|
|
85 | from Makefile.am, and change the constructor/destructor names again. |
|
|
86 | |
|
|
87 | 14 Mar 2005; Martin Schlemmer <azarah@gentoo.org> libsandbox.c: |
|
|
88 | Also rename the _init() and _fini() declarations. |
|
|
89 | |
|
|
90 | 14 Mar 2005; Martin Schlemmer <azarah@gentoo.org> libsandbox.c, sandbox.c: |
|
|
91 | Fixup the constructor/destructor function names again (they should be _init() |
|
|
92 | and _fini() it seems, and not being called caused sandbox_lib_path to be |
|
|
93 | unset, and thus breaking the execve() wrapper's LD_PRELOAD protection). |
|
|
94 | Add both the path in given SANDBOX_x variable, as well as its symlink |
|
|
95 | resolved path in init_env_entries(). Modify filter_path() to be able to |
|
|
96 | resolve paths without resolving symlinks, as well as to be able to resolve |
|
|
97 | symlinks. Fix a possible segfault in check_access(). Add symlink resolving |
|
|
98 | to check_access() resolving bug #31019. Add 'hack' for unlink, as the fix |
|
|
99 | for bug #31019 cause access violations if we try to remove a symlink that is |
|
|
100 | not in protected path, but points to a protected path. Fix a memory leak in |
|
|
101 | sandbox.c (sandbox_pids_file in main()). Fix the realpath() calls in main() |
|
|
102 | (sandbox.c) being unchecked. Fix the debug logname not having the pid in it |
|
|
103 | (pid_string was uninitialized). General syntax cleanups. |
|
|
104 | |
|
|
105 | 09 Mar 2005; Brian Harring <ferringb@gentoo.org> sandbox.c: Fixed the |
|
|
106 | infamous "pids file is not a regular file" w/out newline bug. |
|
|
107 | |
|
|
108 | 09 Mar 2005; Brian Harring <ferringb@gentoo.org> Makefile.am, configure.in: |
|
|
109 | Correct libc_version path detection, since it was screwing up if libdir != |
|
|
110 | "/lib/". |
|
|
111 | |
|
|
112 | 02 Mar 2005; Martin Schlemmer <azarah@gentoo.org> libsandbox.c: |
|
|
113 | Hack to make sure sandboxed process cannot remove a device node, bug #79836. |
|
|
114 | |
|
|
115 | 02 Mar 2005; Martin Schlemmer <azarah@gentoo.org> Makefile.am: |
|
|
116 | Fix symbols.in not added to dist. |
|
|
117 | |
|
|
118 | 02 Mar 2005; Martin Schlemmer <azarah@gentoo.org> Makefile.am, canonicalize.c, |
|
|
119 | getcwd.c, libsandbox.c, sandbox.c, sandbox.h, sandbox_futils.c: |
|
|
120 | White space fixes. |
|
|
121 | |
|
|
122 | 02 Mar 2005; Martin Schlemmer <azarah@gentoo.org> Makefile.am, canonicalize.c, |
|
|
123 | configure.in, getcwd.c, libsandbox.c, symbols.in: |
|
|
124 | Fix inverse test logic in canonicalize.c, use a strncpy. Fix gcc warning in |
|
|
125 | getcwd.c. Add symbols.in and logic to Makefile.am to generate symbol versions |
|
|
126 | for glibc and other libc's that use this. Update libsandbox.c to use these |
|
|
127 | symbol versions if available. Fix exec wrapper to re-export LD_PRELOAD if the |
|
|
128 | process unset it. |
|
|
129 | |
| 5 | 01 May 2005; Brian Harring <ferringb@gentoo.org> libsandbox.c: |
130 | 01 Mar 2005; Brian Harring <ferringb@gentoo.org> libsandbox.c: |
| 6 | killed off _init and _fini in favor of |
131 | killed off _init and _fini in favor of |
| 7 | void __attribute__ ((constructor)) init_func and |
132 | void __attribute__ ((constructor)) init_func and |
| 8 | void __attribute__ ((destructor)) closing_func. _(init|func) were deprecated. |
133 | void __attribute__ ((destructor)) closing_func. _(init|func) were deprecated. |
| 9 | |
134 | |
| 10 | 06 Dec 2004; Brian Harring <ferringb@gentoo.org> Makefile.am, libsandbox.c, |
135 | 06 Dec 2004; Brian Harring <ferringb@gentoo.org> Makefile.am, libsandbox.c, |