Colin Ian King a61ecd329c apparmor: fix error returns checks by making size a ssize_t
Currently variable size is a unsigned size_t, hence comparisons to
see if it is less than zero (for error checking) will always be
false.  Fix this by making size a ssize_t

Detected by CoverityScan, CID#1466080 ("Unsigned compared against 0")

Fixes: 8e51f9087f40 ("apparmor: Add support for attaching profiles via xattr, presence and value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: John Johansen <john.johansen@canonical.com>
2018-03-23 17:25:25 -07:00
..
2017-04-07 08:58:35 +10:00
2018-02-09 11:30:01 -08:00
2018-02-09 11:30:01 -08:00
2018-02-09 11:30:01 -08:00
2018-02-09 11:30:01 -08:00
2018-02-09 11:30:01 -08:00
2018-02-09 11:30:01 -08:00
2017-01-16 00:42:17 -08:00