With authfs_service, we no longer need compsvc_worker.rs and authfs.rs
for the task setup. Now, for each request, compsvc can just request
FDs from authfs_service then pass to the task.
Also, fixed the integer type of remote FD to match ParcelFileDescriptor.
Bug: 194717985
Test: atest ComposHostTestCases
Change-Id: I8c0be106243778ac20e7cd96a778db4e34aef051
Note that authfs is added to the "direct" apex image temporarily (instead
of microdroid) to unblock integration test within Android. Once binder
across the VM boundary is supported and authfs is updated, it should be
moved to microdroid.
Bug: 182570135
Test: TARGET_BUILD_APPS=com.android.virt m
Test: Use in integration test
Change-Id: I1fac1090ab33cc1a082fe594aa07c9f811576b55
Added SPDX-license-identifier-Apache-2.0 to:
authfs/aidl/Android.bp
authfs/fd_server/Android.bp
Bug: 68860345
Bug: 151177513
Bug: 151953481
Test: m all
Exempt-From-Owner-Approval: janitorial work
Change-Id: I279592fe835eb8f0b424e6a774a97e927d69f16d
fd_server provides a binder service (currently local binder since remote
binder is not ready). The server starts with FDs specified in the
command line flags (and supposedly opened FDs passed from the parent
process).
fd_server is supposed to run in Android to provide backing file to
authfs.
Test: # Start the server to serve the file. Read from the client.
adb shell 'exec
9</system/bin/sh
8</data/local/tmp/input.4m
7</data/local/tmp/input.4m.merkle_dump
6</data/local/tmp/input.4m.fsv_sig
fd_server --ro-fds 9 --ro-fds 8:7:6'`
Bug: 171280169
Change-Id: Ide68f23d7177b726ffd48ef960276bd8cf5e5846