Monorepo for Tangled tangled.org
763
fork

Configure Feed

Select the types of activity you want to include in your feed.

Harden systemd service for Nix module #45

open opened by hauleth.dev targeting master

This introduces set of hardening options to systemd's unit to isolate service more.

Applied restrictions are (among other):

  • no capabilities, and these cannot be changed (so calling binary with capabilities may cause an issue)
  • cannot call SUID/GUID binaries
  • restrict view on the OS to minimum
  • hide some shared resources (like users or /tmp)
  • disallow non-UNIX and non-INET(4/6) sockets
  • protect kernel settings and logs
  • force native syscalls (so for example on x86-64 there is no way to call x86 syscalls)
  • limit executables to Nix store

These shouldn't be too restrictive for most users.

Labels

None yet.

assignee

None yet.

Participants 1
AT URI
at://did:plc:6psaz6n5fuurrfet67zs4ljf/sh.tangled.repo.pull/3mar5cz5a3k22
Diff #0

No differences found between the selected revisions.

History

1 round 0 comments
sign up or login to add to the discussion
hauleth.dev submitted #0
patch application failed: error: No valid patches in input (allow with "--allow-empty")
expand 0 comments