]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
UBUNTU: SAUCE: apparmor: reduction of vec to single entry is just that entry
authorJohn Johansen <john.johansen@canonical.com>
Mon, 22 Aug 2016 07:47:01 +0000 (00:47 -0700)
committerTim Gardner <tim.gardner@canonical.com>
Mon, 20 Feb 2017 03:57:58 +0000 (20:57 -0700)
commit6c96ac34deab431c3087c009be0d9133dac5e2f3
tree48ddd29d052ab11cadef0c8c77e9ce5e235af98c
parentfa6e33777d76c1ab0364108a5a1bbbe9fc958c02
UBUNTU: SAUCE: apparmor: reduction of vec to single entry is just that entry

If the result of a merge/update/parse is a vec with a single entry
we should not be returning a reference label, but just the label
it self.

BugLink: http://bugs.launchpad.net/bugs/1615889
Signed-off-by: John Johansen <john.johansen@canonical.com>
Signed-off-by: Leann Ogasawara <leann.ogasawara@canonical.com>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
security/apparmor/label.c