apparmor: Convert to use match_string() helper
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 7 May 2018 13:39:03 +0000 (16:39 +0300)
committerJohn Johansen <john.johansen@canonical.com>
Thu, 7 Jun 2018 08:50:40 +0000 (01:50 -0700)
commit5d8779a5cdda5530d5706586638a5cf0ac5bd8a3
treea0e6052d3fc644c4b7f8ab954f6e442d2866be8b
parent38125c2c2beb3c770d8fcdbcd846bd95938866d3
apparmor: Convert to use match_string() helper

The new helper returns index of the matching string in an array.
We are going to use it here.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Jay Freyensee <why2jjj.linux@gmail.com>
Signed-off-by: John Johansen <john.johansen@canonical.com>
security/apparmor/lsm.c