Skip to content

Harden the shipped systemd service#203

Open
jeet-dekivadia wants to merge 1 commit into
twosigma:mainfrom
jeet-dekivadia:codex/harden-systemd-unit
Open

Harden the shipped systemd service#203
jeet-dekivadia wants to merge 1 commit into
twosigma:mainfrom
jeet-dekivadia:codex/harden-systemd-unit

Conversation

@jeet-dekivadia

@jeet-dekivadia jeet-dekivadia commented May 30, 2026

Copy link
Copy Markdown
Contributor

Summary

  • empty the service capability bounding set and isolate kernel-facing interfaces that NSS modules should not need
  • restrict namespace, realtime, personality, and alternate-ABI use while preserving host configuration, network access, and helper-daemon communication
  • deny clock, raw-I/O, reboot, and swap syscall groups without changing service identity, filesystem visibility, or socket creation

Fixes #156

Validation

  • git diff --check
  • reviewed the selected directives against the NSS compatibility constraints discussed in Harden nsncd.service #156

Remote Linux validation

  • git diff --check
  • systemd-analyze verify nsncd.service

Signed-off-by: Jeet Dekivadia <jeet.university@gmail.com>
@jeet-dekivadia

Copy link
Copy Markdown
Contributor Author

Small follow-up for review context. This is deliberately service-boundary hardening rather than a behavior change: it blocks alternate ABIs, namespace creation, realtime scheduling, high-risk syscall groups, and kernel-facing interfaces while preserving host configuration, network access, helper-daemon communication, service identity, and socket creation.

Validation from preparation: git diff --check; systemd-analyze verify nsncd.service; reviewed the selected directives against the NSS compatibility constraints in #156 and systemd.exec semantics.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Harden nsncd.service

1 participant