OSDN Git Service

apparmor: add label data availability to the feature set
authorJohn Johansen <john.johansen@canonical.com>
Sat, 27 May 2017 01:49:04 +0000 (18:49 -0700)
committerJohn Johansen <john.johansen@canonical.com>
Sun, 11 Jun 2017 00:11:28 +0000 (17:11 -0700)
commita83bd86e833a5842ad033527ea9af589efa6dc84
treeb802e0442135e4fa5e71f71dca0c5fd5b6ac6785
parent4ae47f33354a96efb4e4231dec0d72a586b3921c
apparmor: add label data availability to the feature set

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.

Signed-off-by: John Johansen <john.johansen@canonical.com>
security/apparmor/apparmorfs.c