mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-11-08 12:18:42 +00:00
Conf: Make 'configure check' command restricted
While it does not directly change BIRD state, it can trigger reading arbitrary files and eating significant memory.
This commit is contained in:
parent
371eb49043
commit
bbac9ca958
@ -282,6 +282,9 @@ cmd_read_config(const char *name)
|
||||
void
|
||||
cmd_check_config(const char *name)
|
||||
{
|
||||
if (cli_access_restricted())
|
||||
return;
|
||||
|
||||
struct config *conf = cmd_read_config(name);
|
||||
if (!conf)
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user