7 releases
| 0.2.5 | Dec 27, 2025 |
|---|---|
| 0.2.4 | Sep 3, 2025 |
| 0.2.3 | Jun 4, 2025 |
| 0.2.2 | Apr 16, 2025 |
| 0.1.0 | Oct 27, 2024 |
#16 in #firecracker
83KB
1.5K
SLoC
fcnetd
fcnetd is a binary daemon that runs as root and receives I/O connections by listening asynchronously on a Unix socket with Tokio.
While fcnetd runs as root, the socket is chown()-ed to a rootless user so that a rootless application process can connect to
fcnetd, thus proxying its networking needs into a separate process without running the whole application as root.
Examples:
fcnetd /tmp/fcnetd.sock- listen on/tmp/fcnetd.sockand make available only toroot.fcnetd --uid 1000 --gid 100 /tmp/fcnetd.sock- listen on/tmp/fcnetd.sockand make available to UID 1000 and GID 100.fcnetd --password abcde --uid 1000 /tmp/fcnetd.sock- listen on/tmp/fcnetd.sockaccessible by UID 1000, additionally authenticate connections with theabcdepassword.
Dependencies
~14–28MB
~299K SLoC