Skip to content

IMA: making i_readcount a first class inode citizen

Mimi Zohar linux-fsdevel lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4IMA: convert i_readcount to atomicinclude/linux/fs.h security/integrity/ima/ima_iint.c security/integrity/ima/ima_main.c+11 -100 replies
2/4IMA: define readcount functionsinclude/linux/fs.h+20 -00 replies
3/4IMA: maintain i_readcount in the VFS layerfs/file_table.c fs/open.c include/linux/ima.h +2 more+14 -270 replies
4/4IMA: remove IMA imbalance checkingsecurity/integrity/ima/ima_iint.c security/integrity/ima/ima_main.c+4 -1040 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchEric Paris
1/4A-b
2/4A-b
3/4A-b
4/4A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/4] IMA: making i_readcount a first class inode citizen

This is a repost of patches 1 - 4 of the ima-i_readcount patch set rebased against security-testing/#next, as requested a while ago. The patches are also available from:
git://git.kernel.org/pub/scm/linux/kernel/git/zohar/ima-2.6.git/#next

This patchset separates the incrementing/decrementing of the i_readcount, in the VFS layer, from other IMA functionality, by replacing the current ima_counts_get() call with i_readcount_inc(). Its unclear whether this call to increment i_readcount should be made earlier, like i_writecount. Currently the call is situated immediately after the switch from put_filp() to fput() for cleanup.

Mimi

Mimi Zohar (4):
IMA: convert i_readcount to atomic
IMA: define readcount functions
IMA: maintain i_readcount in the VFS layer
IMA: remove IMA imbalance checking

 fs/file_table.c                   |    5 +-
 fs/open.c                         |    3 +-
 include/linux/fs.h                |   23 ++++++-
 include/linux/ima.h               |    6 --
 security/integrity/ima/ima_iint.c |    5 --
 security/integrity/ima/ima_main.c |  130 ++++---------------------------------
 6 files changed, 40 insertions(+), 132 deletions(-)
Signature · 1 line
1.7.3.4