diff options
author | agl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-13 17:27:44 +0000 |
---|---|---|
committer | agl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-13 17:27:44 +0000 |
commit | b20b3336c867ae445bbd1d81c00769892273a361 (patch) | |
tree | e801236068f2bbf73048870020b173b00cd3347e /sandbox/linux | |
parent | e1c41ac26e14a8c4a0c40d07a242da14cad57c1d (diff) | |
download | chromium_src-b20b3336c867ae445bbd1d81c00769892273a361.zip chromium_src-b20b3336c867ae445bbd1d81c00769892273a361.tar.gz chromium_src-b20b3336c867ae445bbd1d81c00769892273a361.tar.bz2 |
Linux: fix seccomp sandbox for GCC 4.4
http://codereview.chromium.org/164484
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23318 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sandbox/linux')
-rw-r--r-- | sandbox/linux/seccomp/maps.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sandbox/linux/seccomp/maps.cc b/sandbox/linux/seccomp/maps.cc index 606b65d..68bea96 100644 --- a/sandbox/linux/seccomp/maps.cc +++ b/sandbox/linux/seccomp/maps.cc @@ -103,8 +103,10 @@ Maps::Maps(const std::string& maps_file) : // obtained from /proc/self/maps, we instead fork() a child process and // use mremap() to uncover the obscured data. int tmp_fds[4]; - pipe(tmp_fds); - pipe(tmp_fds + 2); + if (pipe(tmp_fds)) + abort(); + if (pipe(tmp_fds + 2)) + abort(); pid_ = fork(); if (pid_ >= 0) { // Set up read and write file descriptors for exchanging data |