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

Unified Diff: src/trusted/service_runtime/nacl_syscall_common.h

Issue 1211173002: add restricted filesystem access to sel_ldr Base URL: https://chromium.googlesource.com/native_client/src/native_client.git@master
Patch Set: add restricted filesystem access to sel_ldr Created 5 years, 6 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
« no previous file with comments | « documentation/filesystem_access.txt ('k') | src/trusted/service_runtime/nacl_syscall_common.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/trusted/service_runtime/nacl_syscall_common.h
diff --git a/src/trusted/service_runtime/nacl_syscall_common.h b/src/trusted/service_runtime/nacl_syscall_common.h
index aacec8df69cdf3872699f71a43bd744c201448d0..ffb603c0fa77f97086d52791d49cd2fa123601b0 100644
--- a/src/trusted/service_runtime/nacl_syscall_common.h
+++ b/src/trusted/service_runtime/nacl_syscall_common.h
@@ -45,6 +45,24 @@ extern int NaClAclBypassChecks;
void NaClInsecurelyBypassAllAclChecks(void);
+/*
+ * NaClRootDir will not be NULL when a root dir has been provided and NULL
+ * otherwise. NaClRootDir also never ends with a trailing slash.
+ * The upshot of the last two properties is that when NaClRootDir is set to
+ * "/" the value will be "" with length 0.
+ */
+extern char *NaClRootDir;
+extern size_t NaClRootDirLen;
+
+/* bool */
+int NaClMountRootDir(char *root);
+
+/* bool */
+int NaClFileAccessEnabled(void);
+
+/* bool */
+int NaClSanitizePathLexically(char *path);
+
/* bool */
int NaClSysCommonAddrRangeContainsExecutablePages(struct NaClApp *nap,
uintptr_t usraddr,
« no previous file with comments | « documentation/filesystem_access.txt ('k') | src/trusted/service_runtime/nacl_syscall_common.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698