Commit graph

3999 commits

Author SHA1 Message Date
Satoshi Niwa
51f1281625 Revert "ARC++ swap for AppFuseUtil" am: 58d4044082 am: 198657d332 am: ae08e4a790
Change-Id: I939f253f69418827272e895ec7a544f3b340bcb5
2020-05-13 14:27:20 +00:00
TreeHugger Robot
08b5b882d6 Merge "Mount storage Android/data and Android/obb as tmpfs in app namespace" into rvc-dev am: dbc0da396a
Change-Id: Ib19a8ab5fc09b138b2dae8b1db2003127d277f10
2020-05-13 14:27:17 +00:00
TreeHugger Robot
dbc0da396a Merge "Mount storage Android/data and Android/obb as tmpfs in app namespace" into rvc-dev 2020-05-13 14:17:04 +00:00
Satoshi Niwa
b04d7fa4c0 Revert "ARC++ swap for AppFuseUtil" am: 58d4044082 am: c0cc8d0322
Change-Id: If5e9e03c77bd08588cfbd2dd6a7b4bdebb163895
2020-05-13 14:16:57 +00:00
Satoshi Niwa
eeaa263f2f Revert "ARC++ swap for AppFuseUtil" am: 58d4044082 am: 198657d332
Change-Id: I6490832022117fa575263cd5ec52488b9e17ea1b
2020-05-13 14:16:54 +00:00
Satoshi Niwa
ae08e4a790 Revert "ARC++ swap for AppFuseUtil" am: 58d4044082 am: 198657d332
Change-Id: I000153739d24da0f5d3f467c7b45eed342a29a84
2020-05-13 14:16:48 +00:00
Satoshi Niwa
c0cc8d0322 Revert "ARC++ swap for AppFuseUtil" am: 58d4044082
Change-Id: I82771efbb0ab25327fca3ffac9f77c3e126bf989
2020-05-13 14:01:23 +00:00
Satoshi Niwa
198657d332 Revert "ARC++ swap for AppFuseUtil" am: 58d4044082
Change-Id: I46e6d976324d956b1ad173ba8ed97de760999451
2020-05-13 14:00:54 +00:00
Satoshi Niwa
58d4044082 Revert "ARC++ swap for AppFuseUtil"
This reverts commit ab7c958cc5.

Reason for revert: ARC is migrating to ARCVM on R, which doesn't use AppFuse any more.

Bug: 110379912
Test: m
Change-Id: Icc827c59530274421e4c94789d96fd3d287e591e
2020-05-12 14:43:42 +00:00
Treehugger Robot
c3a41584d1 Merge "Revert "ARC++ swap for AppFuseUtil"" am: b6e2c14ed1 am: 4cf8ddeed2 am: bcbd085191 am: d35c5afedc
Change-Id: I4a40f83f559951e6137e3cdf00d707d749c2a3e9
2020-05-12 13:25:58 +00:00
Treehugger Robot
d35c5afedc Merge "Revert "ARC++ swap for AppFuseUtil"" am: b6e2c14ed1 am: 4cf8ddeed2 am: bcbd085191
Change-Id: Ibf0fe3a3d1295c5f32edc235b0047807ea8a086a
2020-05-12 13:14:27 +00:00
Treehugger Robot
bcbd085191 Merge "Revert "ARC++ swap for AppFuseUtil"" am: b6e2c14ed1 am: 4cf8ddeed2
Change-Id: I8d91ba35477d526ff886ed32c7c1357134dfca4d
2020-05-12 13:00:16 +00:00
Treehugger Robot
4cf8ddeed2 Merge "Revert "ARC++ swap for AppFuseUtil"" am: b6e2c14ed1
Change-Id: I3545346238ddaaec8c1a947f00aaeadd12dfd63b
2020-05-12 12:46:32 +00:00
Treehugger Robot
b6e2c14ed1 Merge "Revert "ARC++ swap for AppFuseUtil"" 2020-05-12 12:30:16 +00:00
Satoshi Niwa
601e7bd4e2 Revert "ARC++ swap for AppFuseUtil"
This reverts commit dcbd4fcad2.

