/[linux-patches]/genpatches-2.6/tags/2.6.19-3/4405_alpha-sysctl-uac.patch
Gentoo

Diff of /genpatches-2.6/tags/2.6.19-3/4405_alpha-sysctl-uac.patch

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

Revision 305 Revision 317
125+__initcall(init_uac_sysctl); 125+__initcall(init_uac_sysctl);
126Index: linux/include/linux/sysctl.h 126Index: linux/include/linux/sysctl.h
127=================================================================== 127===================================================================
128--- linux.orig/include/linux/sysctl.h 128--- linux.orig/include/linux/sysctl.h
129+++ linux/include/linux/sysctl.h 129+++ linux/include/linux/sysctl.h
130@@ -147,6 +147,9 @@ enum 130@@ -148,6 +148,9 @@ enum
131 KERN_SETUID_DUMPABLE=69, /* int: behaviour of dumps for setuid core */
132 KERN_SPIN_RETRY=70, /* int: number of spinlock retries */ 131 KERN_SPIN_RETRY=70, /* int: number of spinlock retries */
132 KERN_ACPI_VIDEO_FLAGS=71, /* int: flags for setting up video after ACPI sleep */
133 KERN_FBSPLASH=71, /* string: path to fbsplash helper */ 133 KERN_FBSPLASH=72, /* string: path to fbsplash helper */
134+#ifdef CONFIG_ALPHA_UAC_SYSCTL 134+#ifdef CONFIG_ALPHA_UAC_SYSCTL
135+ KERN_UAC_POLICY=72, /* int: Alpha unaligned access control policy flags */ 135+ KERN_UAC_POLICY=73, /* int: Alpha unaligned access control policy flags */
136+#endif /* CONFIG_ALPHA_UAC_SYSCTL */ 136+#endif /* CONFIG_ALPHA_UAC_SYSCTL */
137 }; 137 };
138 138
139 139
140@@ -230,6 +233,17 @@ enum 140@@ -231,6 +234,17 @@ enum
141 PTY_NR=2 141 PTY_NR=2
142 }; 142 };
143 143
144+#ifdef CONFIG_ALPHA_UAC_SYSCTL 144+#ifdef CONFIG_ALPHA_UAC_SYSCTL
145+/* /proc/sys/kernel/uac */ 145+/* /proc/sys/kernel/uac */
157 { 157 {
158Index: linux/kernel/sysctl.c 158Index: linux/kernel/sysctl.c
159=================================================================== 159===================================================================
160--- linux.orig/kernel/sysctl.c 160--- linux.orig/kernel/sysctl.c
161+++ linux/kernel/sysctl.c 161+++ linux/kernel/sysctl.c
162@@ -157,6 +157,9 @@ extern ctl_table inotify_table[]; 162@@ -153,6 +153,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@@ -225,7 +228,14 @@ static ctl_table root_table[] = { 172@@ -221,7 +224,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.305  
changed lines
  Added in v.317

  ViewVC Help
Powered by ViewVC 1.1.20