~ubuntu-branches/ubuntu/raring/apparmor/raring

« 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: 2007-03-23 16:42:01 UTC
  • Revision ID: james.westby@ubuntu.com-20070323164201-jkax6f0oku087b7l
Tags: upstream-2.0.1+510.dfsg
ImportĀ upstreamĀ versionĀ 2.0.1+510.dfsg

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)