From: John Johansen <john.johansen@canonical.com>
To: linux-security-module@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH 02/12] apparmor: add a features/policy dir to interface
Date: Sat, 20 Jul 2013 01:38:37 -0700 [thread overview]
Message-ID: <1374309527-7082-3-git-send-email-john.johansen@canonical.com> (raw)
In-Reply-To: <1374309527-7082-1-git-send-email-john.johansen@canonical.com>
Add a policy directory to features to contain features that can affect
policy compilation but do not affect mediation. Eg of such features would
be types of dfa compression supported, etc.
Signed-off-by: John Johansen <john.johansen@canonical.com>
Acked-by: Kees Cook <kees@ubuntu.com>
---
security/apparmor/apparmorfs.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/security/apparmor/apparmorfs.c b/security/apparmor/apparmorfs.c
index 16c15ec..ad6c748 100644
--- a/security/apparmor/apparmorfs.c
+++ b/security/apparmor/apparmorfs.c
@@ -198,7 +198,12 @@ static struct aa_fs_entry aa_fs_entry_domain[] = {
{ }
};
+static struct aa_fs_entry aa_fs_entry_policy[] = {
+ {}
+};
+
static struct aa_fs_entry aa_fs_entry_features[] = {
+ AA_FS_DIR("policy", aa_fs_entry_policy),
AA_FS_DIR("domain", aa_fs_entry_domain),
AA_FS_DIR("file", aa_fs_entry_file),
AA_FS_FILE_U64("capability", VFS_CAP_FLAGS_MASK),
--
1.8.1.2
next prev parent reply other threads:[~2013-07-20 8:40 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-20 8:38 [Patch 0/12] apparmor: add policy interface and convert to RCU John Johansen
2013-07-20 8:38 ` [PATCH 01/12] apparmor: enable users to query whether apparmor is enabled John Johansen
2013-07-20 8:38 ` John Johansen [this message]
2013-07-20 8:38 ` [PATCH 03/12] apparmor: provide base for multiple profiles to be replaced at once John Johansen
2013-07-20 8:38 ` [PATCH 04/12] apparmor: convert profile lists to RCU based locking John Johansen
2013-07-20 8:38 ` [PATCH 05/12] apparmor: change how profile replacement update is done John Johansen
2013-07-20 8:38 ` [PATCH 06/12] apparmor: update how unconfined is handled John Johansen
2013-07-20 8:38 ` [PATCH 07/12] apparmor: rework namespace free path John Johansen
2013-07-20 8:38 ` [PATCH 08/12] apparmor: make free_profile available outside of policy.c John Johansen
2013-07-20 8:38 ` [PATCH 09/12] apparmor: allow setting any profile into the unconfined state John Johansen
2013-07-20 8:38 ` [PATCH 10/12] apparmor: Add interface files for profiles and namespaces John Johansen
2013-07-20 8:38 ` [PATCH 11/12] apparmor: add an optional profile attachment string for profiles John Johansen
2013-07-20 8:38 ` [PATCH 12/12] apparmor: Add the profile introspection file to interface John Johansen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1374309527-7082-3-git-send-email-john.johansen@canonical.com \
--to=john.johansen@canonical.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-security-module@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®