mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-14 13:31:27 +00:00
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:
parent
4e92ee3b5d
commit
fd697cc0e9
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user