Skip to content

Commit

Permalink
request cap_net_raw on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
alandekok committed May 20, 2020
1 parent 6eca856 commit 23977aa
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/modules/rlm_icmp/rlm_icmp.c
Expand Up @@ -324,6 +324,11 @@ static int mod_bootstrap(void *instance, CONF_SECTION *conf)
FR_TIME_DELTA_BOUND_CHECK("timeout", inst->timeout, >=, fr_time_delta_from_msec(100)); /* 1/10s minimum timeout */
FR_TIME_DELTA_BOUND_CHECK("timeout", inst->timeout, <=, fr_time_delta_from_sec(10));

/*
* Request RAW capabilities on Linux. On other systems this does nothing.
*/
(void) fr_cap_net_raw();

return 0;
}

Expand Down

0 comments on commit 23977aa

Please sign in to comment.