Commits

Show all
Author Commit Message Labels Comments Date
David 'Digit' Turner
merge intel x86 patches into gingerbread branch
Tags
3 tags
Bruce Beare
Avoid array overrun. We can now mount the /sdcard partition on our boot sdcards Orig-Change-Id: I6e9db8c55db49b4aa61dd40cd59495f55e5b3368 Signed-off-by: Bruce Beare <brucex.j.beare@intel.com>
Nick Kralevich
vold: Enable the SO_PASSCRED socket option Ensure that sender credentials are available when we receive a netlink message. Change-Id: I48411205a8fbc1ebd29834f64028662d80f15995
Nick Kralevich
add bounds checking for mPartMinors[] Change-Id: I6d5b26756c8434d6396f3535252608ce61eabfd8
Mike Lockwood
Set VM dirty ratio to zero when UMS is active Improves UI responsiveness when copying large amount of data to the device. BUG: 3131847 Change-Id: I4aa5ade7e2cd7e5110c8f0f7ee43bdc57577e11d Signed-off-by: Mike Lockwood <lockwood@google.com>
Tags
6 tags
Kenny Root
Better error code for unmounting not-mounted volumes ENOENT is more descriptive than the generic error that EINVAL gets turned into. Then we can actually treat it how we want on the other side. Change-Id: I9b4f3be6308e13f680eae368d2167ab9ee6aae5f
Kenny Root
Track type of container mounted OBB and ASEC are tracked in the same active container list, but when it comes time to unmount everything, it was trying to unmount the OBBs according to ASEC rules. This led to the OBB not being unmounted and the volume unmount failing. Change-Id: I12c1d4d387b8022185d552b63edd61a50b9c0fc3
Mike Lockwood
More fixes for internal FAT partitions: Fix formatting partitions beyond the first partition. Do not try to initialize the MBR when formatting only a single partition. Change-Id: Ifbbd279b1c288b7b1b884a1a89248e3086ed735f Signed-off-by: Mike Lockwood <lockwood@android.com>
Brad Fitzpatrick
Add some missing closes on error conditions. Also, some formatting fixes to get back into line with netd's copy of logwrapper.c. Change-Id: Id471b99e9c3c8c9bb0890ca0d5e1567125e35bd7
Mike Lockwood
Fixes for devices with internal FAT file system: Only share a single partition via UMS if a specific partition is specified in vold.fstab (rather than "auto") Do not fail to reformat if MBR cannot be found. Change-Id: I544ca2ee325c308af656ab9f4732c788a964c156 Signed-off-by: Mike Lockwood <lockwood@android.com>
Kenny Root
Allow execute on mounted ASEC and OBB containers This allows us to place shared libraries in these containers which may only be loaded if they are executable. Change-Id: I78fa9ab6d5c58ec8b98c40004da72aebc0aade2a
Kenny Root
Fix loop_info/loop_info64 impedance mismatch LOOP_GET_STATUS64 isn't useful here since the data contained within isn't actually checked, so stick with the regular LOOP_GET_STATUS here to match the struct loop_info we're using. Change-Id: I4f9ff06fa44d4ae3aed046d423054554f9cf450b
Kenny Root
Additional Obb functionality * Rename all functions dealing with OBB files to mention Obb * Add 'path' and 'list' functionality to OBB commands * Store hashed filename in loop's lo_crypt_name and keep lo_file_name for the real source filename. That way we can recover it later with an ioctl call. Change-Id: I29e468265988bfb931d981532d86d7be7b3adfc8
Kenny Root
Add image mounting commands for OBB files Allow the mounting of OBB filesystem images if they're encrypted with twofish and in FAT filesystem format. Change-Id: I54804e598f46b1f3a784ffe517ebd9d7626de7aa
Mike Lockwood
Use new kernel notifications to determine if USB mass storage is available. The usb_mass_storage switch no longer exists in our 2.6.35 kernel. Instead we will consider mass storage to be available if both USB is connected and the USB mass storage function is enable. Change-Id: I730d1b3cb3cac664fc2abcdc36cd39856a08404a Signed-off-by: Mike Lockwood <lockwood@android.com>
Kenny Root
Change ASCII conversion for hash and add tests Hash was printed using snprintf(), but we can just write yet another hex conversion utility! Change-Id: I04f1992deaf5bf1b3e2751c8f07072f8ed6660e9
Nick Kralevich
Get rid of warnings when compiled with -Wformat-security Change-Id: I27e0819aba347e26051ad771c594b69700da1721
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
  1. Prev
  2. Next