Narayan Kamath
ea243a3015
Unmount emulated filesystems before killing the fuse process.
...
Avoid ENOTCONN for file system operations.
bug: 26645585
bug: 26070583
Change-Id: I19b00db37ef7ba85a2cae16c7c4204826653f559
9 years ago
Paul Crowley
a042cb5761
Don't fail on unlock if we're not even emulating FBE
...
As a precaution, we do the work of emulating an unlock even on devices
that aren't emulating FBE. However, we don't care if it fails, so
don't fail the calling command in that instance.
Bug: 26713622
Change-Id: I8c5fb4b9a130335ecbb9b8ea6367f1c59835c0f1
9 years ago
Paul Crowley
285956fe11
Rework FBE crypto to match the N way of doing things
...
Major rework and refactor of FBE code to load the keys at the right
time and in a natural way. The old code was aimed at our goals for M,
with patches on top, and didn't quite work.
Bug: 22358539
Change-Id: I9bf7a0a86ee3f2abf0edbd5966f93efac2474c2c
9 years ago
Jeff Sharkey
7a9dd95cbc
Offer to enforce "locked" state using SELinux.
...
Bug: 26466827
Change-Id: Id5f05298c2cb5f3cf288df37ddf0a196ca49949b
9 years ago
Daichi Hirono
b025f3efc0
Merge "Add allow_other mount option for appfuse."
9 years ago
Paul Lawrence
b0f4a229e5
Merge "cryptfs: Skip to encrtypt unused blocks into a block group which uninitialize block bitmap ." am: 1ae498e0d4
...
am: 9b5db9bcbe
* commit '9b5db9bcbe333b677ca18d2c1c398c8751cd0fd2':
cryptfs: Skip to encrtypt unused blocks into a block group which uninitialize block bitmap .
9 years ago
Paul Crowley
8bb8fcfb4f
Use android-base logging not cutils in secdiscard
...
Much nicer C++ style logging, but the main reason is to clean up
AutoCloseFD.h so I don't have to use cutils to use it.
Change-Id: I7a7f227508418046eecce6c89f813bd8854f448a
9 years ago
Paul Lawrence
9b5db9bcbe
Merge "cryptfs: Skip to encrtypt unused blocks into a block group which uninitialize block bitmap ."
...
am: 1ae498e0d4
* commit '1ae498e0d4524aef6de2f1e3b639697ac24b29b2':
cryptfs: Skip to encrtypt unused blocks into a block group which uninitialize block bitmap .
9 years ago
Paul Lawrence
1ae498e0d4
Merge "cryptfs: Skip to encrtypt unused blocks into a block group which uninitialize block bitmap ."
9 years ago
Daichi Hirono
089ab074e8
Add allow_other mount option for appfuse.
...
After DocumentsProvider opens FD on app fuse, DocumentProvider passes it
to other applications. To allow other applications to use the FD on app
fuse, we need to specify allow_other mount option.
BUG=25756419
Change-Id: I3c729f90e5b822a7b1032bf80726cc234c0936b1
9 years ago
liminghao
aa08e58e3a
cryptfs: Skip to encrtypt unused blocks into a block group which uninitialize block bitmap .
...
Bug: 198288
Change-Id: Iaa1a14fd916ddec8dc1a4be18d49732ebcba6884
Signed-off-by: liminghao <liminghao@xiaomi.com>
9 years ago
Daichi Hirono
78b524ec46
Add unmount command to vold's AppFuse listener.
...
BUG=25756420
Change-Id: I75b41f135c172d400e57a72a2be0473546781475
9 years ago
Jeff Sharkey
d2d7bffd0c
Create /data/media directory for new users.
...
Otherwise later unlock commands will fail.
Bug: 26267450
Change-Id: I090ac3a3fd4ac6d49290906e21d88f1efcdec421
9 years ago
Jeff Sharkey
7eac12c2c6
Merge "Hide external storage from apps if it\'s not set as adoptable" am: f570ded508
...
am: 6a7d34bffd
* commit '6a7d34bffdcd166bfc8fafe98b00dd5063e50667':
Hide external storage from apps if it's not set as adoptable
9 years ago
Jeff Sharkey
6a7d34bffd
Merge "Hide external storage from apps if it\'s not set as adoptable"
...
am: f570ded508
* commit 'f570ded508aacc8130a2fd8f1130a51991202d9d':
Hide external storage from apps if it's not set as adoptable
9 years ago
Jeff Sharkey
f570ded508
Merge "Hide external storage from apps if it's not set as adoptable"
9 years ago
Qin Chao
e0074f142b
Hide external storage from apps if it's not set as adoptable
...
If storage is not visible to apps and no need to spin up FUSE, it also
should not make FUSE mount point directory.
Change-Id: I6ecd2e5bf56b5dcf0e11834880256b156a62a9a0
Signed-off-by: Qin Chao <chao.qin@intel.com>
9 years ago
Paul Crowley
415d3605e0
Avoid use of a macro when checking argument count.
...
Change-Id: Ia697de58b983233c78e9ef8eb93098d50dfda931
9 years ago
Lenka Trochtova
9ad4369ce8
Fix a bug in passing parameters to prepare_user_storage.
...
Add the serial parameter to prepare_user_storage to avoid
confusion when parsing parameters and passing them around.
Change-Id: Id5516c248401ad50585aa8f6e8b1545a6cded549
9 years ago
Daichi Hirono
47ef9bcad2
Mount FUSE for appfuse directories.
...
BUG=25755834
Change-Id: Icb59b5096239fd3611b614a0870d0ec910cee277
9 years ago
Daichi Hirono
37f09e0d8b
Merge "Send file descriptor of /dev/fuse from vold."
9 years ago
Paul Crowley
ee6b1642b1
Use Jeff's C++ style for finding the subcommand consistently.
...
Change-Id: I2c7333de680cf5d350894f5064e955969e804781
9 years ago
Paul Crowley
34b813eae6
Simplify test for right argc in cryptfs commands, and test more.
...
Change-Id: I23bb19a329b34ba4b81c57b815a2a0a4e8f27745
9 years ago
Paul Crowley
27cbce9214
Rename functions with a system/extras name collision.
...
Following around the call graph in code search is hard enough as it is!
Change-Id: I09d3513664423aafe0d99f9158acfbbb6c79b590
9 years ago
Paul Lawrence
ff9097f560
Fix create_user_key to take 3 params
...
Change-Id: Ied03e2ee404a1b4f386740213e6ab01f18ec09b9
9 years ago
Daichi Hirono
8575a350ff
Send file descriptor of /dev/fuse from vold.
...
BUG=25755834
Change-Id: Ica8bd336baa74e117be008a6e7ee34e3ffac3769
9 years ago
Lenka Trochtova
395039f007
Introduce support for ephemeral users.
...
BUG: 24883058
Change-Id: I77d4757f87214166e7c41c7eb0d06b1cd5f06b20
9 years ago
Jeff Sharkey
fc505c3ff6
Emulate media encryption, always chmod to unlock.
...
When FBE emulation is enabled, lock/unlock the media directories that
store emulated SD card contents.
Change unlocking logic to always chmod directories back to known
state so that we can recover devices that have disabled FBE
emulation.
Bug: 26010607, 26027473
Change-Id: I6d4bff25d8ad7b948679290106f585f777f7a249
9 years ago
Elliott Hughes
6bf0547ccc
resolve merge conflicts of b7d5a47cec
to master.
...
Change-Id: I0c5211a00d92d0ee796bb9c77d2e13675a2a3e8d
9 years ago
Elliott Hughes
b7d5a47cec
Merge "Track rename from base/ to android-base/." am: 20a8fa98f6
...
am: a9d5080109
* commit 'a9d5080109623884c8f8e7c3515eaa9ed3f85c58':
Track rename from base/ to android-base/.
9 years ago
Elliott Hughes
a9d5080109
Merge "Track rename from base/ to android-base/."
...
am: 20a8fa98f6
* commit '20a8fa98f6b858999b623272a182843259e1044c':
Track rename from base/ to android-base/.
9 years ago
Elliott Hughes
20a8fa98f6
Merge "Track rename from base/ to android-base/."
9 years ago
Jeff Sharkey
51c6b9876a
Merge "Handle non-format partition in Vold" am: 385ca5d236
am: 63b7774894
...
am: 971ecb40ee
* commit '971ecb40ee9bc3c729091667b5192dbae996c1d2':
Handle non-format partition in Vold
9 years ago
Jeff Sharkey
90cca664e1
Merge "Make sure path is not NULL to avoid fatal exception." am: e0e5bfeb3c
am: de629f105e
...
am: 9e807ea6db
* commit '9e807ea6db2c3ea7203844cefb31b1afa06619c3':
Make sure path is not NULL to avoid fatal exception.
9 years ago
Jeff Sharkey
20826a1574
Merge "vold: fix 64 bit ioctl error" am: 3e6c59dc16
am: bf6acf44a9
...
am: a619c191cc
* commit 'a619c191cc06c08fb19e1bdd486a41da65f6c0af':
vold: fix 64 bit ioctl error
9 years ago
Elliott Hughes
7e128fbe21
Track rename from base/ to android-base/.
...
Change-Id: I3096cfa50afa395d8e9a8043ab69c1e390f86ccb
9 years ago
Jeff Sharkey
971ecb40ee
Merge "Handle non-format partition in Vold" am: 385ca5d236
...
am: 63b7774894
* commit '63b77748946dc1c18c758d9094e8b735de5ef249':
Handle non-format partition in Vold
9 years ago
Jeff Sharkey
9e807ea6db
Merge "Make sure path is not NULL to avoid fatal exception." am: e0e5bfeb3c
...
am: de629f105e
* commit 'de629f105e12122ba042a8ae86b2130ef9a608bb':
Make sure path is not NULL to avoid fatal exception.
9 years ago
Jeff Sharkey
63b7774894
Merge "Handle non-format partition in Vold"
...
am: 385ca5d236
* commit '385ca5d236547a767133abcd44dff12ca7b805be':
Handle non-format partition in Vold
9 years ago
Jeff Sharkey
de629f105e
Merge "Make sure path is not NULL to avoid fatal exception."
...
am: e0e5bfeb3c
* commit 'e0e5bfeb3c49419ceb53d2ea2b7410ddcfab35c5':
Make sure path is not NULL to avoid fatal exception.
9 years ago
Jeff Sharkey
385ca5d236
Merge "Handle non-format partition in Vold"
9 years ago
Jeff Sharkey
e0e5bfeb3c
Merge "Make sure path is not NULL to avoid fatal exception."
9 years ago
Jeff Sharkey
a619c191cc
Merge "vold: fix 64 bit ioctl error" am: 3e6c59dc16
...
am: bf6acf44a9
* commit 'bf6acf44a9ac1754ec5089ec8370537ff37e5af3':
vold: fix 64 bit ioctl error
9 years ago
Jeff Sharkey
bf6acf44a9
Merge "vold: fix 64 bit ioctl error"
...
am: 3e6c59dc16
* commit '3e6c59dc162ff6b16177e480fdb80c08f24b3700':
vold: fix 64 bit ioctl error
9 years ago
Jeff Sharkey
3e6c59dc16
Merge "vold: fix 64 bit ioctl error"
9 years ago
Jeff Sharkey
a597d0a424
Use the right system property name.
...
Bug: 22358539
Change-Id: I0bf9719a2b54acbde80f3c911988724581447b0c
9 years ago
Paul Lawrence
3d99ebad3d
Encrypt on reboot
...
Change encryption to happen after a reboot, not before. This
removes the problem whereby if data cannot be unmounted, we cannot
encrypt.
Bug: 25426629
Change-Id: I25d610204234ed8254330d001eb965e6e87a2fe9
9 years ago
Jeff Sharkey
c79fb89a10
Switch to new FBE emulation property.
...
Also prepare CE/DE storage directories for owner user at boot.
Bug: 22358539
Change-Id: I76228952c990ebed83360c69ef36321b99114196
9 years ago
Jeff Sharkey
c74ce36359
Merge "Create user_de on adopted storage devices."
9 years ago
Jeff Sharkey
d322c2a23b
Create user_de on adopted storage devices.
...
Bug: 25676430
Change-Id: I22064789a608f13af2dddf740769969d4e4dcbe7
9 years ago