Log of /trunk/libsandbox/libsandbox.c
Parent Directory
|
Revision Log
Revision
342 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu Jul 13 16:16:30 2006 UTC
(6 years, 10 months ago)
by
azarah
File length: 27970 byte(s)
Diff to
previous 331
Punt old copyright stuff, as nearly everything was rewrited. If something is was not and is pointed out, I will rectify it.
Revision
331 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Wed Jul 12 16:53:51 2006 UTC
(6 years, 10 months ago)
by
azarah
File length: 28161 byte(s)
Diff to
previous 329
Make sure we do not segfault with invalid mode passed to fopen() and co. Add note about allowing different errno to be returned.
Revision
309 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Sun Jul 9 19:13:57 2006 UTC
(6 years, 10 months ago)
by
azarah
Original Path:
trunk/src/libsandbox.c
File length: 46161 byte(s)
Diff to
previous 308
As we are using a symbol map for libsandbox, its no longer needed
to have all the internal functions static, and thus we can break
things out a bit and make the source layout more sane. Start by
moving librcutil to libsbutil, and adding all the defines and
helper functions needed by both libsandbox and sandbox.
Revision
216 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Mon Dec 5 09:28:34 2005 UTC
(7 years, 5 months ago)
by
azarah
Original Path:
trunk/src/libsandbox.c
File length: 38329 byte(s)
Diff to
previous 211
Rename sandbox_futils.c to sandbox_utils.c. Add gstrndup() and gbasename()
to sandbox_utils.c. Add check for glibc, and fixup things to not need glibc
only extensions if not needed for versioned symbols.
Revision
189 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu Dec 1 09:46:17 2005 UTC
(7 years, 5 months ago)
by
azarah
Original Path:
trunk/src/libsandbox.c
File length: 37833 byte(s)
Diff to
previous 183
Remove the SB_STATIC and including of getcwd.c, etc voodoo, as we new use a
symbol map, and all non-exported symbols are local. Cleanup getcwd.c, as
the generic getcwd for older 2.4 kernels do not work properly anyhow, and
just makes things slower. Some other warning fixes.
Revision
166 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Mon Sep 12 06:50:53 2005 UTC
(7 years, 8 months ago)
by
azarah
Original Path:
trunk/libsandbox.c
File length: 37343 byte(s)
Diff to
previous 164
Make libsb_fini() do cleanup a bit more complete just in case we get another
uClibc 'call preloaded library fini before that of app' issue ... probably
will not help much, but we try.
Revision
119 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Sat Jun 11 10:01:11 2005 UTC
(7 years, 11 months ago)
by
azarah
Original Path:
trunk/libsandbox.c
File length: 41103 byte(s)
Diff to
previous 118
Remove the unneeded canonicalize() calls in the wrappers - we do it anyhow
in check_syscall(). Should speed things up a bit (at least for the getcwd()
and long path name test it goes down to under a second, and not 10+ seconds
like before). Also warn if we skip checking due to the canonicalized path
being too long.
Revision
109 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu Jun 9 14:32:28 2005 UTC
(7 years, 11 months ago)
by
azarah
Original Path:
trunk/libsandbox.c
File length: 40686 byte(s)
Diff to
previous 107
Be default we will fail if the path name we try to canonicalize is too long.
This however could cause issues with some things (bug #94630 and #21766), so
if fail_nametoolong == 0, canonicalize() will return a null length string and
do not fail.
Revision
71 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Wed May 4 14:46:50 2005 UTC
(8 years ago)
by
azarah
Original Path:
trunk/libsandbox.c
File length: 38082 byte(s)
Diff to
previous 66
Do not reset already set LD_PRELOAD when starting sandbox. If LD_PRELOAD is
already set, init of the env vars fails for some reason, so do this later on,
and do not warn (bug #91431).
Revision
43 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Sat Apr 23 20:44:15 2005 UTC
(8 years, 1 month ago)
by
azarah
Original Path:
trunk/libsandbox.c
File length: 37594 byte(s)
Diff to
previous 40
Make sure all functions used in libsandbox.c is declared static. Define
SB_STATIC in localdecls.h for this. Include sandbox_futils.c rather than
linking with its object. Hopefully this will fix bug #90153.
Revision
35 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Sun Mar 13 23:23:00 2005 UTC
(8 years, 2 months ago)
by
azarah
Original Path:
trunk/libsandbox.c
File length: 37500 byte(s)
Diff to
previous 32
Fixup the constructor/destructor function names again (they should be _init()
and _fini() it seems, and not being called caused sandbox_lib_path to be
unset, and thus breaking the execve() wrapper's LD_PRELOAD protection).
Add both the path in given SANDBOX_x variable, as well as its symlink
resolved path in init_env_entries(). Modify filter_path() to be able to
resolve paths without resolving symlinks, as well as to be able to resolve
symlinks. Fix a possible segfault in check_access(). Add symlink resolving
to check_access() resolving bug #31019. Add 'hack' for unlink, as the fix
for bug #31019 cause access violations if we try to remove a symlink that is
not in protected path, but points to a protected path. Fix a memory leak in
sandbox.c (sandbox_pids_file in main()). Fix the realpath() calls in main()
(sandbox.c) being unchecked. Fix the debug logname not having the pid in it
(pid_string was uninitialized). General syntax cleanups.
Revision
29 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Wed Mar 2 09:01:36 2005 UTC
(8 years, 2 months ago)
by
azarah
Original Path:
trunk/libsandbox.c
File length: 33215 byte(s)
Diff to
previous 28
Fix inverse test logic in canonicalize.c, use a strncpy. Fix gcc warning in
getcwd.c. Add symbols.in and logic to Makefile.am to generate symbol versions
for glibc and other libc's that use this. Update libsandbox.c to use these
symbol versions if available. Fix exec wrapper to re-export LD_PRELOAD if the
process unset it.
Revision
28 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Wed Mar 2 05:48:12 2005 UTC
(8 years, 2 months ago)
by
ferringb
Original Path:
trunk/libsandbox.c
File length: 32959 byte(s)
Diff to
previous 26
killed off _init and _fini in favor of
void __attribute__ ((constructor)) init_func and
void __attribute__ ((destructor)) closing_func. _(init|func) were deprecated.
This form allows you to request diffs between any two revisions of this file.
For each of the two "sides" of the diff,
enter a numeric revision.
| Sticky Revision: |
|