summaryrefslogtreecommitdiff
path: root/libcutils/socket_local_server_unix.cpp
diff options
context:
space:
mode:
authorMark Salyzyn <salyzyn@google.com>2016-10-27 07:45:34 -0700
committerMark Salyzyn <salyzyn@google.com>2016-11-03 13:34:26 -0700
commit62767fe29f8aaf62470781a3cf419ba11187d178 (patch)
tree42ca647c67feecbda7a82c60ec58c5e5c69a20b3 /libcutils/socket_local_server_unix.cpp
parent0b034d9d7b1af4e2f608ddf2dc2a0e08773e69ac (diff)
init: service file keyword
Solve one more issue where privilege is required to open a file and we do not want to grant such to the service. This is the service side of the picture, android_get_control_file() in libcutils is the client. The file's descriptor is placed into the environment as "ANDROID_FILE_<path>". For socket and files where non-alpha and non-numeric characters in the <name/path> are replaced with _. There was an accompanying change in android_get_control_socket() to match in commit 'libcutils: add android_get_control_socket() test' Add a gTest unit test for this that tests create_file and android_get_control_file(). Test: gTest init_tests --gtest_filter=util.create_file Bug: 32450474 Change-Id: I96eb970c707db6d51a9885873329ba1cb1f23140
Diffstat (limited to 'libcutils/socket_local_server_unix.cpp')
0 files changed, 0 insertions, 0 deletions