[Git][NTPsec/ntpsec][master] Make seccomp trap print killer syscalls' name.
Hal Murray (@hal.murray)
gitlab at mg.gitlab.com
Sun Nov 26 22:19:42 UTC 2023
Hal Murray pushed to branch master at NTPsec / ntpsec
Commits:
c066ee7b by James Browning at 2023-11-26T22:09:51+00:00
Make seccomp trap print killer syscalls' name.
- - - - -
1 changed file:
- ntpd/ntp_sandbox.c
Changes:
=====================================
ntpd/ntp_sandbox.c
=====================================
@@ -568,8 +568,11 @@ static void catchTrap(int sig, siginfo_t *si, void *u)
UNUSED_ARG(u); /* unused ucontext_t */
msyslog(LOG_ERR, "ERR: SIGSYS: got a trap.\n");
if ( si->si_syscall ) {
- msyslog(LOG_ERR, "ERR: SIGSYS/seccomp bad syscall %d/%#x\n",
- si->si_syscall, si->si_arch);
+ char *call = seccomp_syscall_resolve_num_arch(
+ si->si_arch, si->si_syscall);
+ msyslog(LOG_ERR, "ERR: SIGSYS/seccomp bad syscall %d(%s)/%#x\n",
+ si->si_syscall, call, si->si_arch);
+ free(call);
}
#ifndef BACKTRACE_DISABLED
backtrace_log();
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/commit/c066ee7bca252209baab6a00c1b39740488ece22
--
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/commit/c066ee7bca252209baab6a00c1b39740488ece22
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20231126/367cd82e/attachment.htm>
More information about the vc
mailing list