Update openssh 9.0
This commit is contained in:
@ -1,25 +1,21 @@
|
||||
--- platform-tracing.c.orig 2021-09-26 07:03:19.000000000 -0700
|
||||
+++ platform-tracing.c 2021-10-15 10:08:20.537813000 -0700
|
||||
@@ -16,6 +16,10 @@
|
||||
|
||||
#include "includes.h"
|
||||
|
||||
--- platform-tracing.c.orig 2022-03-07 14:48:27.152541000 -0800
|
||||
+++ platform-tracing.c 2022-03-07 14:56:33.402458000 -0800
|
||||
@@ -32,6 +32,9 @@
|
||||
#include <stdarg.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
+#if defined(HAVE_PROCCTL)
|
||||
+#include <string.h>
|
||||
+#include <unistd.h>
|
||||
+#endif
|
||||
#include <sys/types.h>
|
||||
#ifdef HAVE_SYS_PROCCTL_H
|
||||
#include <sys/procctl.h>
|
||||
@@ -40,8 +44,9 @@ platform_disable_tracing(int strict)
|
||||
|
||||
#include "log.h"
|
||||
|
||||
@@ -42,7 +45,7 @@ platform_disable_tracing(int strict)
|
||||
/* On FreeBSD, we should make this process untraceable */
|
||||
int disable_trace = PROC_TRACE_CTL_DISABLE;
|
||||
|
||||
- if (procctl(P_PID, 0, PROC_TRACE_CTL, &disable_trace) && strict)
|
||||
- fatal("unable to make the process untraceable");
|
||||
+ if (procctl(P_PID, getpid(), PROC_TRACE_CTL, &disable_trace) && strict)
|
||||
+ fatal("unable to make the process untraceable: %s for pid %d",
|
||||
+ strerror(errno), (int)getpid());
|
||||
fatal("unable to make the process untraceable: %s",
|
||||
strerror(errno));
|
||||
#endif
|
||||
#if defined(HAVE_PRCTL) && defined(PR_SET_DUMPABLE)
|
||||
/* Disable ptrace on Linux without sgid bit */
|
||||
|
||||
Reference in New Issue
Block a user