Skip to content

Commit

Permalink
Add CAP_NET_RAW capability due to the omudpspoof module
Browse files Browse the repository at this point in the history
The CAP_NET_RAW ensures the use of RAW and PACKET sockets,
which is utilized by the omudpspoof module, more precisely
the libnet_init function.
  • Loading branch information
Cropi committed Oct 4, 2023
1 parent 8d33dce commit 0638709
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tools/rsyslogd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1652,6 +1652,7 @@ initAll(int argc, char **argv)
capabilities_t capabilities[] = {
#define CAP_FIELD(code, type) { code, #code, 0 , type}
CAP_FIELD(CAP_BLOCK_SUSPEND, CAPNG_EFFECTIVE | CAPNG_PERMITTED),
CAP_FIELD(CAP_NET_RAW, CAPNG_EFFECTIVE | CAPNG_PERMITTED ),
CAP_FIELD(CAP_CHOWN, CAPNG_EFFECTIVE | CAPNG_PERMITTED ),
CAP_FIELD(CAP_IPC_LOCK, CAPNG_EFFECTIVE | CAPNG_PERMITTED ),
CAP_FIELD(CAP_LEASE, CAPNG_EFFECTIVE | CAPNG_PERMITTED),
Expand Down

0 comments on commit 0638709

Please sign in to comment.