summaryrefslogtreecommitdiffstats
path: root/Loop.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Add in ext4 support for ASEC containersKenny Root2012-04-251-0/+44
| | | | | | | | | Now forward locked applications will be in ASEC containers both internal to the system and externally. This change adds support for putting applications in ext4-based ASECs. Change-Id: I8d6765b72dd2606e429c067b47a2dbcaa8bef37d
* am 2c9d8de7: Merge "Prevent buffer overflows."Mike Lockwood2011-06-291-2/+2
|\ | | | | | | | | * commit '2c9d8de79a0dd7f894c65777a197c86486aff96c': Prevent buffer overflows.
| * Prevent buffer overflows.Peter Bohm2011-06-271-2/+2
| | | | | | | | | | | | | | | | | | To eliminate possible buffer overflows some strcpy, sprintf and strcat have been changed to strlcpy, snprintf and strlcat. Change-Id: Ieb9d4b600c894946a6492f8629ff39f2fcc106d3 Signed-off-by: Oskar Andero <oskar.andero@sonyericsson.com>
* | Use LOOP_GET_STATUS64 for checking loop devicesKenny Root2011-02-011-2/+2
| | | | | | | | | | | | | | | | | | | | To determine whether a loop device was available, we use an ioctl call to LOOP_GET_STATUS, but this fails on devices with large storage partitions with errno = EOVERFLOW. Instead use LOOP_GET_STATUS64 which succeeds. Bug: 3412121 Change-Id: Ica3cb48885d3555f2d27073c00e31fc51a08c730
* | Add missing include headers for compilation on Intel target for Google TV.Olivier Bailly2010-11-161-0/+2
|/ | | | Change-Id: I9f71b5e871671d1d64ad37f78a8944653409b8e1
* Fix loop_info/loop_info64 impedance mismatchKenny Root2010-07-161-1/+1
| | | | | | | | 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
* Additional Obb functionalityKenny Root2010-07-151-11/+13
| | | | | | | | | | | | * 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
* vold: Switch from LOG -> SLOGSan Mehat2010-03-251-15/+15
| | | | | Change-Id: I48ee8bd90b47f5845f069cdf4d1b8ba6ecdb1b39 Signed-off-by: San Mehat <san@google.com>
* vold: Bugfixes & cleanupsSan Mehat2010-03-131-7/+50
| | | | | | | | | | | | | - 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() and friends Change-Id: I0e833261a445ce9dc1a8187e5501d27daba1ca76 Signed-off-by: San Mehat <san@google.com>
* vold2: Don't allow containers < 1mb, and clean up some loggingSan Mehat2010-02-181-1/+1
| | | | Signed-off-by: San Mehat <san@google.com>
* vold: Internally use sector counts for asec lengthsSan Mehat2010-01-111-3/+3
| | | | Signed-off-by: San Mehat <san@google.com>
* vold: Add encrypted ASEC support via devmapperSan Mehat2010-01-111-3/+5
| | | | | | | | - Supports up to 4096 containers - Keys are now implemented - specifying a key of 'none' means no encryption. Otherwise, the key must be a string of 32 characters Signed-off-by: San Mehat <san@google.com>
* vold: Increase max supported loop devices to 255San Mehat2010-01-091-17/+21
| | | | Signed-off-by: San Mehat <san@google.com>
* vold2: Initial support for Android Secure External CachesSan Mehat2010-01-061-0/+195
Signed-off-by: San Mehat <san@google.com>