Extract CountOpenFds and HasOpenDirectory from credentials.cc
commit7349c25da82d8692a91693b8cec95b9ddc5b163d
authorhidehiko <hidehiko@chromium.org>
Wed, 26 Nov 2014 20:30:01 +0000 (26 12:30 -0800)
committerCommit bot <commit-bot@chromium.org>
Wed, 26 Nov 2014 20:30:22 +0000 (26 20:30 +0000)
tree7de40da7d19655d29a6c3f8cfbd53897d39f37b9
parent7e74701078be07f67d6f7245801da4a405345be0
Extract CountOpenFds and HasOpenDirectory from credentials.cc

This is just a refactoring to prepare enabling layer-one sandbox
on nacl_helper_nonsfi.
Remaining methods are not used, and these are actually uncompilable
because PNaCl toolchain for Non-SFI does not support capability.

BUG=358465
TEST=trybots.

Review URL: https://codereview.chromium.org/759583002

Cr-Commit-Position: refs/heads/master@{#305867}
components/nacl/loader/sandbox_linux/nacl_sandbox_linux.cc
content/common/sandbox_linux/sandbox_linux.cc
sandbox/linux/BUILD.gn
sandbox/linux/sandbox_linux.gypi
sandbox/linux/sandbox_linux_test_sources.gypi
sandbox/linux/services/credentials.cc
sandbox/linux/services/credentials.h
sandbox/linux/services/credentials_unittest.cc
sandbox/linux/services/proc_util.cc [new file with mode: 0644]
sandbox/linux/services/proc_util.h [new file with mode: 0644]
sandbox/linux/services/proc_util_unittest.cc [new file with mode: 0644]