summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Geoffray <ngeoffray@google.com>2021-04-23 11:29:01 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2021-04-23 11:29:01 +0000
commit0e41945e3aa639a1b0b3387313f7a7fb4eaba1ce (patch)
treefde8cd7c470d2832ec2f17620da3610e3e429cf7
parent373a27036b44b245b97272df333d65f937fa7949 (diff)
parent202b58f1194a94a478eeb2d98669616035237492 (diff)
Merge "Drop the O_NOFOLLOW flag."
-rw-r--r--services/core/java/com/android/server/PinnerService.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/services/core/java/com/android/server/PinnerService.java b/services/core/java/com/android/server/PinnerService.java
index 1241b77798ff..53af88e68468 100644
--- a/services/core/java/com/android/server/PinnerService.java
+++ b/services/core/java/com/android/server/PinnerService.java
@@ -848,9 +848,7 @@ public final class PinnerService extends SystemService {
int mapSize = 0;
try {
- int openFlags = (OsConstants.O_RDONLY |
- OsConstants.O_CLOEXEC |
- OsConstants.O_NOFOLLOW);
+ int openFlags = (OsConstants.O_RDONLY | OsConstants.O_CLOEXEC);
fd = Os.open(fileToPin, openFlags, 0);
mapSize = (int) Math.min(Os.fstat(fd).st_size, Integer.MAX_VALUE);
address = Os.mmap(0, mapSize,