Skip to content

Commit

Permalink
lsm/apparmor: actually report an error when we fail to wire AppArmor …
Browse files Browse the repository at this point in the history
…profile

Link: https://bugs.launchpad.net/ubuntu-kernel-tests/+bug/1931064
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
  • Loading branch information
Christian Brauner committed Jun 8, 2021
1 parent 88a5ffc commit ef68581
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lxc/lsm/apparmor.c
Expand Up @@ -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;
}

/*
Expand Down

0 comments on commit ef68581

Please sign in to comment.