linux-integrity.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Russell Coker <russell@coker.com.au>
To: linux-integrity@vger.kernel.org, Ken Williams <ken@williamsclan.us>
Subject: Re: User questions
Date: Sun, 18 Sep 2022 20:48:06 +1000	[thread overview]
Message-ID: <4153672.NgBsaNRSFp@xev> (raw)
In-Reply-To: <CADrftwOUDT5CuwHsrgEM1GTu_N3TAhZTpxFBERKa7zwUHkQscw@mail.gmail.com>

On Friday, 16 September 2022 15:36:52 AEST Ken Williams wrote:
> If yes, then let me describe my environment;
> I am running an older kernel, 4.14.238,

Things are changing all the time in IMA, getting an older kernel to work might 
be a problem.  However I have seen some documentation about using it in 
embedded systems in vehicles which is a use that tends to have long support 
times, so some old versions will be supported.

> learning curve in this area may not be out of line.  My plan is to
> pre-sign the files prior to installation and I see that effort as
> being outside of the scope of my inquiries here.  So now, does it look
> like I am starting in the right direction?

For typical uses of Linux you would want pre-signed executables.  You want to 
have the system running the programs to not have the signing key and provide 
the signatures from a trusted system.

I've been thinking of having some sort of system that proxies the packages of 
software and creates signatures for them.  The default signing includes the 
Inode number of the file, that can be disabled or the system installing could 
say "give me a signature for /bin/bash from package bash version 5.2~rc2-2 
with Inode 27597791".

The next issue is that the current kernel code doesn't allow signing unsigned 
files unless you boot with "ima_appraise=fix evm=fix" on the kernel command-
line.  I've been thinking of writing a kernel patch to give a compile time 
option to remove that requirement.

As for reasons to use IMA without TPM, one example is virtual machines.  The 
host OS provides a known good kernel and initramfs and we want that kernel to 
ensure that it's not running a corrupt user-space.

-- 
My Main Blog         http://etbe.coker.com.au/
My Documents Blog    http://doc.coker.com.au/


  parent reply	other threads:[~2022-09-18 10:58 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-16  5:36 User questions Ken Williams
2022-09-16 14:10 ` Mimi Zohar
2022-09-18 23:47   ` Ken Williams
2022-09-19  3:10     ` Mimi Zohar
2022-09-18 10:48 ` Russell Coker [this message]
2022-09-19  3:07   ` Mimi Zohar

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=4153672.NgBsaNRSFp@xev \
    --to=russell@coker.com.au \
    --cc=ken@williamsclan.us \
    --cc=linux-integrity@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).