frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

FreeBSD Capsicum vs. Linux Seccomp Process Sandboxing

https://vivianvoss.net/blog/capsicum-vs-seccomp
56•vermaden•3h ago

Comments

PeterWhittaker•1h ago
Interesting article, but it compares apples to a fruit stand: The approach could be improved by comparing Capsicum to using seccomp in the same way.

Sometime ago I wrote a library for a customer that did exactly that: Open a number of resources, e.g., stdin, stdout, stderr, a pipe or two, a socket or two, make the seccomp calls necessary to restrict the use of read/write/etc. to the associated file descriptors, then lock out all other system calls - which includes seccomp-related calls.

Basically, the library took a very Capsicum-like approach of whitelisting specific actions then sealing itself against further changes.

This is a LOT of work, of course, and the available APIs don't make it particularly easy or elegant, but it is definitely doable. I chose this approach because the docker whitelist approach was far too open ended and "uncurated", if you will, for the use-case we were targeting.

In this particular case, I was aided by the fact the library was written to support the very specific use-case of filters running in containers using FIFOs for IPC, logging, and reporting: Every filter saw exactly the same interfaces to the world, so it was relatively easier to lock things down.

Having said that, I wish Linux had a Capsicum-equivalent call, or, even better for the approach I took, a friendlier way to whitelist specific calls.

thomashabets2•1h ago
A problem with that approach is that libc can after an upgrade decide to start doing syscalls you were not expecting. Like the first time you call `printf()` it calls `newfstatat()`. Only the first time. Maybe in the future it'll call it more often than that, and then your binary breaks.

I'm not sure what glibc's latest policy is on linking statically, but at least it used to be basically unsupported and bugs about it were ignored. But even if supported, you can't know if it under some configurations or runtime circumstances uses dlopen for something.

Or maybe once you juggle more than X file descriptors some code switches from using `poll()` to using `select()` (or `epoll()`).

My thoughts last time I looked at seccomp: https://blog.habets.se/2022/03/seccomp-unsafe-at-any-speed.h...

chuckadams•29m ago
Now that Landlock actually is a thing, have you considered writing another followup? Given what I've seen of landlock, I expect it'll be spicy...
jmclnx•1h ago
This site is a perfect example showing why people are complaining about grey text, to me it is unreadable. See:

https://news.ycombinator.com/item?id=47268574

szszrk•1h ago
I can't read it normally even on 300% zoom. Somehow even reading mode is broken, due to diagrams being rendered in browser - I did not expect that.

But hey, it's a game!

icedchai•37m ago
The font and color combination is terrible. It looks blurry to me, even at high zoom.
szszrk•25m ago
Game in background doesn't help either.

It reminds me the pinnacle of design - Microsoft Authenticator. On Android, out of the blue, it displays global overlay to select one of the 3 numbers to confirm login.

The overlay is ... transparent.

jajuuka•1h ago
The game happening at the same time is just distraction central too.
littlestymaar•1h ago
You're not missing anything, the entire blog is AI slop.
szszrk•33m ago
I'd love to hear this explained. Deeply.

The UI is fun but unreadable, but content is solid. Explain how this is slop please.

dddddaviddddd•32m ago
And without Javascript enabled, the page refreshes in a loop!
thomashabets2•1h ago
Yeah I'm not a fan of seccomp (https://blog.habets.se/2022/03/seccomp-unsafe-at-any-speed.h...).

On Linux I understand that Landlock is the way to go.

littlestymaar•1h ago
I've seen AI written blog posts before, but this is one step above: the entire blog (~90 articles) have been AI generated over the past three months.

I already find it very frustrating that most open source projects spawning on HN's front page are resume-boosting AI slop but if blogs start being the same the internet is definitely dead.

Edit: it doesn't even looks like it's resume-boosting in this case, the “person” behind it doesn't even appear to exist. We can only speculate about the intent behind this.

thedatamonger•19m ago
so .. if i'm getting this right, this is an article about security, but the author can't be bothered to configure https correctly?
craftkiller•5m ago
What's they get wrong? Firefox and curl aren't reporting any TLS errors for me.

Fontcrafter: Turn Your Handwriting into a Real Font

https://arcade.pirillo.com/fontcrafter.html
279•rendx•7h ago•91 comments

Flash media longevity testing – 6 years later

https://old.reddit.com/r/DataHoarder/comments/1q6xnun/flash_media_longevity_testing_6_years_later/
31•1970-01-01•1d ago•2 comments

I'm Getting a Whiff of Iain Banks' Culture

https://probablydance.com/2026/03/07/im-getting-a-whiff-of-iain-banks-culture/
11•ibobev•1h ago•7 comments

Ireland shuts last coal plant, becomes 15th coal-free country in Europe (2025)

https://www.pv-magazine.com/2025/06/20/ireland-coal-free-ends-coal-power-generation-moneypoint/
541•robin_reala•6h ago•287 comments

FreeBSD Capsicum vs. Linux Seccomp Process Sandboxing

https://vivianvoss.net/blog/capsicum-vs-seccomp
58•vermaden•3h ago•15 comments

Restoring a Sun SPARCstation IPX Part 1: PSU and Nvram

https://www.rs-online.com/designspark/restoring-a-sun-sparcstation-ipx-part-1-psu-and-nvram
8•ibobev•1h ago•0 comments

Reverse-engineering the UniFi inform protocol

https://tamarack.cloud/blog/reverse-engineering-unifi-inform-protocol
69•baconomatic•3h ago•22 comments

US Court of Appeals: TOS may be updated by email, use can imply consent [pdf]

https://cdn.ca9.uscourts.gov/datastore/memoranda/2026/03/03/25-403.pdf
417•dryadin•9h ago•318 comments

Show HN: VS Code Agent Kanban: Task Management for the AI-Assisted Developer

https://www.appsoftware.com/blog/introducing-vs-code-agent-kanban-task-management-for-the-ai-assi...
62•gbro3n•5h ago•26 comments

Unlocking Python's Cores:Energy Implications of Removing the GIL

https://arxiv.org/abs/2603.04782
81•runningmike•3d ago•45 comments

The Window Chrome of Our Discontent

https://pxlnv.com/blog/window-chrome-of-our-discontent/
84•zdw•2d ago•31 comments

The engine of Germany's wealth is blocking its future

https://europeancorrespondent.com/en/r/the-engine-of-germanys-wealth-is-blocking-its-future
133•mariuz•1h ago•135 comments

Agent Safehouse – macOS-native sandboxing for local agents

https://agent-safehouse.dev/
739•atombender•19h ago•169 comments

FFmpeg at Meta: Media Processing at Scale

https://engineering.fb.com/2026/03/02/video-engineering/ffmpeg-at-meta-media-processing-at-scale/
110•sudhakaran88•10h ago•55 comments

Segagaga Has Been Translated into English

https://www.thedreamcastjunkyard.co.uk/2026/02/segagaga-has-finally-been-translated.html
64•nanna•1d ago•18 comments

Microscopes can see video on a laserdisc

https://www.youtube.com/watch?v=qZuR-772cks
569•zdw•1d ago•76 comments

Algebraic topology: knots links and braids

https://aeb.win.tue.nl/at/algtop-5.html
4•marysminefnuf•1h ago•0 comments

Kuwaiti F/A-18's Triple Friendly Fire Shootdown Gets Stranger by the Day

https://www.twz.com/air/kuwaiti-f-a-18s-triple-friendly-fire-shootdown-gets-stranger-by-the-day
26•throwawayffffas•43m ago•0 comments

No leap second will be introduced at the end of June 2026

https://lists.iana.org/hyperkitty/list/tz@iana.org/thread/P6D36VZSZBUSSTSMZKFXKF4T4IXWN23P/
27•speckx•4h ago•9 comments

Ask HN: What Are You Working On? (March 2026)

237•david927•16h ago•856 comments

PCB devboard the size of a USB-C plug

https://github.com/Dieu-de-l-elec/AngstromIO-devboard
239•zachlatta•1d ago•58 comments

The Finger and the Moon

https://taylor.town/finger-moon
13•surprisetalk•3d ago•2 comments

Every single board computer I tested in 2025

https://bret.dk/every-single-board-computer-i-tested-in-2025/
205•speckx•4d ago•65 comments

Revealed: UK's multibillion AI drive is built on 'phantom investments'

https://www.theguardian.com/technology/2026/mar/09/revealed-uks-multibillion-ai-drive-is-built-on...
30•tablets•1h ago•6 comments

FrameBook

https://fb.edoo.gg
489•todsacerdoti•1d ago•81 comments

Ask HN: Can I repurpose a Bluetooth voice remote as input device for a PC?

5•albert_e•1d ago•3 comments

My Homelab Setup

https://bryananthonio.com/blog/my-homelab-setup/
306•photon_collider•23h ago•204 comments

Linux Internals: How /proc/self/mem writes to unwritable memory (2021)

https://offlinemark.com/an-obscure-quirk-of-proc/
114•medbar•17h ago•26 comments

My “grand vision” for Rust

https://blog.yoshuawuyts.com/a-grand-vision-for-rust/
250•todsacerdoti•4d ago•270 comments

Artificial-life: A simple (300 lines of code) reproduction of Computational Life

https://github.com/Rabrg/artificial-life
149•tosh•19h ago•20 comments