Commits

Show all
Author Commit Message Labels Comments Date
San Mehat
vold: Ensure we cleanup secure containers on card removal. Fixes bug: http://b/issue?id=2567572 Note: The framework will still likely restart since the system_server is holding references to assets on the card which are mmaped, but at least now storage will be available when a new card is re-inserted. Change-Id: I4e195c0c666426b93da47198fa826a6f58d855a9 Signed-off-by: San Mehat <san@google.com>
Tags
7 tags
San Mehat
vold: Switch from LOG -> SLOG Change-Id: I48ee8bd90b47f5845f069cdf4d1b8ba6ecdb1b39 Signed-off-by: San Mehat <san@google.com>
Kenny Root
Revert "Prevent null pointer deref in DirectVolume" This reverts commit a9f423dd7e313854ce7c103e1bb4661b05efc9a4.
Kenny Root
Prevent null pointer deref in DirectVolume There's a possibility that if something were messed up a call to NetlinkEvent::findParam could return a NULL. Passing NULL as the argument into atoi() would cause a null pointer dereference. Change-Id: Ib071afbbe2adc341108c245ffa596cc8730bd8fd
San Mehat
vold: asec path cmd now returns OpFailedStorageNotFound if id doesn't exist Change-Id: Icbe3de7c28505f7496c8f8edea126c7b616de475 Signed-off-by: San Mehat <san@google.com>
San Mehat
vold: Add mounted filesystems to dump cmd Change-Id: If025e7ee10a79ff089920a6d0c1a52358b2d2c22 Signed-off-by: San Mehat <san@google.com>
Kenny Root
vold: Convert to use OpenSSL MD5 API Change-Id: I9b84370fa9a98464c211ebe8983be8dbe9dd7ccd
San Mehat
vold: remove some dead code Change-Id: Iaeb5d3334ec22ed31da9734bb8d7cd17e6a40eaf Signed-off-by: San Mehat <san@google.com>
San Mehat
vold: Remove autorun.inf at mount/unmount time if it exists Change-Id: Ia57da8ee177453a601a23d965c2b4f16b6de46e5 Signed-off-by: San Mehat <san@google.com>
San Mehat
vold: Fix argument validation for volume commands Change-Id: I74aa63ff9f9bc32bd871e6c53ab50b6baf79e650 Signed-off-by: San Mehat <san@google.com>
San Mehat
vold: Bugfixes & cleanups - Fix issue where container-names > 64 bytes were getting truncated in the kernel. lo_name is only 64 bytes in length, so we now hash the container id via md5 - Add 'dump' command to dump loop and devicemapper status - Add 'debug' command to enable more detailed logging at runtime - Log vold IPC arguments (minus encryption keys) - Fix premature return from Loop::lookupActive() an…
San Mehat
vold: Switch to using libdiskconfig for partition setup. Also handles an issue where NPARTS=0 on a disk change uevent Change-Id: I77c56f177dc65df91468bbd7d5fe1889db414d7a Signed-off-by: San Mehat <san@google.com>
Jean-Baptiste Queru
Add an empty CleanSpec.mk Change-Id: Ied5f7eddd18adb38699c8a034a78ff9de4aab8de
San Mehat
vold: Add a versioned superblock to secure containers. Add an un-encrypted superblock to the end of a secure container to help identify the crypto cipher used. This is required in order to provide some semblence of versioning, in case we have cause to change the crypto type on an update - say for example switching from software to hardware encryption, or from 128 -> a zillion bit keys. NOTE: This format is incompatible with previous secure containers…
San Mehat
vold: Add support for xwarp Signed-off-by: San Mehat <san@google.com>
San Mehat
vold: Don't bail out on init failure & bump version number Signed-off-by: San Mehat <san@google.com>
San Mehat
vold: Allow creation of a container with no filesystem Signed-off-by: San Mehat <san@google.com>
San Mehat
vold: Fix uninitialized mountpoint bug Signed-off-by: San Mehat <san@google.com>
San Mehat
vold: Retry rmdir of asec mount point Signed-off-by: San Mehat <san@google.com>
San Mehat
vold: Prohibit container rename when dst container is mounted Signed-off-by: San Mehat <san@google.com>
San Mehat
vold: fix infinite loop when failing to unmount a busy container in unmountVolume() Signed-off-by: San Mehat <san@google.com>
San Mehat
vold: Make asec sdcard dir a hidden dir Signed-off-by: San Mehat <san@google.com>
San Mehat
vold: Stage the mounting of media to hide the ASEC imagefile directory In order to protect the '/android_secure' directory on VFAT removable media from being mucked with by 3rd party applications on the device, we hide the directory with a read-only, zero-sized tmpfs mounted on-top. A reference to the hidden directory is kept by a bind-mount which is mounted at a location which only root can access. Staging consists of: 1. Mount checked media at a secure locatio…
San Mehat
vold: Clean up asec command response and add support for 'StorageBusy' Signed-off-by: San Mehat <san@google.com>
San Mehat
vold: Add 'force' option to anything that can cause an unmount Signed-off-by: San Mehat <san@google.com>
San Mehat
vold2: Don't allow containers < 1mb, and clean up some logging Signed-off-by: San Mehat <san@google.com>
Kenny Root
Check length of filenames before strcat Just in case someone tries to set up a series of links to trick us, do a quick sanity check on the total length of the strings we're about to concatenate. Change-Id: Iba9617008dbc1e93e1907393052caf1e52fbe312
San Mehat
vold: Refactor Processkiller and add command to return users of a mount point Signed-off-by: San Mehat <san@google.com>
San Mehat
vold: Fix devmapper/ptmx fd leak, and give asec unmount more time Signed-off-by: San Mehat <san@google.com>
Jean-Baptiste Queru
am 4468682c: Merge from open-source master Merge commit '4468682c7035d431c6154ab298c5ce0f9e2350f8' * commit '4468682c7035d431c6154ab298c5ce0f9e2350f8': new project, first commit
  1. Prev
  2. Next