]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
UBUNTU: SAUCE: apparmor: add label data availability to the feature set
authorJohn Johansen <john.johansen@canonical.com>
Fri, 31 Mar 2017 12:05:06 +0000 (05:05 -0700)
committerTim Gardner <tim.gardner@canonical.com>
Mon, 3 Apr 2017 14:14:28 +0000 (15:14 +0100)
gsettings mediation needs to be able to determine if apparmor supports
label data queries. A label data query can be done to test for support
but its failure is indistinguishable from other failures, making it an
unreliable indicator.

Fix by making support of label data queries available as a flag in the
apparmorfs features dir tree.

BugLink: http://bugs.launchpad.net/bugs/1678023
Signed-off-by: John Johansen <john.johansen@canonical.com>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
security/apparmor/apparmorfs.c

index 7147b33a5effc5f2f68f4f33c71c85f25514539a..2ae58fd5c116e849c7156f285ec062112e98525a 100644 (file)
@@ -1568,6 +1568,7 @@ static struct aa_fs_entry aa_fs_entry_dbus[] = {
 
 static struct aa_fs_entry aa_fs_entry_query_label[] = {
        AA_FS_FILE_STRING("perms", "allow deny audit quiet"),
+       AA_FS_FILE_BOOLEAN("data",              1),
        { }
 };