summaryrefslogtreecommitdiffstats
path: root/ipc/file_descriptor_set_posix.h
diff options
context:
space:
mode:
authoragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-10 21:39:04 +0000
committeragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-10 21:39:04 +0000
commitaac449e7154720b895ff1e7f3497c2ce95ae1a5a (patch)
tree1964554316fe4b54cd0efa6ba471dd61467bfe39 /ipc/file_descriptor_set_posix.h
parentdc78796d35a53f758b2b6b729cf8a18034783d13 (diff)
downloadchromium_src-aac449e7154720b895ff1e7f3497c2ce95ae1a5a.zip
chromium_src-aac449e7154720b895ff1e7f3497c2ce95ae1a5a.tar.gz
chromium_src-aac449e7154720b895ff1e7f3497c2ce95ae1a5a.tar.bz2
POSIX: make sure that we never pass directory descriptors into the sandbox.
BUG=43304 http://codereview.chromium.org/2733011/show git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49446 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ipc/file_descriptor_set_posix.h')
-rw-r--r--ipc/file_descriptor_set_posix.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/ipc/file_descriptor_set_posix.h b/ipc/file_descriptor_set_posix.h
index 7653eb6..fcb5061 100644
--- a/ipc/file_descriptor_set_posix.h
+++ b/ipc/file_descriptor_set_posix.h
@@ -74,6 +74,9 @@ class FileDescriptorSet : public base::RefCountedThreadSafe<FileDescriptorSet> {
// GetDescriptors. It marks all the descriptors as consumed and closes those
// which are auto-close.
void CommitAll();
+ // Returns true if any contained file descriptors appear to be handles to a
+ // directory.
+ bool ContainsDirectoryDescriptor() const;
// ---------------------------------------------------------------------------