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 <christian.brauner@ubuntu.com>
This commit is contained in:
Christian Brauner 2021-06-07 15:37:38 +02:00
parent 4e92ee3b5d
commit fd697cc0e9
No known key found for this signature in database
GPG Key ID: 8EB056D53EECB12D

View 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); ret = lxc_write_nointr(label_fd, command, len - 1);
INFO("Set AppArmor label to \"%s\"", label); INFO("Set AppArmor label to \"%s\"", label);
return 0; return ret;
} }
/* /*