summaryrefslogtreecommitdiffstats
path: root/security/apparmor/resource.c
diff options
context:
space:
mode:
authorKees Cook <kees@ubuntu.com>2012-01-27 01:29:23 +0100
committerJohn Johansen <john.johansen@canonical.com>2012-02-27 20:38:19 +0100
commitd384b0a1a35f87f0ad70c29518f98f922b1c15cb (patch)
tree42560d316dffc636a424e7fa8173400723dcc4e7 /security/apparmor/resource.c
parentAppArmor: add "file" details to securityfs (diff)
downloadlinux-d384b0a1a35f87f0ad70c29518f98f922b1c15cb.tar.xz
linux-d384b0a1a35f87f0ad70c29518f98f922b1c15cb.zip
AppArmor: export known rlimit names/value mappings in securityfs
Since the parser needs to know which rlimits are known to the kernel, export the list via a mask file in the "rlimit" subdirectory in the securityfs "features" directory. Signed-off-by: Kees Cook <kees@ubuntu.com> Signed-off-by: John Johansen <john.johansen@canonical.com>
Diffstat (limited to 'security/apparmor/resource.c')
-rw-r--r--security/apparmor/resource.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/security/apparmor/resource.c b/security/apparmor/resource.c
index a4136c10b1c6..72c25a4f2cfd 100644
--- a/security/apparmor/resource.c
+++ b/security/apparmor/resource.c
@@ -23,6 +23,11 @@
*/
#include "rlim_names.h"
+struct aa_fs_entry aa_fs_entry_rlimit[] = {
+ AA_FS_FILE_STRING("mask", AA_FS_RLIMIT_MASK),
+ { }
+};
+
/* audit callback for resource specific fields */
static void audit_cb(struct audit_buffer *ab, void *va)
{