public inbox for dm-crypt@saout.de
 help / color / mirror / Atom feed
From: Eric Biggers <ebiggers@kernel.org>
To: Aditya Prakash <adiprakash@cs.stonybrook.edu>
Cc: dm-crypt@saout.de
Subject: [dm-crypt] Re: [DM-Verity][HELP] Unlock Verity Target during runtime
Date: Wed, 17 Mar 2021 20:11:24 -0700	[thread overview]
Message-ID: <YFLE3Ct3CJrZ4yuB@sol.localdomain> (raw)
In-Reply-To: <CAA+CgzbKRQYVa=O6h-cnYpvBEyk4zEB17UkR8nVKnBxGQy6q+g@mail.gmail.com>

On Wed, Mar 17, 2021 at 04:09:46PM -0700, Aditya Prakash wrote:
> Hi,
> I am trying to implement DM-Verity for the rootfs. However, I am not sure
> what the scope of DM Verity. I can see that given a root/sudo user, I can
> unload the verity target, write to rootfs and format and load it again, is
> it possible that this is normal that can be carried out using rootkits or
> any privileged app?
> Also, how can DM-Verity ensure that the system boots to correct rootfs if
> rootfs was changed after an OTA?
> Please help me to understand the actual scope of DM Verity
> 
> Thanks,
> AP

dm-verity's only job is to verify the contents of a block device against a root
hash which is provided by userspace when setting up the dm-verity target.

It's up to the userspace code setting up dm-verity to provide the "correct" root
hash -- for example, by verifying that the root hash is digitally signed by a
trusted source.

Take a look at how dm-verity is used in Verified Boot in Android and Chrome OS,
for example.  There are multiple components, and dm-verity is just one of them.

- Eric
_______________________________________________
dm-crypt mailing list -- dm-crypt@saout.de
To unsubscribe send an email to dm-crypt-leave@saout.de

      reply	other threads:[~2021-03-18  3:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-17 23:09 [dm-crypt] [DM-Verity][HELP] Unlock Verity Target during runtime Aditya Prakash
2021-03-18  3:11 ` Eric Biggers [this message]

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=YFLE3Ct3CJrZ4yuB@sol.localdomain \
    --to=ebiggers@kernel.org \
    --cc=adiprakash@cs.stonybrook.edu \
    --cc=dm-crypt@saout.de \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox