Skip to content

fixes for missing security.ima on new empty files

Dmitry Kasatkin linux-fsdevel lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3ima: provide flag to identify new empty filessecurity/integrity/ima/ima_appraise.c security/integrity/ima/ima_main.c security/integrity/integrity.h+13 -73 replies
2/3evm: skip integrity verification for newly created filessecurity/integrity/evm/evm_main.c+5 -11 reply
3/3ima: pass 'opened' flag to identify newly created filesfs/namei.c fs/nfsd/vfs.c include/linux/ima.h +3 more+15 -153 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH v1 0/3] fixes for missing security.ima on new empty files

Hi,

This patchset fixes the problem of missing security.ima on new empty files. Detailed descriptions of problems are in the following patch descriptions. First two patches fixes the problem. Third patch makes use of FILE_CREATED flag from VFS, which was not available at the time IMA appraisal came to the kernel.

- Dmitry

Dmitry Kasatkin (3):
ima: provide flag to identify new empty files
evm: skip integrity verification for newly created files
ima: pass 'opened' flag to identify newly created files

 fs/namei.c                            |  2 +-
 fs/nfsd/vfs.c                         |  2 +-
 include/linux/ima.h                   |  4 ++--
 security/integrity/evm/evm_main.c     |  6 +++++-
 security/integrity/ima/ima.h          |  4 ++--
 security/integrity/ima/ima_appraise.c |  9 ++++++---
 security/integrity/ima/ima_main.c     | 26 ++++++++++++++------------
 security/integrity/integrity.h        |  1 +
 8 files changed, 32 insertions(+), 22 deletions(-)
Signature · 1 line
1.9.1