diff options
author | markus@chromium.org <markus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-24 02:04:13 +0000 |
---|---|---|
committer | markus@chromium.org <markus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-24 02:04:13 +0000 |
commit | 25d353862ce267a5746acac9e604ce6980f88660 (patch) | |
tree | 9c74d34c9efa944328bb37dd862ae05dbed7cefa /sandbox/linux/seccomp/sandbox_impl.h | |
parent | 1ddc110cf3e4f6027c5ecd1fe1f52cefde79d9dd (diff) | |
download | chromium_src-25d353862ce267a5746acac9e604ce6980f88660.zip chromium_src-25d353862ce267a5746acac9e604ce6980f88660.tar.gz chromium_src-25d353862ce267a5746acac9e604ce6980f88660.tar.bz2 |
Treat calls to lstat() and lstat64() the same as calls to stat(). In practise,
this means the calls will still be denied. But we now return a correct return
code.
But more importantly, this change brings the source code in line with the code
of the stand-alone opensource sandbox. Wherever possible, we try to keep both
code bases identical.
TEST=none
BUG=none
Review URL: http://codereview.chromium.org/657040
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39837 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sandbox/linux/seccomp/sandbox_impl.h')
-rw-r--r-- | sandbox/linux/seccomp/sandbox_impl.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sandbox/linux/seccomp/sandbox_impl.h b/sandbox/linux/seccomp/sandbox_impl.h index 2a7366f..79621d6 100644 --- a/sandbox/linux/seccomp/sandbox_impl.h +++ b/sandbox/linux/seccomp/sandbox_impl.h @@ -112,6 +112,12 @@ class Sandbox { STATIC int sandbox_ipc(unsigned, int, int, int, void*, long) asm("playground$sandbox_ipc"); #endif + STATIC int sandbox_lstat(const char* path, void* buf) + asm("playground$sandbox_lstat"); + #if defined(__NR_lstat64) + STATIC int sandbox_lstat64(const char *path, void* b) + asm("playground$sandbox_lstat64"); + #endif STATIC int sandbox_madvise(void*, size_t, int) asm("playground$sandbox_madvise"); STATIC void *sandbox_mmap(void* start, size_t length, int prot, int flags, |