# systemd v263-rc2 tightens /run/ sandboxing, isolates vsock by network namespace

> **Key takeaway:** systemd v263-rc2 fixes a long-standing ProtectSystem=strict hole that left /run/ writable and makes AF_VSOCK sockets network-namespace aware by default on kernels 7.0 and newer.

**Published:** 2026-12-04T13:56:11+00:00 
**Source:** Systemd System and Service Manager 
**Category:** kernel-os 
**Canonical URL:** https://fosswire.org/news/systemd-v263-rc2-tightens-run-sandboxing-isolates-vsock-by-n 

## Summary
systemd v263-rc2, tagged by Luca Boccassi on December 4, is the second release candidate for the next major systemd version and carries a substantial list of incompatible changes. The most consequential is a correction to ProtectSystem=strict: since v248, when MountAPIVFS= was in effect (also implied by ProtectControlGroups=, ProtectKernelTunables=, ProtectProc= and similar settings), /run/ was erroneously left writable, and when the mount namespace shared the host's /run/ this even exposed the host's /run/ to the service. Services that depended on that writable path must now declare ReadWritePaths= or RuntimeDirectory= explicitly; with RootDirectory= or RootImage=, /run/ remains a private writable tmpfs.

A second behavioral shift concerns AF_VSOCK. The default sysctl.d/50-default.conf now sets net.vsock.child_ns_mode=local on kernels 7.0 and newer, and PID 1 loads the vsock module early so systemd-sysctl.service applies the setting before most network namespaces exist. As a result, vsock sockets become isolated per network namespace, so services with PrivateNetwork=yes and containers with private networking can no longer reach host vsock services or hypervisor transports. The release notes also cover Varlink and D-Bus API changes, transient *Directory= handling, PID-namespace-aware socket activation variables, and glob support in hostnamectl tags.

Because net.vsock.child_ns_mode is write-once and typically applied in the initrd, administrators who mask or change it must rebuild the initrd so the same configuration is included, for example via dracut's host-only mode.

## What changes in systemd 263
- **ProtectSystem=strict and /run/:** The sandbox now makes /run/ read-only as documented; units that previously wrote there under MountAPIVFS= must add ReadWritePaths= or RuntimeDirectory=, while RootDirectory=/RootImage= keeps a private writable tmpfs.
- **vsock namespace isolation:** net.vsock.child_ns_mode=local is set by default on kernels 7.0+, and PID 1 loads the vsock module early so systemd-sysctl.service applies it before most network namespaces are created; the sysctl is write-once and fails with EBUSY on later changes.
- **RootDirectory=/ semantics:** It is now treated like any other root directory, implying MountAPIVFS=yes and BindLogSockets=yes with a private /run/ tmpfs, instead of being half-ignored as before.
- **API and transient-unit changes:** io.systemd.Unit.SetProperties() takes a dedicated UnitProperties type and rejects runtime=false; ConfigurationDirectory= over D-Bus uses the directory:symlink:flags parser with extra colon escaping; empty transient RuntimeDirectory=/StateDirectory=/CacheDirectory=/LogsDirectory= assignments now reset the list.
- **Socket activation and hostnamectl:** $LISTEN_PID, $LISTEN_PIDFDID, $WATCHDOG_PID and $SYSTEMD_EXEC_PID are set after the PID namespace is configured so socket activation works with PrivatePIDs=yes, and io.systemd.Hostname.SetTags now accepts globs and applies the remove list before the add list.

## Why it matters
The /run/ fix closes a sandbox escape path that has existed since systemd v248, so distribution maintainers and packagers should audit unit files that write to /run/ under ProtectSystem=strict before v263 lands in stable repositories. The vsock change matters for VM and container operators, including those running systemd inside guests or using PrivateNetwork= services, because host-to-guest vsock communication will stop working unless the sysctl is masked and the initrd rebuilt. The Varlink and D-Bus adjustments will require updates to tools that generate bindings against systemd's management APIs.