All of lore.kernel.org
 help / color / mirror / Atom feed
From: Shivaramakrishnan Vaidyanathan <shivaramakrishnan740@gmail.com>
To: Milan Broz <gmazyland@gmail.com>
Cc: dm-crypt@saout.de
Subject: Re: [dm-crypt] verity setup on active device.
Date: Sat, 5 Apr 2014 18:11:58 -0400	[thread overview]
Message-ID: <CAAQucXZ7tD20P3PZ1o-tVpjwH=c_bstKvG+7crxe9PiR7_u7ew@mail.gmail.com> (raw)
In-Reply-To: <53404DD9.2020101@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1974 bytes --]

Thanks Milan for your reply.
I have few questions is this regard.I am ready to perform the offline
integrity check.I can have the image files in the nfs-share archived live
to another partition that is not mounted.Will I be able to perform the
integrity check at the block level in this case?Each time virtual machine
boots up,I need to be able to verify if the image was the same as previous
boot.
Is this achievable?

Will these steps work?
1. Image file (VM1 - Virtual hard disk file mounted in nfs share
partition).
2.I rsync the directory of nfs-share to another partition.
3.Then whether I will be able to tell whether the virtual image file has
been altered/changed from the previous boot?

Can you please provide some details in regard to the implementations
required in this case?

If you know any other alternatives,It would be great if you could share
it.Also I dont get the notion "Dm-verity was designed to provide verification
of (read-only) device (to provide verified boot path), all IOs must go
through dm-verity."

So what does this mean?


On Sat, Apr 5, 2014 at 2:39 PM, Milan Broz <gmazyland@gmail.com> wrote:

> On 04/04/2014 11:34 PM, Shiva wrote:
> ...
> > 5.Used the root hash in this command.
> > veritysetup --debug create nfs /dev/sdb /dev/sdc "root hash"
> >
> > Everything works well.
> > My problem is I am not able to perform step5 for a mounted partition.
> >
> > I require a mounted partition since nfs-share will use this partition.
> > (For addition and deletion)
> >
> > Is there a command switch that needs to be performed in order to achieve
> this?
>
> I am afraid this is not possible. Dm-verity was designed to provide
> verification of (read-only) device (to provide verified boot path),
> all IOs must go through dm-verity.
> (So it must be in the stack from the beginning).
>
> You cannot just add it later or run it parallel with mounted partition.
> And how this can work if some data are already in page/fs cache?
>
> Milan
>

[-- Attachment #2: Type: text/html, Size: 2928 bytes --]

  reply	other threads:[~2014-04-05 22:12 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-04 21:34 [dm-crypt] verity setup on active device Shiva
2014-04-05 18:39 ` Milan Broz
2014-04-05 22:11   ` Shivaramakrishnan Vaidyanathan [this message]
2014-04-05 22:26     ` Shivaramakrishnan Vaidyanathan
2014-04-06  7:53       ` Milan Broz
2014-04-06 23:13         ` Shivaramakrishnan Vaidyanathan
2014-04-06  7:44     ` Milan Broz
2014-04-07  3:11       ` Shivaramakrishnan Vaidyanathan

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='CAAQucXZ7tD20P3PZ1o-tVpjwH=c_bstKvG+7crxe9PiR7_u7ew@mail.gmail.com' \
    --to=shivaramakrishnan740@gmail.com \
    --cc=dm-crypt@saout.de \
    --cc=gmazyland@gmail.com \
    /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.