diff options
Diffstat (limited to 'kernel')
| -rw-r--r-- | kernel/auditsc.c | 6 | ||||
| -rw-r--r-- | kernel/exit.c | 3 | ||||
| -rw-r--r-- | kernel/sys_ni.c | 2 | ||||
| -rw-r--r-- | kernel/sysctl.c | 18 |
4 files changed, 22 insertions, 7 deletions
diff --git a/kernel/auditsc.c b/kernel/auditsc.c index 685c25175d96..d7e7e637b92a 100644 --- a/kernel/auditsc.c +++ b/kernel/auditsc.c | |||
| @@ -841,7 +841,7 @@ static void audit_log_exit(struct audit_context *context, gfp_t gfp_mask) | |||
| 841 | 841 | ||
| 842 | for (aux = context->aux; aux; aux = aux->next) { | 842 | for (aux = context->aux; aux; aux = aux->next) { |
| 843 | 843 | ||
| 844 | ab = audit_log_start(context, GFP_KERNEL, aux->type); | 844 | ab = audit_log_start(context, gfp_mask, aux->type); |
| 845 | if (!ab) | 845 | if (!ab) |
| 846 | continue; /* audit_panic has been called */ | 846 | continue; /* audit_panic has been called */ |
| 847 | 847 | ||
| @@ -878,14 +878,14 @@ static void audit_log_exit(struct audit_context *context, gfp_t gfp_mask) | |||
| 878 | } | 878 | } |
| 879 | 879 | ||
| 880 | if (context->pwd && context->pwdmnt) { | 880 | if (context->pwd && context->pwdmnt) { |
| 881 | ab = audit_log_start(context, GFP_KERNEL, AUDIT_CWD); | 881 | ab = audit_log_start(context, gfp_mask, AUDIT_CWD); |
| 882 | if (ab) { | 882 | if (ab) { |
| 883 | audit_log_d_path(ab, "cwd=", context->pwd, context->pwdmnt); | 883 | audit_log_d_path(ab, "cwd=", context->pwd, context->pwdmnt); |
| 884 | audit_log_end(ab); | 884 | audit_log_end(ab); |
| 885 | } | 885 | } |
| 886 | } | 886 | } |
| 887 | for (i = 0; i < context->name_count; i++) { | 887 | for (i = 0; i < context->name_count; i++) { |
| 888 | ab = audit_log_start(context, GFP_KERNEL, AUDIT_PATH); | 888 | ab = audit_log_start(context, gfp_mask, AUDIT_PATH); |
| 889 | if (!ab) | 889 | if (!ab) |
| 890 | continue; /* audit_panic has been called */ | 890 | continue; /* audit_panic has been called */ |
| 891 | 891 | ||
diff --git a/kernel/exit.c b/kernel/exit.c index 93cee3671332..531aadca5530 100644 --- a/kernel/exit.c +++ b/kernel/exit.c | |||
| @@ -360,6 +360,9 @@ void daemonize(const char *name, ...) | |||
| 360 | fs = init_task.fs; | 360 | fs = init_task.fs; |
| 361 | current->fs = fs; | 361 | current->fs = fs; |
| 362 | atomic_inc(&fs->count); | 362 | atomic_inc(&fs->count); |
| 363 | exit_namespace(current); | ||
| 364 | current->namespace = init_task.namespace; | ||
| 365 | get_namespace(current->namespace); | ||
| 363 | exit_files(current); | 366 | exit_files(current); |
| 364 | current->files = init_task.files; | 367 | current->files = init_task.files; |
| 365 | atomic_inc(¤t->files->count); | 368 | atomic_inc(¤t->files->count); |
diff --git a/kernel/sys_ni.c b/kernel/sys_ni.c index 17313b99e53d..1067090db6b1 100644 --- a/kernel/sys_ni.c +++ b/kernel/sys_ni.c | |||
| @@ -104,6 +104,8 @@ cond_syscall(sys_setreuid16); | |||
| 104 | cond_syscall(sys_setuid16); | 104 | cond_syscall(sys_setuid16); |
| 105 | cond_syscall(sys_vm86old); | 105 | cond_syscall(sys_vm86old); |
| 106 | cond_syscall(sys_vm86); | 106 | cond_syscall(sys_vm86); |
| 107 | cond_syscall(compat_sys_ipc); | ||
| 108 | cond_syscall(compat_sys_sysctl); | ||
| 107 | 109 | ||
| 108 | /* arch-specific weak syscall entries */ | 110 | /* arch-specific weak syscall entries */ |
| 109 | cond_syscall(sys_pciconfig_read); | 111 | cond_syscall(sys_pciconfig_read); |
diff --git a/kernel/sysctl.c b/kernel/sysctl.c index 7654d55c47f5..c05a2b7125e1 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c | |||
| @@ -44,14 +44,12 @@ | |||
| 44 | #include <linux/limits.h> | 44 | #include <linux/limits.h> |
| 45 | #include <linux/dcache.h> | 45 | #include <linux/dcache.h> |
| 46 | #include <linux/syscalls.h> | 46 | #include <linux/syscalls.h> |
| 47 | #include <linux/nfs_fs.h> | ||
| 48 | #include <linux/acpi.h> | ||
| 47 | 49 | ||
| 48 | #include <asm/uaccess.h> | 50 | #include <asm/uaccess.h> |
| 49 | #include <asm/processor.h> | 51 | #include <asm/processor.h> |
| 50 | 52 | ||
| 51 | #ifdef CONFIG_ROOT_NFS | ||
| 52 | #include <linux/nfs_fs.h> | ||
| 53 | #endif | ||
| 54 | |||
| 55 | #if defined(CONFIG_SYSCTL) | 53 | #if defined(CONFIG_SYSCTL) |
| 56 | 54 | ||
| 57 | /* External variables not in a header file. */ | 55 | /* External variables not in a header file. */ |
| @@ -638,6 +636,7 @@ static ctl_table kern_table[] = { | |||
| 638 | .proc_handler = &proc_dointvec, | 636 | .proc_handler = &proc_dointvec, |
| 639 | }, | 637 | }, |
| 640 | #endif | 638 | #endif |
| 639 | #if defined(CONFIG_MMU) | ||
| 641 | { | 640 | { |
| 642 | .ctl_name = KERN_RANDOMIZE, | 641 | .ctl_name = KERN_RANDOMIZE, |
| 643 | .procname = "randomize_va_space", | 642 | .procname = "randomize_va_space", |
| @@ -646,6 +645,7 @@ static ctl_table kern_table[] = { | |||
| 646 | .mode = 0644, | 645 | .mode = 0644, |
| 647 | .proc_handler = &proc_dointvec, | 646 | .proc_handler = &proc_dointvec, |
| 648 | }, | 647 | }, |
| 648 | #endif | ||
| 649 | #if defined(CONFIG_S390) && defined(CONFIG_SMP) | 649 | #if defined(CONFIG_S390) && defined(CONFIG_SMP) |
| 650 | { | 650 | { |
| 651 | .ctl_name = KERN_SPIN_RETRY, | 651 | .ctl_name = KERN_SPIN_RETRY, |
| @@ -656,6 +656,16 @@ static ctl_table kern_table[] = { | |||
| 656 | .proc_handler = &proc_dointvec, | 656 | .proc_handler = &proc_dointvec, |
| 657 | }, | 657 | }, |
| 658 | #endif | 658 | #endif |
| 659 | #ifdef CONFIG_ACPI_SLEEP | ||
| 660 | { | ||
| 661 | .ctl_name = KERN_ACPI_VIDEO_FLAGS, | ||
| 662 | .procname = "acpi_video_flags", | ||
| 663 | .data = &acpi_video_flags, | ||
| 664 | .maxlen = sizeof (unsigned long), | ||
| 665 | .mode = 0644, | ||
| 666 | .proc_handler = &proc_dointvec, | ||
| 667 | }, | ||
| 668 | #endif | ||
| 659 | { .ctl_name = 0 } | 669 | { .ctl_name = 0 } |
| 660 | }; | 670 | }; |
| 661 | 671 | ||
