summaryrefslogtreecommitdiffhomepage
path: root/test/util
diff options
context:
space:
mode:
authorMichael Pratt <mpratt@google.com>2019-10-01 11:29:35 -0700
committergVisor bot <gvisor-bot@google.com>2019-10-01 11:30:36 -0700
commit53cc72da90f5b5a76b024b47fe4e38a81b495eb4 (patch)
treef6e771a4d5d91e8e4e9b40bf85698797eb767a7c /test/util
parent7a234f736fe0e91824b50631e408bd07b2c0ed31 (diff)
Honor X bit on extra anon pages in PT_LOAD segments
Linux changed this behavior in 16e72e9b30986ee15f17fbb68189ca842c32af58 (v4.11). Previously, extra pages were always mapped RW. Now, those pages will be executable if the segment specified PF_X. They still must be writeable. PiperOrigin-RevId: 272256280
Diffstat (limited to 'test/util')
-rw-r--r--test/util/proc_util.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/util/proc_util.cc b/test/util/proc_util.cc
index 75b24da37..34d636ba9 100644
--- a/test/util/proc_util.cc
+++ b/test/util/proc_util.cc
@@ -88,7 +88,7 @@ PosixErrorOr<std::vector<ProcMapsEntry>> ParseProcMaps(
std::vector<ProcMapsEntry> entries;
auto lines = absl::StrSplit(contents, '\n', absl::SkipEmpty());
for (const auto& l : lines) {
- std::cout << "line: " << l;
+ std::cout << "line: " << l << std::endl;
ASSIGN_OR_RETURN_ERRNO(auto entry, ParseProcMapsLine(l));
entries.push_back(entry);
}