]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
lsm/apparmor: actually report an error when we fail to wire AppArmor profile 3856/head
authorChristian Brauner <christian.brauner@ubuntu.com>
Mon, 7 Jun 2021 13:37:38 +0000 (15:37 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Mon, 7 Jun 2021 13:38:10 +0000 (15:38 +0200)
Link: https://bugs.launchpad.net/ubuntu-kernel-tests/+bug/1931064
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/lsm/apparmor.c

index 73429ed331de2542a19f7c993f5c8b9e08d9c768..3e4aa40d7200d8fb6b385b3b2704ca3a8592c4d0 100644 (file)
@@ -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;
 }
 
 /*