diff options
author | Kees Cook <kees@ubuntu.com> | 2012-01-26 16:29:23 -0800 |
---|---|---|
committer | John Johansen <john.johansen@canonical.com> | 2012-02-27 11:38:19 -0800 |
commit | d384b0a1a35f87f0ad70c29518f98f922b1c15cb (patch) | |
tree | 42560d316dffc636a424e7fa8173400723dcc4e7 /security/apparmor/resource.c | |
parent | a9bf8e9fd561ba9ff1f0f2a1d96e439fcedaaaa4 (diff) | |
download | lwn-d384b0a1a35f87f0ad70c29518f98f922b1c15cb.tar.gz lwn-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.c | 5 |
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) { |