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

Commit cbb975dc authored by T.J. Mercier's avatar T.J. Mercier Committed by Gerrit Code Review
Browse files

Merge "Do not set FLAT_BINDER_FLAG_* on object of type BINDER_TYPE_FD"

parents 3d7ca6d9 ca0c2cb7
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1475,7 +1475,7 @@ status_t Parcel::writeFileDescriptor(int fd, bool takeOwnership) {
#ifdef BINDER_WITH_KERNEL_IPC
#ifdef BINDER_WITH_KERNEL_IPC
    flat_binder_object obj;
    flat_binder_object obj;
    obj.hdr.type = BINDER_TYPE_FD;
    obj.hdr.type = BINDER_TYPE_FD;
    obj.flags = 0x7f | FLAT_BINDER_FLAG_ACCEPTS_FDS;
    obj.flags = 0;
    obj.binder = 0; /* Don't pass uninitialized stack data to a remote process */
    obj.binder = 0; /* Don't pass uninitialized stack data to a remote process */
    obj.handle = fd;
    obj.handle = fd;
    obj.cookie = takeOwnership ? 1 : 0;
    obj.cookie = takeOwnership ? 1 : 0;