Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ee7d15d5 authored by Nicolas Geoffray's avatar Nicolas Geoffray Committed by Automerger Merge Worker
Browse files

Merge "Drop the O_NOFOLLOW flag." am: 0e41945e

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1679497

Change-Id: I6cb244f2f67945e4ac8d89fcdd33d35129c5ad13
parents 3d7a4355 0e41945e
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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,