News for hackers. Stuff that matters.
Re:Show HN: Redbean – Single-file distributable web server by zimpenfish on Friday February 26, 2021 @05:25AM (#26273314)
IIRC, from vague memories of things flying past, Big Sur won't let a modified binary run once it's been checked by Gatekeeper. Which means the first run gets checked and notarised but when you add the `index.html`, the on-disk binary has changed and Gatekeeper won't allow it to run - I guess it's to prevent malicious code modifications, etc.
Re:Show HN: Redbean – Single-file distributable web server by easton on Friday February 26, 2021 @11:52PM (#26282728)
It looks like you can get around this by adding Terminal.app as a "developer tool" (i.e. it can create processes without hitting Gatekeeper), maybe that works? (once I did that and relaunched terminal, I can run cosmopolitan binaries).

https://docwhat.org/upgrading-to-catalina

Re:Show HN: Redbean – Single-file distributable web server by jart on Friday February 26, 2021 @05:53AM (#26273484)
Oh wow that's good to know. Maybe you have to do something like `cat foo.com >foo2.com` after you've modified it with the zip tool.
Re:Show HN: Redbean – Single-file distributable web server by anderspitman on Friday February 26, 2021 @02:38PM (#26278914)
Thank goodness AAPL is here to protect us from doing cool stuff.
Re:Show HN: Redbean – Single-file distributable web server by oscargrouch on Friday February 26, 2021 @04:44PM (#26280196)
Its good from a security perspective, but also its a nightmare to know that the mothership knows everything you run on your machine.

This will also prevent distribution from outside of their appstore giving it will prevent updates.

So as anything Apple, the world security here is being used as code for personal machines remotely controlled by the mothership.

You trade privacy and freedoms for a little convenience.

Re:Show HN: Redbean – Single-file distributable web server by zimpenfish on Saturday February 27, 2021 @10:12AM (#26285304)
> This will also prevent distribution from outside of their appstore giving it will prevent updates.

I think that if an app is correctly codesigned, Gatekeeper has no issue with it. Also if it's not correctly codesigned but you've ticked "allow unsigned binaries", you can still run them.

> the mothership knows everything you run on your machine

I can't remember the details from the last time this came up but IIRC it only sends a hash and possibly even then only the first time you launch it. Either way, they're not going to block out-of-appstore distribution except if you're a known malicious actor.

Re:Show HN: Redbean – Single-file distributable web server by safeaim on Friday February 26, 2021 @07:05AM (#26273958)
Yeah, but this isn't Big Sur, it's Catalina. But maybe it's the same protection there as well?

The binary didn't work on Ubuntu 18.04 nor CentOS8 either, but I'll report a issue later on today.

Re:Show HN: Redbean – Single-file distributable web server by Wowfunhappy on Saturday February 27, 2021 @10:21PM (#26290394)
What happens if you switch off Gatekeeper?

`sudo spctl --master-disable`