OSDN Git Service

Provide --android-ipc-socket-suffix.
authorIan Coolidge <icoolidge@google.com>
Fri, 31 Jul 2015 03:51:47 +0000 (20:51 -0700)
committerIan Coolidge <icoolidge@google.com>
Fri, 31 Jul 2015 20:25:39 +0000 (13:25 -0700)
commitc6760d82357f46943406c579f5b1c291a20afdeb
treea0a9b3c2c2f173f009267832fc3d434394a29b6f
parentfe65fb7978bc9257a36d1e5eae59c5f412dbdb49
Provide --android-ipc-socket-suffix.

This allows Android init to create a socket
for the service, and have consolidated access control.

Android init creates the socket and passes the FD through
an environment variable, so we must use OSI to decode it.

Bug: 22807533
Change-Id: I7ec0a14b8f3b44277ce99faad68623d6691f7863
service/daemon.cpp
service/ipc/ipc_handler_unix.cpp
service/settings.cpp
service/settings.h
service/switches.h
service/test/settings_unittest.cpp