Skip to content
Commit 7f3ebcf2 authored by Tyler Hicks's avatar Tyler Hicks Committed by John Johansen
Browse files

apparmor: Check buffer bounds when mapping permissions mask



Don't read past the end of the buffer containing permissions
characters or write past the end of the destination string.

Detected by CoverityScan CID#1415361, 1415376 ("Out-of-bounds access")

Fixes: e53cfe6c ("apparmor: rework perm mapping to a slightly broader set")
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 fb7d1bcf
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment