diff options
| author | 2021-04-23 12:13:35 +0000 | |
|---|---|---|
| committer | 2021-04-23 12:13:35 +0000 | |
| commit | 7c53c538ac68cfc3dfa64a5da77948f8e7054461 (patch) | |
| tree | 15fc051edfa339bc67c6afa07e296ee469d426e5 | |
| parent | 25adb03255729219cd05603d8bad40f181bb0b4e (diff) | |
| parent | ee7d15d542fef8107638b820ee25884f287c1aed (diff) | |
Merge "Drop the O_NOFOLLOW flag." am: 0e41945e3a am: ee7d15d542
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1679497
Change-Id: Ie059d5363f2b1c0727aee64043a5149e2e679097
| -rw-r--r-- | services/core/java/com/android/server/PinnerService.java | 4 |
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, |