Message ID | 1471943154-14507-2-git-send-email-john.johansen@canonical.com |
---|---|
State | New |
Headers | show |
diff --git a/security/apparmor/label.c b/security/apparmor/label.c index 21c9d6f..c453fc8 100644 --- a/security/apparmor/label.c +++ b/security/apparmor/label.c @@ -1993,7 +1993,7 @@ static struct aa_label *__label_update(struct aa_label *label) write_lock_irqsave(&ls->lock, flags); label_for_each(i, label, p) { new->vec[i.i] = aa_get_newest_profile(p); - if (&new->vec[i.i]->label.proxy != &p->label.proxy) + if (new->vec[i.i]->label.proxy != p->label.proxy) invcount++; }
The comparing the proxy pointer, not the address of the labels proxy pointer. BugLink: http://bugs.launchpad.net/bugs/1615878 Signed-off-by: John Johansen <john.johansen@canonical.com> --- security/apparmor/label.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)