Skip to content

Backport handling -ESTALE policy update failure to 4.19

GUO Zihua linux-rdma linux-security-module 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest6 patches 4 repliesIn review
  2. v25 patches 2 repliesSuperseded
  3. v13 patches 6 repliesSuperseded

Change log from the cover letter

v2: Fixed build issue and backport bugfix commits for backported
patches.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6IB/core: Don't register each MAD agent for LSM notifierdrivers/infiniband/core/core_priv.h drivers/infiniband/core/device.c drivers/infiniband/core/security.c +1 more+35 -250 replies
2/6LSM: switch to blocking policy update notifiersdrivers/infiniband/core/device.c include/linux/security.h security/security.c +2 more+23 -200 replies
3/6ima: use the lsm policy update notifiersecurity/integrity/ima/ima.h security/integrity/ima/ima_main.c security/integrity/ima/ima_policy.c+105 -230 replies
4/6ima: ima/lsm policy rule loading logic bug fixessecurity/integrity/ima/ima_policy.c+27 -190 replies
5/6ima: Evaluate error in init_ima()security/integrity/ima/ima_main.c+3 -00 replies
6/6ima: Handle -ESTALE returned by ima_filter_rule_match()security/integrity/ima/ima_policy.c+31 -91 reply

Reviews trailers per patch

4 of 6 patches have a Reviewed-by or Acked-by.

PatchParav PanditPaul MooreJames MorrisRoberto Sassu
1/6R-b A-b
2/6A-b A-b
3/6
4/6
5/6R-b
6/6R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v3 thread

Cover letter [PATCH 4.19 v3 0/6] Backport handling -ESTALE policy update failure to 4.19

This series backports patches in order to resolve the issue discussed here:
https://lore.kernel.org/selinux/[email protected]/

This required backporting the non-blocking LSM policy update mechanism prerequisite patches. As well as bugfixes that follows:

c66f67414c1f ("IB/core: Don't register each MAD agent for LSM notifier") 42df744c4166 ("LSM: switch to blocking policy update notifiers") b16942455193 ("ima: use the lsm policy update notifier") 483ec26eed42 ("ima: ima/lsm policy rule loading logic bug fixes") e144d6b26541 ("ima: Evaluate error in init_ima()") c7423dbdbc9e ("ima: Handle -ESTALE returned by ima_filter_rule_match()")

c66f67414c1f ("IB/core: Don't register each MAD agent for LSM notifier") is merged as the prerequisite of 42df744c4166 ("LSM: switch to blocking policy update notifiers"). e144d6b26541 ("ima: Evaluate error in init_ima()"), 483ec26eed42 ("ima: ima/lsm policy rule loading logic bug fixes") and 9ff8a616dfab ("ima: Have the LSM free its audit rule") are merged as a follow up bugfix for b16942455193 ("ima: use the lsm policy update notifier").

I've tested the patches against said issue and can confirm that the issue is fixed.

Link to the original maillist discussion:
https://lore.kernel.org/all/[email protected]/

Change log:
v2: Fixed build issue and backport bugfix commits for backported
patches.

Daniel Jurgens (1):
IB/core: Don't register each MAD agent for LSM notifier

GUO Zihua (1):
ima: Handle -ESTALE returned by ima_filter_rule_match()

Janne Karhunen (3):
LSM: switch to blocking policy update notifiers
ima: use the lsm policy update notifier
ima: ima/lsm policy rule loading logic bug fixes

Roberto Sassu (1):
ima: Evaluate error in init_ima()

 drivers/infiniband/core/core_priv.h |   5 +
 drivers/infiniband/core/device.c    |   5 +-
 drivers/infiniband/core/security.c  |  51 +++++----
 include/linux/security.h            |  12 +-
 include/rdma/ib_mad.h               |   3 +-
 security/integrity/ima/ima.h        |   2 +
 security/integrity/ima/ima_main.c   |  11 ++
 security/integrity/ima/ima_policy.c | 172 ++++++++++++++++++++++------
 security/security.c                 |  23 ++--
 security/selinux/hooks.c            |   2 +-
 security/selinux/selinuxfs.c        |   2 +-
 11 files changed, 208 insertions(+), 80 deletions(-)
Signature · 1 line
2.17.1