Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit f4585bc2 authored by Tyler Hicks's avatar Tyler Hicks Committed by John Johansen
Browse files

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: 4f3b3f2d

 ("apparmor: add profile permission query ability")
Signed-off-by: default avatarTyler Hicks <tyhicks@canonical.com>
Acked-by: default avatarSerge Hallyn <serge@hallyn.com>
Signed-off-by: default avatarJohn Johansen <john.johansen@canonical.com>
parent 7f3ebcf2
Branches
Tags
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment