From: Dmitry Kasatkin <dmitry.kasatkin@intel.com>
To: linux-kernel@vger.kernel.org,
linux-security-module@vger.kernel.org, dm-devel@redhat.com,
linux-crypto@vger.kernel.org
Subject: [PATCHv2 0/1] dm-integrity: integrity protection device-mapper target
Date: Mon, 26 Nov 2012 16:39:51 +0200 [thread overview]
Message-ID: <cover.1353940203.git.dmitry.kasatkin@intel.com> (raw)
Device-mapper "integrity" target provides transparent cryptographic integrity
protection of underlying read-write block device using hash-based message
authentication codes (HMACs), which can be stored on the same or different
block device.
Target uses kernel keyring to obtain a secret key for using in cryptographic
operations. It uses encrypted key type. Kernel never exposes those keys in
plain form to user space. Encrypted keys are encrypted using master key,
which can be either user or trusted type. User key type allows to supply a key
from the user space and trusted key uses TPM.
Secret key is usually device specific and binds integrity data to the device.
Data blocks and corresponding HMACs cannot be copied over from other systems.
The key advantage over dm-verity is that the target supports read-write and
requires less hash calculation operations, but it cannot be used to build a
a file system image to be used on multiple devices unless secret key is the
same across all device. The main purpose is to provide read-write capable
local block data integrity protection.
Changes in v2:
- added block size parameter
- added hmac algo parameter
- fixed table output
- added sync mode flag to handle reboot notifications
- added discards handling
- use DM functions for printing kernel messages
- Dmitry
Dmitry Kasatkin (1):
dm-integrity: integrity protection device-mapper target
Documentation/device-mapper/dm-integrity.txt | 137 ++++
drivers/md/Kconfig | 13 +
drivers/md/Makefile | 1 +
drivers/md/dm-integrity.c | 1050 ++++++++++++++++++++++++++
4 files changed, 1201 insertions(+)
create mode 100644 Documentation/device-mapper/dm-integrity.txt
create mode 100644 drivers/md/dm-integrity.c
--
1.7.10.4
next reply other threads:[~2012-11-26 14:39 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-26 14:39 Dmitry Kasatkin [this message]
2012-11-26 14:39 ` [PATCHv2 1/1] dm-integrity: integrity protection device-mapper target Dmitry Kasatkin
2012-12-05 11:06 ` Kasatkin, Dmitry
2012-12-18 15:30 ` Kasatkin, Dmitry
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1353940203.git.dmitry.kasatkin@intel.com \
--to=dmitry.kasatkin@intel.com \
--cc=dm-devel@redhat.com \
--cc=linux-crypto@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-security-module@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.