Project

General

Profile

Actions

Bug #4647

closed

Ethernet faces are not created after dropping privileges

Added by Junxiao Shi over 6 years ago. Updated almost 4 years ago.

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

100%

Estimated time:
1.00 h

Description

In NFD 0.6.2 PPA package, nfd.conf drops root privilege and seteuid to "ndn" user, and the installation script executes setcap on the NFD binary.

As reported in #4565-3, this is ineffective because seteuid automatically clears all capabilities unless the SECBIT_KEEP_CAPS flag is set on the process, and Ethernet face creation fails with "pcap_activate: You don't have permission to capture on that device" error.

To fix this issue, PcapHelper should wrap pcap_activate in PrivilegeHelper::runElevated.


Related issues 1 (0 open1 closed)

Related to Packaging - Bug #4565: nfd: Ethernet faces are not createdClosedJunxiao Shi

Actions
Actions

Also available in: Atom PDF