Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933610AbWKQN30 (ORCPT ); Fri, 17 Nov 2006 08:29:26 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S933612AbWKQN30 (ORCPT ); Fri, 17 Nov 2006 08:29:26 -0500 Received: from mgw-ext11.nokia.com ([131.228.20.170]:37582 "EHLO mgw-ext11.nokia.com") by vger.kernel.org with ESMTP id S933610AbWKQN3Z (ORCPT ); Fri, 17 Nov 2006 08:29:25 -0500 Message-ID: <455DB1FB.1060403@indt.org.br> Date: Fri, 17 Nov 2006 08:58:35 -0400 From: Anderson Briglia User-Agent: Icedove 1.5.0.7 (X11/20061013) MIME-Version: 1.0 To: "Linux-omap-open-source@linux.omap.com" CC: linux-kernel@vger.kernel.org, Pierre Ossman , ext David Brownell , Russell King , Tony Lindgren , "Aguiar Carlos (EXT-INdT/Manaus)" , "Biris Ilias (EXT-INdT/Manaus)" Subject: [patch 0/6] [RFC] Add MMC Password Protection (lock/unlock) support V6 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 17 Nov 2006 12:54:51.0021 (UTC) FILETIME=[91E813D0:01C70A47] X-eXpurgate-Category: 1/0 X-eXpurgate-ID: 149371::061117145820-4DCC8BB0-376C9153/0-0/0-1 X-Nokia-AV: Clean Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2521 Lines: 68 Hi all, New in this version: - MMC_CAP_BYTEBLOCK capability support added. - Spin lock added to protect data into mmc_lock_unlock function. - Specific OMAP platform adjustment regarding DMA transfers. - Some minor fixes pointed by Pierre Ossman on V5 version. 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: - Ongoing: Extend the MMC PWD Scheme to SD Cards. - 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 , it accepts as the correct password too, where is any sequence of characters, of any length. In other words, on these cards only the first bytes need to match the correct password. Comments and suggestions are always welcome. -- Anderson Briglia, 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/