aboutsummaryrefslogtreecommitdiff
path: root/drivers/fpga/fpga-mgr.c
diff options
context:
space:
mode:
authorRoberto Sassu <[email protected]>2020-04-27 12:31:28 +0200
committerMimi Zohar <[email protected]>2020-05-07 21:36:31 -0400
commit2e3a34e9f409ebe83d1af7cd2f49fca7af97dfac (patch)
treeaf17628b7796dcda714f14b8120a0d8124d90548 /drivers/fpga/fpga-mgr.c
parent53de3b080d5eae31d0de219617155dcc34e7d698 (diff)
ima: Fix return value of ima_write_policy()
This patch fixes the return value of ima_write_policy() when a new policy is directly passed to IMA and the current policy requires appraisal of the file containing the policy. Currently, if appraisal is not in ENFORCE mode, ima_write_policy() returns 0 and leads user space applications to an endless loop. Fix this issue by denying the operation regardless of the appraisal mode. Cc: [email protected] # 4.10.x Fixes: 19f8a84713edc ("ima: measure and appraise the IMA policy itself") Signed-off-by: Roberto Sassu <[email protected]> Reviewed-by: Krzysztof Struczynski <[email protected]> Signed-off-by: Mimi Zohar <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions