diff options
author | Tyler Hicks <tyhicks@canonical.com> | 2018-07-06 08:25:01 +0300 |
---|---|---|
committer | John Johansen <john.johansen@canonical.com> | 2018-07-20 02:29:13 +0300 |
commit | f4585bc20fc785d94192cf780ee925e25891ddfd (patch) | |
tree | 980af813ba27efaf57f98d3c7323a716ca40b221 /kernel/smpboot.c | |
parent | 7f3ebcf2b1395e0248e56146041e1e5625fd2f23 (diff) | |
download | linux-f4585bc20fc785d94192cf780ee925e25891ddfd.tar.xz |
apparmor: Fully initialize aa_perms struct when answering userspace query
Fully initialize the aa_perms struct in profile_query_cb() to avoid the
potential of using an uninitialized struct member's value in a response
to a query from userspace.
Detected by CoverityScan CID#1415126 ("Uninitialized scalar variable")
Fixes: 4f3b3f2d79a4 ("apparmor: add profile permission query ability")
Signed-off-by: Tyler Hicks <tyhicks@canonical.com>
Acked-by: Serge Hallyn <serge@hallyn.com>
Signed-off-by: John Johansen <john.johansen@canonical.com>
Diffstat (limited to 'kernel/smpboot.c')
0 files changed, 0 insertions, 0 deletions