/[linux-patches]/hardened/2.6/trunk/2.6.18/4405_alpha-sysctl-uac.patch
Gentoo

Diff of /hardened/2.6/trunk/2.6.18/4405_alpha-sysctl-uac.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 879 Revision 880
125+__initcall(init_uac_sysctl); 125+__initcall(init_uac_sysctl);
126Index: linux-2.6.18/include/linux/sysctl.h 126Index: linux-2.6.18/include/linux/sysctl.h
127=================================================================== 127===================================================================
128--- linux-2.6.18.orig/include/linux/sysctl.h 128--- linux-2.6.18.orig/include/linux/sysctl.h
129+++ linux-2.6.18/include/linux/sysctl.h 129+++ linux-2.6.18/include/linux/sysctl.h
130@@ -151,6 +151,9 @@ enum 130@@ -150,6 +150,9 @@ enum
131 KERN_IA64_UNALIGNED=72, /* int: ia64 unaligned userland trap enable */
131 KERN_COMPAT_LOG=73, /* int: print compat layer messages */ 132 KERN_COMPAT_LOG=73, /* int: print compat layer messages */
132 KERN_MAX_LOCK_DEPTH=74, 133 KERN_MAX_LOCK_DEPTH=74,
133+#ifdef CONFIG_ALPHA_UAC_SYSCTL 134+#ifdef CONFIG_ALPHA_UAC_SYSCTL
134+ KERN_UAC_POLICY=76, /* int: Alpha unaligned access control policy flags */ 135+ KERN_UAC_POLICY=76, /* int: Alpha unaligned access control policy flags */
135+#endif /* CONFIG_ALPHA_UAC_SYSCTL */ 136+#endif /* CONFIG_ALPHA_UAC_SYSCTL */
136 }; 137 };
137 138
138
139 139
140@@ -238,6 +241,17 @@ enum 140@@ -238,6 +241,17 @@ enum
141 PTY_NR=2 141 PTY_NR=2
142 }; 142 };
143 143
157 { 157 {
158Index: linux-2.6.18/kernel/sysctl.c 158Index: linux-2.6.18/kernel/sysctl.c
159=================================================================== 159===================================================================
160--- linux-2.6.18.orig/kernel/sysctl.c 160--- linux-2.6.18.orig/kernel/sysctl.c
161+++ linux-2.6.18/kernel/sysctl.c 161+++ linux-2.6.18/kernel/sysctl.c
162@@ -164,6 +164,9 @@ extern ctl_table inotify_table[]; 162@@ -161,6 +161,9 @@ extern ctl_table inotify_table[];
163 #ifdef HAVE_ARCH_PICK_MMAP_LAYOUT 163 #ifdef HAVE_ARCH_PICK_MMAP_LAYOUT
164 int sysctl_legacy_va_layout; 164 int sysctl_legacy_va_layout;
165 #endif 165 #endif
166+#ifdef CONFIG_ALPHA_UAC_SYSCTL 166+#ifdef CONFIG_ALPHA_UAC_SYSCTL
167+extern ctl_table uac_table[]; 167+extern ctl_table uac_table[];
168+#endif 168+#endif
169 169
170 /* /proc declarations: */ 170 /* /proc declarations: */
171 171
172@@ -226,7 +229,14 @@ static ctl_table root_table[] = { 172@@ -223,7 +226,14 @@ static ctl_table root_table[] = {
173 .mode = 0555, 173 .mode = 0555,
174 .child = dev_table, 174 .child = dev_table,
175 }, 175 },
176- 176-
177+#ifdef CONFIG_ALPHA_UAC_SYSCTL 177+#ifdef CONFIG_ALPHA_UAC_SYSCTL

Legend:
Removed from v.879  
changed lines
  Added in v.880

  ViewVC Help
Powered by ViewVC 1.1.20