selinux-refpolicy.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: rishi gupta <gupt21@gmail.com>
To: linux-integrity <linux-integrity@vger.kernel.org>,
	selinux-refpolicy@vger.kernel.org, selinux@vger.kernel.org
Subject: Selinux policy for x509_ima.der public certificate loaded by kernel during boot
Date: Fri, 6 Nov 2020 17:52:55 +0530	[thread overview]
Message-ID: <CALUj-gt8KD4Cc-zgvXP-8vNdR3RB_Sdx7yd2cv7GX_wBCM6gEQ@mail.gmail.com> (raw)

I am getting below error as selinux is denying access to the .ima
keyring. Looking for guidance for asymmetric public key selinux
policy.

[  172.014855] integrity: Request for unknown key 'id:87deb3bf' err -13

[  172.015035] audit: type=1800 audit(1604596570.579:240): pid=825
uid=1021 auid=4294967295 ses=4294967295
subj=system_u:system_r:mydaemon_t:s0-s15:c0.c1023 op="appraise_data"
cause="invalid-signature" comm="mydaemon"
name="/usr/lib/libstdc++.so.6.0.25" dev="ubifs" ino=14353 res=0

(a) Do I need to set the selinux context of file
/etc/keys/x509_ima.der. If yes what it should be.
(b) Do I need to set some selinux rule for .ima keyring. If yes how. I
tried a lot but could not find any resource.

Regards,
Rishi

             reply	other threads:[~2020-11-06 12:23 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-06 12:22 rishi gupta [this message]
2020-11-06 15:12 ` Selinux policy for x509_ima.der public certificate loaded by kernel during boot Mikhail Novosyolov
2020-11-06 15:50   ` rishi gupta
2020-11-06 22:15     ` Mikhail Novosyolov
2020-11-09 15:44       ` rishi gupta
2020-11-10 20:45         ` 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=CALUj-gt8KD4Cc-zgvXP-8vNdR3RB_Sdx7yd2cv7GX_wBCM6gEQ@mail.gmail.com \
    --to=gupt21@gmail.com \
    --cc=linux-integrity@vger.kernel.org \
    --cc=selinux-refpolicy@vger.kernel.org \
    --cc=selinux@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).