Reason for revert: ARC is migrating to ARCVM on R, which doesn't use AppFuse any more.

Change-Id: Ifd0bf92a79c0ff25d782bea44dd593f9502f1959
2020-05-08 04:50:34 +00:00
Ricky Wai
e96b34fe82 Mount storage Android/data and Android/obb as tmpfs in app namespace
So Android/data and Android/obb won't be accessing fuse anymore,
and apps should not see other packages as well as it's sandboxed
the tmpfs.

Bug: 155462341
Test: atest AppDataIsolationTests pass after feature flag is on
Change-Id: I5658440772e669c1235d318f708a3d336523754f
2020-05-07 16:01:33 +01:00
Treehugger Robot
aef3e4b83c Merge "Acknowledge the 'nofail' fs_mgr flag and skip the expected failure." am: e8acc83d25 am: 3a149b6735 am: 93dcfef249 am: 045bb64f83
Change-Id: I529f9556fec0c71a7d8fd22263a4d51d2e835950
2020-05-06 18:14:56 +00:00
Treehugger Robot
045bb64f83 Merge "Acknowledge the 'nofail' fs_mgr flag and skip the expected failure." am: e8acc83d25 am: 3a149b6735 am: 93dcfef249
Change-Id: I452ba7025001f1e2e6bb741679c37a81a86e251e
2020-05-06 17:54:35 +00:00
Treehugger Robot
93dcfef249 Merge "Acknowledge the 'nofail' fs_mgr flag and skip the expected failure." am: e8acc83d25 am: 3a149b6735
Change-Id: Icb1ef75616ebc3bfe3f1e71a93ca25b42cb348ae
2020-05-06 17:39:50 +00:00
Treehugger Robot
3a149b6735 Merge "Acknowledge the 'nofail' fs_mgr flag and skip the expected failure." am: e8acc83d25
Change-Id: I1fb2dbb0de98e3e2deadce25183aa37f2bc7c4ba
2020-05-06 17:22:38 +00:00
Treehugger Robot
e8acc83d25 Merge "Acknowledge the 'nofail' fs_mgr flag and skip the expected failure." 2020-05-06 17:02:43 +00:00
P.Adarsh Reddy
167c2a658a Acknowledge the 'nofail' fs_mgr flag and skip the expected failure.
fs_mgr supports 'nofail' flag, which is used if we do not want to
error-out incase the mounting/setup fails for a partition tagged with
nofail flag in fstab.

Recently added code in vold misses this handling, i.e. it aborts even
for a nofail partition upon encountering an expected failure.

