]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
ima/policy: fix parsing of fsuuid
authorMike Rapoport <rppt@linux.vnet.ibm.com>
Wed, 17 Jan 2018 18:27:11 +0000 (20:27 +0200)
committerSeth Forshee <seth.forshee@canonical.com>
Sat, 3 Feb 2018 17:40:45 +0000 (18:40 +0100)
commitb523ab29aa5dd968edef34bebc32314835093849
treeb1b2acccba862c9879f6667152a4b62b0fda4436
parent413b08cfcb6b5ab8f19178f7a6141e603568aba1
ima/policy: fix parsing of fsuuid

BugLink: http://bugs.launchpad.net/bugs/1747169
commit 36447456e1cca853188505f2a964dbbeacfc7a7a upstream.

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>
Signed-off-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
security/integrity/ima/ima_policy.c