apparmor: make unpack_array return a trianary value
authorJohn Johansen <john.johansen@canonical.com>
Fri, 26 Aug 2022 16:26:57 +0000 (09:26 -0700)
committerJohn Johansen <john.johansen@canonical.com>
Mon, 3 Oct 2022 21:49:03 +0000 (14:49 -0700)
commit371e50a0b19f9765bfb9e4f172e72f4e9a4625bc
tree9dc2ab1b225616532c4c3da48ad69c5b26a02cc8
parentad596ea74e746d60bb7e13f3adde097a08b2089b
apparmor: make unpack_array return a trianary value

currently unpack_array() does not return an error nor whether the
array is not present. The ability to detect an error or the array
not being present is needed so rework the unpack_array() to return
the needed information.

Signed-off-by: John Johansen <john.johansen@canonical.com>
security/apparmor/policy_unpack.c
security/apparmor/policy_unpack_test.c