apparmor: fix setting unconfined mode on a loaded profile
stable inclusion from stable-v5.10.138 commit 1ac89741a2e7ce6d446df33ad610a1e41f6c3241 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I60QFD Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=1ac89741a2e7ce6d446df33ad610a1e41f6c3241 -------------------------------- commit 3bbb7b2e upstream. When loading a profile that is set to unconfined mode, that label flag is not set when it should be. Ensure it is set so that when used in a label the unconfined check will be applied correctly. Fixes: 03816507 ("apparmor: allow setting any profile into the unconfined state") Signed-off-by: NJohn Johansen <john.johansen@canonical.com> Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com> Reviewed-by: NWei Li <liwei391@huawei.com>
Showing
想要评论请 注册 或 登录