public inbox for linux-integrity@vger.kernel.org
 help / color / mirror / Atom feed
From: Mimi Zohar <zohar@linux.vnet.ibm.com>
To: "Paul R. Tagliamonte" <paultag@gmail.com>,
	linux-integrity@vger.kernel.org
Subject: Re: IMA keyctl problems
Date: Sun, 10 Dec 2017 09:18:48 -0500	[thread overview]
Message-ID: <1512915528.3846.29.camel@linux.vnet.ibm.com> (raw)
In-Reply-To: <CAO6P2QT3n0WphLHP-e2cyLFMcp_i4PXv3Atezpksdtn4nfVmPA@mail.gmail.com>

On Sat, 2017-12-09 at 17:01 -0500, Paul R. Tagliamonte wrote:
> Hey all!
> 
> I have an asymmetric key loaded into _ima on my root user's @u
> keyring. v/r/s is set on the keyrings, and key:
> 
> ```
>  943483453 --alswrv      0 65534  keyring: _uid.0
>  559919368 ----s-rv      0     0   \_ keyring: _ima
>  475931491 ----s-rv      0     0       \_ asymmetric: Local IMA Key
> ```
> 
> However, when I try and run my VM with IMA set to log, I'm getting a
> log full of:
> 
> "integrity: no _ima keyring: -126"

Depending on how the kernel was built (CONFIG_IMA_TRUSTED_KEYRING),
the IMA keys need to be loaded either on the trusted keyring named
.ima or the _ima keyring.  The kernel itself creates the trusted .ima
keyring.

The command "sudo keyctl show %keyring:.ima" will indicate if the
".ima" was created.

Mimi

  reply	other threads:[~2017-12-10 14:20 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-09 22:01 IMA keyctl problems Paul R. Tagliamonte
2017-12-10 14:18 ` Mimi Zohar [this message]
2017-12-10 15:06   ` Paul R. Tagliamonte
2017-12-10 16:01     ` Mimi Zohar
2017-12-10 16:16       ` Paul R. Tagliamonte
2017-12-11  2:59         ` Paul R. Tagliamonte
2017-12-11  3:59           ` Paul R. Tagliamonte
2017-12-11 13:48             ` Mimi Zohar
2017-12-11 14:13               ` Paul R. Tagliamonte
2017-12-11 15:48                 ` Mimi Zohar
2017-12-11 16:01                   ` Paul R. Tagliamonte
2017-12-11 17:22                     ` Mimi Zohar
2017-12-11 17:41                       ` Paul R. Tagliamonte

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=1512915528.3846.29.camel@linux.vnet.ibm.com \
    --to=zohar@linux.vnet.ibm.com \
    --cc=linux-integrity@vger.kernel.org \
    --cc=paultag@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox