Skip to content
Permalink
Browse files

net/openssh: rename sandbox file to com.openssh.sshd.sb. Revbump.

The openssh.org domain name was never under the control of the
OpenBSD/OpenSSH project but a totally unrelated third party and the
developers urged to use the proper openssh.com domain name as early as
2000.

Further, the former is currently not even working.

Let's do the right thing and use the official domain name.
  • Loading branch information...
Ionic committed Nov 8, 2019
1 parent 0bf853c commit cac41c131e7b95369054fed89b083489b224a4a3
@@ -6,7 +6,7 @@ PortGroup compiler_blacklist_versions 1.0

name openssh
version 8.1p1
revision 4
revision 5
categories net
platforms darwin
maintainers nomaintainer
@@ -133,7 +133,7 @@ if {${name} eq ${subport}} {

# install sandbox definition
xinstall -m 755 -d ${destroot}${prefix}/share/${name}
xinstall -m 644 ${filespath}/org.openssh.sshd.sb ${destroot}${prefix}/share/${name}
xinstall -m 644 ${filespath}/com.openssh.sshd.sb ${destroot}${prefix}/share/${name}

file rename "${destroot}${prefix}/etc/ssh/sshd_config" "${destroot}${prefix}/etc/ssh/sshd_config.example"
file rename "${destroot}${prefix}/etc/ssh/ssh_config" "${destroot}${prefix}/etc/ssh/ssh_config.example"
File renamed without changes.
@@ -1,5 +1,5 @@
--- a/sandbox-darwin.c 2019-10-09 02:31:03.000000000 +0200
+++ b/sandbox-darwin.c 2019-10-11 11:43:45.000000000 +0200
--- a/sandbox-darwin.c 2019-11-08 15:38:15.000000000 +0100
+++ b/sandbox-darwin.c 2019-11-08 15:44:18.000000000 +0100
@@ -63,8 +63,16 @@ ssh_sandbox_child(struct ssh_sandbox *bo
struct rlimit rl_zero;

@@ -8,7 +8,7 @@
+#ifndef SANDBOX_NAMED_EXTERNAL
+#define SANDBOX_NAMED_EXTERNAL (0x3)
+#endif
+ if (sandbox_init("@PREFIX@/share/openssh/org.openssh.sshd.sb",
+ if (sandbox_init("@PREFIX@/share/openssh/com.openssh.sshd.sb",
+ SANDBOX_NAMED_EXTERNAL, &errmsg) == -1)
+#else
if (sandbox_init(kSBXProfilePureComputation, SANDBOX_NAMED,

0 comments on commit cac41c1

Please sign in to comment.
You can’t perform that action at this time.