ima: show rules with IMA_INMASK correctly
authorRoberto Sassu <roberto.sassu@huawei.com>
Wed, 29 May 2019 13:30:35 +0000 (15:30 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 9 Jun 2019 07:18:18 +0000 (09:18 +0200)
commit8eb37017409967c658041b806b1c4817e69924b3
treee36dbe1e7906c5a665f8066bd0601bc77cd6a05d
parent732c9e41486baa174c30602968d42f558f0974e5
ima: show rules with IMA_INMASK correctly

commit 8cdc23a3d9ec0944000ad43bad588e36afdc38cd upstream.

Show the '^' character when a policy rule has flag IMA_INMASK.

Fixes: 80eae209d63ac ("IMA: allow reading back the current IMA policy")
Signed-off-by: Roberto Sassu <roberto.sassu@huawei.com>
Cc: stable@vger.kernel.org
Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
security/integrity/ima/ima_policy.c