Commit Graph

6 Commits

Author SHA1 Message Date
Andrew Walbran 8316a62c06 Merge "set_requesting_sid is now on IBinderInternal." 2021-03-19 16:10:45 +00:00
Victor Hsieh 60acfd310c authfs: Remote file editor over binder
The remote editor allows to read/write from/to a remote file. This
change:
 - Adds new binder API `writeFile`.
 - Update fd_server to serve a read/writable fd. Read operation is done
   through the existing read API when applicable.
 - Adds `RemoteFileEditor` as a binder client for both read and write.

Bug: 171279640
Test: adb shell exec 9<>/data/local/tmp/output fd_server --rw-fds 9
Test: with changes in fusefs.rs, saw file changed correctly (md5sum)

Change-Id: I78ef198ee8a3a0f2d99717dc0c00fccde757f3de
2021-03-18 11:57:21 -07:00
Andrew Walbran bb49b447c8 set_requesting_sid is now on IBinderInternal.
Bug: 181869875
Test: mm
Change-Id: I37cccab4c891db312c93c74ec7313def47e94d82
2021-03-16 14:04:31 +00:00
Victor Hsieh 573c64926e Add authfs and fd_server to com.android.virt apex
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
2021-03-12 13:40:25 -08:00
Bob Badour 606dfaa56f [LSC] Add LOCAL_LICENSE_KINDS to packages/modules/Virtualization
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
2021-03-01 00:25:57 -08:00
Victor Hsieh 42cc776daf authfs: fd_server to expose local FD via binder interface
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
2021-02-25 09:37:47 -08:00