Skip to content

Commit

Permalink
Bug #2009: added CAP_NET_ADMIN for PCAP and af-packet modes.
Browse files Browse the repository at this point in the history
Without this capability suricata is unable to get network
interface's settings.
  • Loading branch information
Alexander Gozman authored and victorjulien committed Jan 19, 2017
1 parent 19e578a commit 187a6f3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/util-privs.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ void SCDropMainThreadCaps(uint32_t userid, uint32_t groupid)
capng_updatev(CAPNG_ADD, CAPNG_EFFECTIVE|CAPNG_PERMITTED,
CAP_NET_RAW, /* needed for pcap live mode */
CAP_SYS_NICE,
CAP_NET_ADMIN,
-1);
break;
case RUNMODE_PFRING:
Expand Down

0 comments on commit 187a6f3

Please sign in to comment.