apparmor: provide a bounded version of label_parse
authorJohn Johansen <john.johansen@canonical.com>
Wed, 6 Sep 2017 23:33:56 +0000 (16:33 -0700)
committerJohn Johansen <john.johansen@canonical.com>
Fri, 9 Feb 2018 19:30:01 +0000 (11:30 -0800)
commit95652cac83605d96cf3849e80e3e3f4dce74f5da
tree7359f5c6003ac7e7af47eeceed173bc10fb3a4a1
parent6e0654d20ed9679cbf75a0ff7cd786e364f7f09a
apparmor: provide a bounded version of label_parse

some label/context sources might not be guaranteed to be null terminiated
provide a size bounded version of label parse to deal with these.

Signed-off-by: John Johansen <john.johansen@canonical.com>
Acked-by: Seth Arnold <seth.arnold@canonical.com>
security/apparmor/include/label.h
security/apparmor/label.c