Linux-Integrity Archive on
 help / color / Atom feed
From: Mimi Zohar <>
To: Janne Karhunen <>,,
Cc: Casey Schaufler <>,
	Konsta Karsisto <>
Subject: Re: [PATCH v4] ima: ima/lsm policy rule loading logic bug fixes
Date: Wed, 15 Jan 2020 13:36:21 -0500
Message-ID: <> (raw)
In-Reply-To: <>

On Wed, 2020-01-15 at 17:42 +0200, Janne Karhunen wrote:
> Keep the ima policy rules around from the beginning even if they appear
> invalid at the time of loading, as they may become active after an lsm
> policy load. However, loading a custom IMA policy with unknown LSM
> labels is only safe after we have transitioned from the "built-in"
> policy rules to a custom IMA policy.
> Patch also fixes the rule re-use during the lsm policy reload and makes
> some prints a bit more human readable.
> Changelog:
> v4:
> - Do not allow the initial policy load refer to non-existing lsm rules.
> v3:
> - Fix too wide policy rule matching for non-initialized LSMs
> v2:
> - Fix log prints
> Fixes: b16942455193 ("ima: use the lsm policy update notifier")
> Cc: Casey Schaufler <>
> Reported-by: Mimi Zohar <>
> Reviewed-by: Mimi Zohar <>
> Signed-off-by: Janne Karhunen <>
> Signed-off-by: Konsta Karsisto <>

Thanks, the updated patch is now queued in next-integrity-testing.


      reply index

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-15 15:42 Janne Karhunen
2020-01-15 18:36 ` Mimi Zohar [this message]

Reply instructions:

You may reply publically 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:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Linux-Integrity Archive on

Archives are clonable:
	git clone --mirror linux-integrity/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-integrity linux-integrity/ \
	public-inbox-index linux-integrity

Example config snippet for mirrors

Newsgroup available over NNTP:

AGPL code for this site: git clone