diff options
Diffstat (limited to 'kernel/seccomp.c')
-rw-r--r-- | kernel/seccomp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/seccomp.c b/kernel/seccomp.c index fd023ac24e10..4d7809cdd27d 100644 --- a/kernel/seccomp.c +++ b/kernel/seccomp.c | |||
@@ -522,7 +522,7 @@ void put_seccomp_filter(struct task_struct *tsk) | |||
522 | __put_seccomp_filter(tsk->seccomp.filter); | 522 | __put_seccomp_filter(tsk->seccomp.filter); |
523 | } | 523 | } |
524 | 524 | ||
525 | static void seccomp_init_siginfo(siginfo_t *info, int syscall, int reason) | 525 | static void seccomp_init_siginfo(kernel_siginfo_t *info, int syscall, int reason) |
526 | { | 526 | { |
527 | clear_siginfo(info); | 527 | clear_siginfo(info); |
528 | info->si_signo = SIGSYS; | 528 | info->si_signo = SIGSYS; |
@@ -542,7 +542,7 @@ static void seccomp_init_siginfo(siginfo_t *info, int syscall, int reason) | |||
542 | */ | 542 | */ |
543 | static void seccomp_send_sigsys(int syscall, int reason) | 543 | static void seccomp_send_sigsys(int syscall, int reason) |
544 | { | 544 | { |
545 | struct siginfo info; | 545 | struct kernel_siginfo info; |
546 | seccomp_init_siginfo(&info, syscall, reason); | 546 | seccomp_init_siginfo(&info, syscall, reason); |
547 | force_sig_info(SIGSYS, &info, current); | 547 | force_sig_info(SIGSYS, &info, current); |
548 | } | 548 | } |
@@ -747,7 +747,7 @@ static int __seccomp_filter(int this_syscall, const struct seccomp_data *sd, | |||
747 | /* Dump core only if this is the last remaining thread. */ | 747 | /* Dump core only if this is the last remaining thread. */ |
748 | if (action == SECCOMP_RET_KILL_PROCESS || | 748 | if (action == SECCOMP_RET_KILL_PROCESS || |
749 | get_nr_threads(current) == 1) { | 749 | get_nr_threads(current) == 1) { |
750 | siginfo_t info; | 750 | kernel_siginfo_t info; |
751 | 751 | ||
752 | /* Show the original registers in the dump. */ | 752 | /* Show the original registers in the dump. */ |
753 | syscall_rollback(current, task_pt_regs(current)); | 753 | syscall_rollback(current, task_pt_regs(current)); |