--- a/ipc_remote.cc +++ b/ipc_remote.cc @@ -941,8 +941,8 @@ int RootIPCRemote::OpenFDPassSock() { } typedef struct { - struct cmsghdr header; int fd; + struct cmsghdr header; } __attribute__((packed)) cmsg_fd; int RootIPCRemote::SendDescriptor(int in_fd) {