[patch 0/6] Add MMC password protection (lock/unlock) support V4
- From: Carlos Aguiar <carlos.aguiar@xxxxxxxxxxx>
- Date: Tue, 31 Jan 2006 16:16:36 -0400
Hi all,
New in this version:
- The remaining MMC password operations previously executed by key
retention functions (change password, unlock card and assign password)
were implemented using the sysfs mechanism.
- Added the host MMC lock/unlock capability support for OMAP platform.
- Added verbose debugging messages
This series of patches add support for MultiMediaCard (MMC) password
protection, as described in the MMC Specification v4.1. This feature is
supported by all compliant MMC cards, and used by some devices such as
Symbian OS cell phones to optionally protect MMC cards with a password.
By default, a MMC card with no password assigned is always in "unlocked"
state. After password assignment, in the next power cycle the card
switches to a "locked" state where only the "basic" and "lock card"
command classes are accepted by the card. Only after unlocking it with
the correct password the card can be normally used for operations like
block I/O.
Password management and caching is done through the "Kernel Key
Retention Service" mechanism and the sysfs filesystem. A new sysfs
attribute was added to the MMC driver for unlocking the card, assigning
a password to an unlocked card, change a card's password, remove the
password and check locked/unlocked status.
A sample text-mode reference UI written in shell script (using the
keyctl command from the keyutils package), can be found at:
http://www.indt.org.br/10le/mmc_pwd/mmc_reference_ui-20060130.tar.bz2
TODO:
- Password caching: when inserting a locked card, the driver should try
to unlock it with the currently stored password (if any), and if it
fails, revoke the key containing it and fallback to the normal "no
password present" situation.
Known Issue:
- Some cards have an incorrect behaviour (hardware bug?) regarding
password acceptance: if an affected card has password <pwd>, it
accepts <pwd><xxx> as the correct password too, where <xxx> is any
sequence of characters, of any length. In other words, on these cards
only the first <password length> bytes need to match the correct
password.
We would like to ask you to test these patches. We believe they are
ready to be included on the kernel source.
Comments and suggestions are welcome.
--
Anderson Briglia,
Anderson Lizardo,
Carlos Eduardo Aguiar
Embedded Linux Lab - 10LE
Nokia Institute of Technology - INdT
Manaus - Brazil
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- [patch 5/6] Add MMC password protection (lock/unlock) support V4
- From: Carlos Aguiar
- [patch 2/6] Add MMC password protection (lock/unlock) support V4
- From: Carlos Aguiar
- [patch 4/6] Add MMC password protection (lock/unlock) support V4
- From: Carlos Aguiar
- [patch 3/6] Add MMC password protection (lock/unlock) support V4
- From: Carlos Aguiar
- [patch 1/6] Add MMC password protection (lock/unlock) support V4
- From: Carlos Aguiar
- [patch 6/6] Add MMC password protection (lock/unlock) support V4
- From: Carlos Aguiar
- [patch 5/6] Add MMC password protection (lock/unlock) support V4
- Prev by Date: [patch 6/6] Add MMC password protection (lock/unlock) support V4
- Next by Date: Re: [PATCH 10/11] LED: Add IDE disk activity LED trigger
- Previous by thread: [PATCH] Avoid moving tasks when a schedule can be made.
- Next by thread: [patch 6/6] Add MMC password protection (lock/unlock) support V4
- Index(es):
Relevant Pages
- [RFC] 1/4 MMC layer
... This patch adds core support to the Linux kernel for driving MMC ... * Ensure
that no card is selected. ... +static struct mmc_card * ... +static int
mmc_major; ... (Linux-Kernel) - Re: [patch 0/5] Add MMC password protection (lock/unlock) support
... These series of patches add support for MultiMediaCard (MMC) password ... a
MMC card with no password assigned is always in "unlocked" state. ... Only after unlocking
it with the correct password the ... a new sysfs attribute was added to the MMC driver.
... (Linux-Kernel) - [patch 0/5] [RFC] Add MMC password protection (lock/unlock) support
... These series of patches add support for MultiMediaCard (MMC) password ... a
MMC card with no password assigned is always in "unlocked" state. ... Only after unlocking
it with the correct password the ... a new sysfs attribute was added to the MMC driver.
... (Linux-Kernel) - Re: Block request processing for MMC/SD over SPI bus
... MMC/SD card slots hooked up to SPI controllers, ... This version gets
part way through MMC and SD card enumeration, ... +static int mmc_spi_delayed ...
(Linux-Kernel) - [PATCH 2.6.16] mmc: Read and parse mmc v4 ext_csd structure
... I've recently being investigating adding support for the mmc v4 high speed ...
and wide bus features, based on some documents I found online (A couple of ... about equivalent
to an SD card on the same hardware. ... turning that into a real mergable patch
requires a lot more work; ... (Linux-Kernel)