diff options
author | Brian Carlstrom <bdc@google.com> | 2013-07-12 20:22:23 -0700 |
---|---|---|
committer | Brian Carlstrom <bdc@google.com> | 2013-07-12 20:45:54 -0700 |
commit | f1d3455064792ac1c486a4a9c24279a37b4af473 (patch) | |
tree | ac3020b447d6929def1f3322b5165bef6a66a4cd /runtime/oat_file.h | |
parent | 7940e44f4517de5e2634a7e07d58d0fb26160513 (diff) | |
download | art-f1d3455064792ac1c486a4a9c24279a37b4af473.tar.gz art-f1d3455064792ac1c486a4a9c24279a37b4af473.tar.bz2 art-f1d3455064792ac1c486a4a9c24279a37b4af473.zip |
Do not mark pages executable unnecessarily to play nice with selinux
Change-Id: Ief4a5da38ac7c2cf7bf6f7a640cb63c5e8ed03bd
Diffstat (limited to 'runtime/oat_file.h')
-rw-r--r-- | runtime/oat_file.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/runtime/oat_file.h b/runtime/oat_file.h index 0bf79a9c03..e3fd0025f0 100644 --- a/runtime/oat_file.h +++ b/runtime/oat_file.h @@ -44,7 +44,8 @@ class OatFile { // optionally be used to request where the file should be loaded. static OatFile* Open(const std::string& filename, const std::string& location, - byte* requested_base); + byte* requested_base, + bool executable); // Open an oat file from an already opened File. // Does not use dlopen underneath so cannot be used for runtime use @@ -215,11 +216,12 @@ class OatFile { static OatFile* OpenElfFile(File* file, const std::string& location, byte* requested_base, - bool writable); + bool writable, + bool executable); explicit OatFile(const std::string& filename); bool Dlopen(const std::string& elf_filename, byte* requested_base); - bool ElfFileOpen(File* file, byte* requested_base, bool writable); + bool ElfFileOpen(File* file, byte* requested_base, bool writable, bool executable); bool Setup(); const byte* Begin() const; |