Project

General

Profile

Actions

Task #5304

closed

Change default Unix socket path to /run/nfd/nfd.sock

Added by Junxiao Shi 5 months ago. Updated 3 months ago.

Status:
Closed
Priority:
Normal
Category:
Faces
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
3.00 h

Description

Presently, NFD creates the Unix socket at /run/nfd.sock.
This causes difficulty in NFD Docker packaging: either the container must mount /run in read-write mode which gives the container too much privilege, or the client.conf must be edited to point to a different socket path.

This issue is to change the default Unix socket path path to /run/nfd/nfd.sock, without any backwards compatibility.
NFD must create the enclosing directory if it does not exist.

Actions #1

Updated by Junxiao Shi 5 months ago

  • Tags set to approved

20231208 NFD call has approved this issue.

Actions #2

Updated by Davide Pesavento 5 months ago

  • Tags changed from approved to approved, docker, systemd
  • Subject changed from Change Unix socket path to /run/nfd/nfd.sock to Change default Unix socket path to /run/nfd/nfd.sock

FWIW, moving the socket file to a subdir will also enable running NFD as a systemd service without full root privileges.

Actions #3

Updated by Davide Pesavento 4 months ago

  • Tracker changed from Feature to Task
  • Status changed from New to In Progress
  • Assignee changed from Varun Patil to Davide Pesavento
  • % Done changed from 0 to 50
Actions #5

Updated by Davide Pesavento 4 months ago

  • Status changed from Code review to Closed
  • % Done changed from 50 to 100
Actions #7

Updated by Junxiao Shi 4 months ago

NDNts has supported the new socket path, with limited backwards compatibility, in this commit:
https://github.com/yoursunny/NDNts/commit/0b748bf7d67580d3a07ed2cdd3a9590b5fdacdf1

Mini-NDN is possibly broken according to this complaint:
https://www.lists.cs.ucla.edu/pipermail/nfd-dev/2024-January/004555.html

ppa-packaging has a copy of nfd.conf with old socket path.
This affects NFD-nightly: nfdc would attempt to connect to new socket path, while nfd listens on old socket path.

Actions

Also available in: Atom PDF