Test: Add a non-existing logical partition fstab entry with 'nofail'
      flag. Init's first stage mount acks this and doesn't crash.
      Vold aborts (as it doesn't handle it), and device doesn't boot.
      With this change, device boots up.

Change-Id: I2b1904a9c648c31bcc05b2e7e77480db236ff66e
2020-05-06 16:45:23 +00:00
Martijn Coenen
68aa8841f5 Introduce postMount() VolumeBase helper. am: 5ec8658abc am: 82fddb072e am: 0a7a594e77
Change-Id: If543c1ac5d6e5c4610bbcb0de6b2c1233999e6ec
2020-05-06 10:01:32 +00:00
Martijn Coenen
95a6252a8e Introduce postMount() VolumeBase helper. am: 5ec8658abc am: 2e05806850 am: e55c8f6ae7
Change-Id: I0f6ac321b03d95c6bbf2cf04d648e5c9b670c94a
2020-05-06 09:59:58 +00:00
Martijn Coenen
136530cc2a Introduce postMount() VolumeBase helper. am: 5ec8658abc am: 2e05806850 am: 2669d5085b
Change-Id: I84494864f53d67c1ab2912064750f0f8a7236109
2020-05-06 09:58:29 +00:00
Martijn Coenen
0a7a594e77 Introduce postMount() VolumeBase helper. am: 5ec8658abc am: 82fddb072e
Change-Id: I0053b5c76b2a69d96a27c374820e5a4f575b2915
2020-05-06 09:45:34 +00:00
Martijn Coenen
2669d5085b Introduce postMount() VolumeBase helper. am: 5ec8658abc am: 2e05806850
Change-Id: I3e6ccf13cbb55bba7ae569ea5f54836ff173b167
2020-05-06 09:44:41 +00:00
Martijn Coenen
e55c8f6ae7 Introduce postMount() VolumeBase helper. am: 5ec8658abc am: 2e05806850
Change-Id: I8fa1780662fd27adbb5729fdc89b06d8db545df5
2020-05-06 09:44:18 +00:00
Martijn Coenen
82fddb072e Introduce postMount() VolumeBase helper. am: 5ec8658abc
Change-Id: Ia2bd24b550bc9b9d3c942f4bbbd08322cb26141f
2020-05-06 09:30:46 +00:00
Martijn Coenen
2e05806850 Introduce postMount() VolumeBase helper. am: 5ec8658abc
Change-Id: Id8ce7dbaabafef41121dbdf9f6169f1377ae1174
2020-05-06 09:29:56 +00:00
Martijn Coenen
5ec8658abc Introduce postMount() VolumeBase helper.
When we're mounting a private volume, we create stacked emulated volumes
on top of it. Due to the ordering there, we would broadcast the emulated
volumes being created *before* the "mounted" status update. This in turn
could cause us to try and mount these emulated volumes before the
underlying private volume is really mounted. This is problematic in
particular on devices that support a filesystem keyring, where we need
to do some additional setup before the devices can be used.

While we could modify StorageManagerService to delay the mount, a safer
fix at this stage of the release is to just fix the ordering of these
events. To achieve that, add a simple postMount() helper, that is called
after a succesful mount. This allows us to setup the volume properly
before trying to mount any stacked volumes.

Bug: 151079464
Test: atest AdoptableHostTest
Change-Id: I2cc4113d4d71d89aa629bb9c0fa9be441355c079
2020-05-04 15:09:32 +02:00
Treehugger Robot
31e3401cda Merge "vold: fix missing has.adoptable" am: 9e2053e185 am: d4e75c211d am: 01b59992b1 am: b9390a00aa
Change-Id: I0cac82a23ac1735f66cfee3bb51af28fca072f7f
2020-04-23 23:18:25 +00:00
Treehugger Robot
b9390a00aa Merge "vold: fix missing has.adoptable" am: 9e2053e185 am: d4e75c211d am: 01b59992b1
Change-Id: I912bf88877f892450eb0389c1c2679180c0b5181
2020-04-23 23:04:42 +00:00
Treehugger Robot
01b59992b1 Merge "vold: fix missing has.adoptable" am: 9e2053e185 am: d4e75c211d
Change-Id: I7734099f9c1cd88c9577542684402efb8f095107
2020-04-23 22:52:12 +00:00
Yurii Zubrytskyi
40a9ebb56c [incfs] Use new IncFs_ReleaseControlFds() instead of duping am: fc7b6697b4 am: 12ffb988c2 am: 61dad64ea0 am: 6a66e46ae1
Change-Id: Ic9a0ebd6e6d6f79d67f21e7d58074f0dbf597f2a
2020-04-23 22:44:41 +00:00
Treehugger Robot
d4e75c211d Merge "vold: fix missing has.adoptable" am: 9e2053e185
Change-Id: I3f87b104678fb57c627165fcd5faea846e25d343
2020-04-23 22:36:56 +00:00
Yurii Zubrytskyi
c359c736d0 [incfs] Use new IncFs_ReleaseControlFds() instead of duping am: fc7b6697b4 am: 20d7fc9160 am: 6e3874688f
Change-Id: I441fc82fed1b2d0872f8ca774d76047011f4304b
2020-04-23 22:26:53 +00:00
Yurii Zubrytskyi
6a66e46ae1 [incfs] Use new IncFs_ReleaseControlFds() instead of duping am: fc7b6697b4 am: 12ffb988c2 am: 61dad64ea0
Change-Id: I2d53bb6387f3779dc61a5501a3a7d9d65484eb61
2020-04-23 22:26:39 +00:00
Yurii Zubrytskyi
2b89a9ba48 [incfs] Use new IncFs_ReleaseControlFds() instead of duping am: fc7b6697b4 am: 12ffb988c2 am: 51f8a4565c
Change-Id: Idf559a7e1e5a42e46b6bd39eeca747ba888e6bef
2020-04-23 22:26:28 +00:00
Treehugger Robot
9e2053e185 Merge "vold: fix missing has.adoptable" 2020-04-23 22:15:38 +00:00
Yurii Zubrytskyi
61dad64ea0 [incfs] Use new IncFs_ReleaseControlFds() instead of duping am: fc7b6697b4 am: 12ffb988c2
Change-Id: Ie9a92124bdcc16dc854390d57dcbb22723b1f0c8
2020-04-23 22:10:49 +00:00
Yurii Zubrytskyi
6e3874688f [incfs] Use new IncFs_ReleaseControlFds() instead of duping am: fc7b6697b4 am: 20d7fc9160
Change-Id: Idb74a724da0b82ea6d8a32f50adffed54c62c763
2020-04-23 22:10:48 +00:00
Yurii Zubrytskyi
51f8a4565c [incfs] Use new IncFs_ReleaseControlFds() instead of duping am: fc7b6697b4 am: 12ffb988c2
Change-Id: I38befec68c23961e91199cda680b06ef077058a9
2020-04-23 22:10:25 +00:00
Yurii Zubrytskyi
12ffb988c2 [incfs] Use new IncFs_ReleaseControlFds() instead of duping am: fc7b6697b4
Change-Id: Ieff848e641fe40d7a199e460f327ef8aba041dae
2020-04-23 21:56:23 +00:00
Yurii Zubrytskyi
20d7fc9160 [incfs] Use new IncFs_ReleaseControlFds() instead of duping am: fc7b6697b4
Change-Id: I808d898afe636a206518db413ff1abf3cc6d0e6d
2020-04-23 21:56:14 +00:00
Jaegeuk Kim
4ea573aca7 vold: fix missing has.adoptable
This patch fixes missing entry in the below commit.

Fixes: c52f6724ed ("vold: clean up configuration set")
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
Change-Id: Ia39a427d4747b29a7af42633f34daab63204bbf9
2020-04-23 13:43:12 -07:00
Yurii Zubrytskyi
fc7b6697b4 [incfs] Use new IncFs_ReleaseControlFds() instead of duping
Vold needs to pass / accept IncFs control via Binder, so it
neeeds to get and put its internal FDs in and out. Using the new
release() function it works without extra fd duping

Bug: 153704006
Test: builds & boots
Change-Id: I64bc5b1ca9f2c69e34c3a860ed3edbe58bd9ea29
2020-04-22 23:26:32 -07:00
Treehugger Robot
db8b69fab1 [automerger skipped] Merge "Introduce ro.crypto.uses_fs_ioc_add_encryption_key property" am: 83c78a2bb1 am: ebcd59d19b -s ours am: bcbddda15a -s ours am: 8fbc7edbcb -s ours
am skip reason: Change-Id I562df49deffdccdb2cfd657130fc05b24d40a6a6 with SHA-1 78f806198f is in history

Change-Id: Id0cefeded43081c9ed94c8317463b72e2e3762b6
2020-04-21 16:47:32 +00:00
Treehugger Robot
8fbc7edbcb [automerger skipped] Merge "Introduce ro.crypto.uses_fs_ioc_add_encryption_key property" am: 83c78a2bb1 am: ebcd59d19b -s ours am: bcbddda15a -s ours
am skip reason: Change-Id I562df49deffdccdb2cfd657130fc05b24d40a6a6 with SHA-1 78f806198f is in history

Change-Id: I8cdb012f5976e3c964e16dff9da9541831442734
2020-04-21 16:34:03 +00:00
Treehugger Robot
bcbddda15a [automerger skipped] Merge "Introduce ro.crypto.uses_fs_ioc_add_encryption_key property" am: 83c78a2bb1 am: ebcd59d19b -s ours
am skip reason: Change-Id I562df49deffdccdb2cfd657130fc05b24d40a6a6 with SHA-1 78f806198f is in history

Change-Id: Ib183a53d8b49427ddf243d22db5df1f4b2b9815e
2020-04-21 16:20:32 +00:00