Revert "UBUNTU: SAUCE: (no-up) apparmor: fix apparmor spams log with warning message"

This reverts commit 4921af6dca20554e3e822cec0a1e6c01bc4314fe.

Signed-off-by: Tyler Hicks <tyhicks@canonical.com>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
This commit is contained in:
Tyler Hicks
2014-08-06 11:57:07 -05:00
committed by Tim Gardner
parent 7013a43a69
commit cd0c514510

View File

@@ -843,6 +843,9 @@ static int apparmor_unix_may_send(struct socket *sock, struct socket *other)
struct aa_label *label = __aa_get_current_label();
int error;
/* TODO update label instead */
AA_BUG(!aa_label_is_subset(cxt->label, label));
error = xcheck(unix_fs_perm(OP_SENDMSG, label, other->sk, MAY_WRITE),
unix_fs_perm(OP_SENDMSG, other_cxt->label, sock->sk,
MAY_READ));