Skip to content
Commit 5515a8e3 authored by Muhammad Usama Anjum's avatar Muhammad Usama Anjum Committed by John Johansen
Browse files

apparmor: store return value of unpack_perms_table() to signed variable



The unpack_perms_table() can return error which is negative value. Store
the return value to a signed variable. policy->size is unsigned
variable. It shouldn't be used to store the return status.

Fixes: 2d6b2dea7f3c ("apparmor: add the ability for policy to specify a permission table")
Signed-off-by: default avatarMuhammad Usama Anjum <usama.anjum@collabora.com>
Signed-off-by: default avatarJohn Johansen <john.johansen@canonical.com>
parent 32490541
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment