Better HN
topnewbestaskshowjobs
Log inSign up

foretoldfeline

7 karma · joined Aug 3, 2025 (1y ago) · 4 submissions

Submissions

comment 1y ago · link · parent

https://fosdem.org/2025/schedule/event/fosdem-2025-5315-shep...

comment 1y ago · link · parent

https://github.com/google/nsjail

comment 1y ago · link · parent

GNU Shepherd itself doesn't implement sandboxing, but you can use the least-authority-wrapper to do namespaces. There are other tools to do more comphrensive sandboxing, which Shepherd can use, e.g. nsjail.

least-authority-wrapper: https://codeberg.org/guix/guix/src/commit/e3fbaeee1386fd447f...

comment 1y ago · link · parent

> Does every service have hooks for possible extensions? What if a new service doesn't fit existing extension hooks?

No, only few services define service extensions.

It's more common for services to be configured solely via their configuration struct.

See the following for docs:

* https://guix.gnu.org/manual/en/html_node/Service-Composition...

* https://guix.gnu.org/manual/en/html_node/Service-Types-and-S...

This is less flexible-by-default than NixOS module, where any module can modify any other module. That is by design. The Guix developers see NixOS's approach as failing the principle-of-least-authority, where any arbitrary module (even those imported via flakes) can add a root SSH key.

I use NixOS, but it's an interesting tradeoff.