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

Unified Diff: native_client_sdk/src/libraries/nacl_io/devfs/dev_fs.cc

Issue 547053002: [NaCl SDK] nacl_io: Remove Node::Access method. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@http_fs_root
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: native_client_sdk/src/libraries/nacl_io/devfs/dev_fs.cc
diff --git a/native_client_sdk/src/libraries/nacl_io/devfs/dev_fs.cc b/native_client_sdk/src/libraries/nacl_io/devfs/dev_fs.cc
index 6dd764241948aaf37c80a2d62305f44d91e86e64..f29e411794e62933050705ea3d43a178f958033a 100644
--- a/native_client_sdk/src/libraries/nacl_io/devfs/dev_fs.cc
+++ b/native_client_sdk/src/libraries/nacl_io/devfs/dev_fs.cc
@@ -240,21 +240,6 @@ Error FsNode::VIoctl(int request, va_list args) {
} // namespace
-Error DevFs::Access(const Path& path, int a_mode) {
- ScopedNode node;
- int error = root_->FindChild(path.Join(), &node);
- if (error)
- return error;
-
- // Don't allow execute access.
- if (a_mode & X_OK) {
- LOG_TRACE("Executing devfs nodes is not allowed.");
- return EACCES;
- }
-
- return 0;
-}
-
Error DevFs::Open(const Path& path, int open_flags, ScopedNode* out_node) {
out_node->reset(NULL);
int error;
« no previous file with comments | « native_client_sdk/src/libraries/nacl_io/devfs/dev_fs.h ('k') | native_client_sdk/src/libraries/nacl_io/filesystem.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698