]> git.baikalelectronics.ru Git - kernel.git/commit
apparmor: Fix aa_label_build() error handling for failed merges
authorJohn Johansen <john.johansen@canonical.com>
Thu, 24 Jan 2019 21:53:05 +0000 (13:53 -0800)
committerJohn Johansen <john.johansen@canonical.com>
Fri, 1 Feb 2019 16:01:39 +0000 (08:01 -0800)
commitfdb3cb3bc2145cf0f6cf1d75d572fcd368f80dc9
tree83b0a5146107db7c386670e32721a5fb9cc15446
parentda1e87b12a5e9d0c432001c5b80360f8a82fcd4d
apparmor: Fix aa_label_build() error handling for failed merges

aa_label_merge() can return NULL for memory allocations failures
make sure to handle and set the correct error in this case.

Reported-by: Peng Hao <peng.hao2@zte.com.cn>
Signed-off-by: John Johansen <john.johansen@canonical.com>
security/apparmor/domain.c