Re: [apparmor] [PATCH 16/27] apparmor: add a features/policy dir to interface

2012-11-21 Thread Kees Cook
On Tue, Nov 20, 2012 at 08:39:56PM -0800, John Johansen wrote:
> 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 

Acked-by: Kees Cook 

-- 
Kees Cook

-- 
AppArmor mailing list
AppArmor@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/apparmor


[apparmor] [PATCH 16/27] apparmor: add a features/policy dir to interface

2012-11-20 Thread John Johansen
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 
---
 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.7.10.4


-- 
AppArmor mailing list
AppArmor@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/apparmor