Skip to content

RFC ima: Fix detection of read/write violations on stacked filesystems

Stefan Berger linux-integrity linux-unionfs lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 RFC Latest2 patches 12 repliesIn review
  2. v1 RFC2 patches 13 repliesSuperseded

Changes in v2 from the cover letter

- Simplified 2nd patch
- Improvements on patch description on 1st patch

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2ovl: Define D_REAL_FILEDATA for d_real to return dentry with datafs/overlayfs/super.c include/linux/dcache.h+7 -01 reply
2/2ima: Fix detection of read/write violations on stacked filesystemssecurity/integrity/ima/ima_main.c+16 -51 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [RFC PATCH v2 0/2] ima: Fix detection of read/write violations on stacked filesystems

This series fixes the detection of read/write violations on stacked filesystems. To be able to access the relevant dentries necessary to detect files opened for writing on a stacked filesystem a new d_real_type D_REAL_FILEDATA is introduced that allows callers to access all relevant files involved in a stacked filesystem while traversing the layers.

Stefan

v2:
- Simplified 2nd patch
- Improvements on patch description on 1st patch

Stefan Berger (2):
ovl: Define D_REAL_FILEDATA for d_real to return dentry with data
ima: Fix detection of read/write violations on stacked filesystems

 fs/overlayfs/super.c              |  6 ++++++
 include/linux/dcache.h            |  1 +
 security/integrity/ima/ima_main.c | 21 ++++++++++++++++-----
 3 files changed, 23 insertions(+), 5 deletions(-)
Signature · 1 line
2.43.0