From: Christian Brauner Date: Mon, 7 Jun 2021 13:37:38 +0000 (+0200) Subject: lsm/apparmor: actually report an error when we fail to wire AppArmor profile X-Git-Tag: lxc-5.0.0~160^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F3856%2Fhead;p=thirdparty%2Flxc.git lsm/apparmor: actually report an error when we fail to wire AppArmor profile Link: https://bugs.launchpad.net/ubuntu-kernel-tests/+bug/1931064 Signed-off-by: Christian Brauner --- diff --git a/src/lxc/lsm/apparmor.c b/src/lxc/lsm/apparmor.c index 73429ed33..3e4aa40d7 100644 --- a/src/lxc/lsm/apparmor.c +++ b/src/lxc/lsm/apparmor.c @@ -1184,7 +1184,7 @@ static int apparmor_process_label_set_at(struct lsm_ops *ops, int label_fd, cons ret = lxc_write_nointr(label_fd, command, len - 1); INFO("Set AppArmor label to \"%s\"", label); - return 0; + return ret; } /*