Skip to content

DMM#1198

Draft
pophilpo wants to merge 7 commits into
mainfrom
pophilpo/systemd-hardening-full
Draft

DMM#1198
pophilpo wants to merge 7 commits into
mainfrom
pophilpo/systemd-hardening-full

Conversation

@pophilpo
Copy link
Copy Markdown
Contributor

No description provided.

orb-ui now runs as a dedicated orb-ui user (not worldcoin), so the
per-session PulseAudio socket at /run/user/1000/pulse/native is not
accessible. Point PULSE_SERVER at /tmp/pulse-audio instead, which is
served by the new orb-os PulseAudio drop-in with auth-group=audio.
Move from the shared worldcoin user to a dedicated orb-jobs-agent user.
Add standard hardening: ProtectSystem=strict, ReadOnlyPaths=/,
RestrictNamespaces, MemoryDenyWriteExecute, etc.

ReadWritePaths covers the hardcoded store paths (/mnt/scratch, /mnt/updates)
and the calibration/version files in /usr/persistent.

CAP_SYS_ADMIN is retained (AmbientCapabilities) because the fsck handler
calls umount(2)/fsck which require mount namespace privileges.

systemctl and shutdown calls go through polkit (existing pkla rules for
manage-units and power management), so no extra capabilities needed there.
Reverting the dedicated-user hardening for jobs-agent as agreed with
the security team — this service will be tackled in a separate workstream.
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.

1 participant