~ubuntu-branches/ubuntu/wily/apparmor/wily

« back to all changes in this revision

Viewing changes to kernel-patches/for-mainline/zap-__setup.diff

  • Committer: Bazaar Package Importer
  • Author(s): Kees Cook
  • Date: 2011-04-27 10:38:07 UTC
  • mfrom: (5.1.118 natty)
  • Revision ID: james.westby@ubuntu.com-20110427103807-ym3rhwys6o84ith0
Tags: 2.6.1-2
debian/copyright: clarify for some full organization names.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
Index: b/security/apparmor/lsm.c
2
 
===================================================================
3
 
--- a/security/apparmor/lsm.c
4
 
+++ b/security/apparmor/lsm.c
5
 
@@ -59,42 +59,6 @@ int apparmor_path_max = 2 * PATH_MAX;
6
 
 module_param_named(path_max, apparmor_path_max, int, S_IRUSR);
7
 
 MODULE_PARM_DESC(apparmor_path_max, "Maximum pathname length allowed");
8
 
 
9
 
-#ifndef MODULE
10
 
-static int __init aa_getopt_complain(char *str)
11
 
-{
12
 
-       get_option(&str, &apparmor_complain);
13
 
-       return 1;
14
 
-}
15
 
-__setup("apparmor_complain=", aa_getopt_complain);
16
 
-
17
 
-static int __init aa_getopt_debug(char *str)
18
 
-{
19
 
-       get_option(&str, &apparmor_debug);
20
 
-       return 1;
21
 
-}
22
 
-__setup("apparmor_debug=", aa_getopt_debug);
23
 
-
24
 
-static int __init aa_getopt_audit(char *str)
25
 
-{
26
 
-       get_option(&str, &apparmor_audit);
27
 
-       return 1;
28
 
-}
29
 
-__setup("apparmor_audit=", aa_getopt_audit);
30
 
-
31
 
-static int __init aa_getopt_logsyscall(char *str)
32
 
-{
33
 
-       get_option(&str, &apparmor_logsyscall);
34
 
-       return 1;
35
 
-}
36
 
-__setup("apparmor_logsyscall=", aa_getopt_logsyscall);
37
 
-
38
 
-static int __init aa_getopt_path_max(char *str)
39
 
-{
40
 
-       get_option(&str, &apparmor_path_max);
41
 
-       return 1;
42
 
-}
43
 
-__setup("apparmor_path_max=", aa_getopt_path_max);
44
 
-#endif
45
 
 
46
 
 static int aa_reject_syscall(struct task_struct *task, gfp_t flags,
47
 
                             const char *name)