]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
Remove references to systrace and pledge sandboxes.
authorDarren Tucker <dtucker@dtucker.net>
Fri, 18 Oct 2024 02:37:55 +0000 (13:37 +1100)
committerDarren Tucker <dtucker@dtucker.net>
Fri, 18 Oct 2024 02:38:32 +0000 (13:38 +1100)
ok djm@

configure.ac
sandbox-pledge.c [deleted file]
sandbox-systrace.c [deleted file]

index 591d5a3880c59c23074fe58f2eb580ff4d71938c..97e4ee577924469342fb1e46f3c898df4aef1f9b 100644 (file)
@@ -114,11 +114,6 @@ AC_C_INLINE
 
 AC_CHECK_DECL([LLONG_MAX], [have_llong_max=1], , [#include <limits.h>])
 AC_CHECK_DECL([LONG_LONG_MAX], [have_long_long_max=1], , [#include <limits.h>])
-AC_CHECK_DECL([SYSTR_POLICY_KILL], [have_systr_policy_kill=1], , [
-       #include <sys/types.h>
-       #include <sys/param.h>
-       #include <dev/systrace.h>
-])
 AC_CHECK_DECL([RLIMIT_NPROC],
     [AC_DEFINE([HAVE_RLIMIT_NPROC], [], [sys/resource.h has RLIMIT_NPROC])], , [
        #include <sys/types.h>
@@ -3614,7 +3609,7 @@ AC_CHECK_TYPES([nfds_t], , , [
 # Decide which sandbox style to use
 sandbox_arg=""
 AC_ARG_WITH([sandbox],
-       [  --with-sandbox=style    Specify privilege separation sandbox (no, capsicum, darwin, rlimit, seccomp_filter, systrace, pledge)],
+       [  --with-sandbox=style    Specify privilege separation sandbox (no, capsicum, darwin, rlimit, seccomp_filter)],
        [
                if test "x$withval" = "xyes" ; then
                        sandbox_arg=""
@@ -3731,19 +3726,7 @@ if test "x$sandbox_arg" != "xno"; then
     )
 fi
 
-if test "x$sandbox_arg" = "xpledge" || \
-   ( test -z "$sandbox_arg" && test "x$ac_cv_func_pledge" = "xyes" ) ; then
-       test "x$ac_cv_func_pledge" != "xyes" && \
-               AC_MSG_ERROR([pledge sandbox requires pledge(2) support])
-       SANDBOX_STYLE="pledge"
-       AC_DEFINE([SANDBOX_PLEDGE], [1], [Sandbox using pledge(2)])
-elif test "x$sandbox_arg" = "xsystrace" || \
-   ( test -z "$sandbox_arg" && test "x$have_systr_policy_kill" = "x1" ) ; then
-       test "x$have_systr_policy_kill" != "x1" && \
-               AC_MSG_ERROR([systrace sandbox requires systrace headers and SYSTR_POLICY_KILL support])
-       SANDBOX_STYLE="systrace"
-       AC_DEFINE([SANDBOX_SYSTRACE], [1], [Sandbox using systrace(4)])
-elif test "x$sandbox_arg" = "xdarwin" || \
+if test "x$sandbox_arg" = "xdarwin" || \
      ( test -z "$sandbox_arg" && test "x$ac_cv_func_sandbox_init" = "xyes" && \
        test "x$ac_cv_header_sandbox_h" = "xyes") ; then
        test "x$ac_cv_func_sandbox_init" != "xyes" -o \
diff --git a/sandbox-pledge.c b/sandbox-pledge.c
deleted file mode 100644 (file)
index e69de29..0000000
diff --git a/sandbox-systrace.c b/sandbox-systrace.c
deleted file mode 100644 (file)
index e69de29..0000000