Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(152)

Issue 7634024: Add an ELF loader that can load and run an executable in the sandbox (Closed)

Created:
9 years, 4 months ago by Mark Seaborn
Modified:
9 years, 1 month ago
Reviewers:
Markus (顧孟勤)
CC:
chromium-reviews
Visibility:
Public.

Description

Add an ELF loader that can load and run an executable in the sandbox This can load both statically-linked executables and ld.so (the dynamic linker). These have to be pre-patched to do syscalls via "int $0" - I will add a tool for doing this patching in another change. The ELF loader itself also runs with sandboxing enabled. Currently the loader is dynamically linked against glibc, which will probably cause problems when another copy of libc gets loaded into the process, so in the long term we will want to statically link the loader. BUG=http://code.google.com/p/seccompsandbox/issues/detail?id=13 TEST=to be added in a later change Committed: http://code.google.com/p/seccompsandbox/source/detail?r=171

Patch Set 1 #

Total comments: 19

Patch Set 2 : Fixes + review changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+223 lines, -1 line) Patch
A elf_loader.cc View 1 1 chunk +215 lines, -0 lines 0 comments Download
M makefile View 2 chunks +8 lines, -1 line 0 comments Download

Messages

Total messages: 4 (0 generated)
Mark Seaborn
9 years, 4 months ago (2011-08-12 16:38:50 UTC) #1
Markus (顧孟勤)
http://codereview.chromium.org/7634024/diff/1/elf_loader.cc File elf_loader.cc (right): http://codereview.chromium.org/7634024/diff/1/elf_loader.cc#newcode24 elf_loader.cc:24: # error "Unsupported target platform" I keep making this ...
9 years, 4 months ago (2011-08-15 22:05:23 UTC) #2
Mark Seaborn
I'm returning to this change after a break. :-) I've redone a chunk of it ...
9 years, 1 month ago (2011-11-10 01:29:19 UTC) #3
Markus (顧孟勤)
9 years, 1 month ago (2011-11-14 23:48:27 UTC) #4
LGTM

Thanks!

Powered by Google App Engine
This is Rietveld 408576698