Linux Security Modules development
 help / color / mirror / Atom feed
* [PATCH 0/2] ima: don't measure/appraise files on configfs
@ 2026-08-18 19:35 Frederick Lawler
  2026-08-18 19:35 ` [PATCH 1/2] configfs: move CONFIGFS_MAGIC definition to magic.h Frederick Lawler
  2026-08-18 19:35 ` [PATCH 2/2] ima: don't measure/appraise files on configfs Frederick Lawler
  0 siblings, 2 replies; 4+ messages in thread
From: Frederick Lawler @ 2026-08-18 19:35 UTC (permalink / raw)
  To: Andreas Hindborg, Breno Leitao, Mimi Zohar, Roberto Sassu,
	Dmitry Kasatkin, Eric Snowberg, Paul Moore, James Morris,
	Serge E. Hallyn
  Cc: linux-kernel, linux-integrity, linux-security-module, kernel-team,
	Frederick Lawler, syzbot+448c2e24b1ceff13ed2a

When IMA appraises/measures a file configfs, it has an opportunity to
hold onto the ima_iint_mutex while another file from a different file
system is attempting to appraise/measure. This may cause a cyclical
lock dependency.

Add configfs to the default don't measure/appraise lists, similarly to
other pseudo file systems.

Link: https://lore.kernel.org/all/6a77c7cd.b50370da.49fe0.0031.GAE@google.com/#t

Signed-off-by: Frederick Lawler <fred@cloudflare.com>
---
Frederick Lawler (2):
      configfs: move CONFIGFS_MAGIC definition to magic.h
      ima: don't measure/appraise files on configfs

 fs/configfs/mount.c                 | 4 +---
 include/uapi/linux/magic.h          | 1 +
 security/integrity/ima/ima_policy.c | 7 ++++++-
 3 files changed, 8 insertions(+), 4 deletions(-)
---
base-commit: f1e10b10874051e4d99911dae0dd7b75a9f8ae66
change-id: 20260818-configfs-a248c410b083

Best regards,
-- 
Frederick Lawler <fred@cloudflare.com>


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-08-19  9:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-18 19:35 [PATCH 0/2] ima: don't measure/appraise files on configfs Frederick Lawler
2026-08-18 19:35 ` [PATCH 1/2] configfs: move CONFIGFS_MAGIC definition to magic.h Frederick Lawler
2026-08-19  9:21   ` Breno Leitao
2026-08-18 19:35 ` [PATCH 2/2] ima: don't measure/appraise files on configfs Frederick Lawler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox