]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
ima/policy: fix parsing of fsuuid
authorMike Rapoport <rppt@linux.vnet.ibm.com>
Thu, 15 Mar 2018 19:56:00 +0000 (20:56 +0100)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 28 Mar 2018 09:17:10 +0000 (11:17 +0200)
commita01555037a4832be08397d0f4055811ef9688228
tree8cbcbf42d41ba649e9a7d57b34fc8b25a3d1ebb5
parent28552cf114c0a2dfd95a6dc26d4ad8264acb2262
ima/policy: fix parsing of fsuuid

BugLink: http://bugs.launchpad.net/bugs/1755804
The switch to uuid_t invereted the logic of verfication that &entry->fsuuid
is zero during parsing of "fsuuid=" rule. Instead of making sure the
&entry->fsuuid field is not attempted to be overwritten, we bail out for
perfectly correct rule.

Fixes: 787d8c530af7 ("ima/policy: switch to use uuid_t")
Signed-off-by: Mike Rapoport <rppt@linux.vnet.ibm.com>
Cc: stable@vger.kernel.org
Signed-off-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
(cherry picked from commit 36447456e1cca853188505f2a964dbbeacfc7a7a)
Signed-off-by: Joseph Salisbury <joseph.salisbury@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Acked-by: Khaled Elmously <khalid.elmously@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
security/integrity/ima/ima_policy.c